- This topic has 8 replies, 2 voices, and was last updated 4 years, 2 months ago by Support.
-
AuthorPosts
-
August 6, 2020 at 9:00 pm #69209Andy BellParticipant
RAD Studio 2007 / C++ Builder
V15.11 (with the patch you sent me for TMS Unicode Controls in RAD Studio 2007) skins these properly. After upgrading to 15.13, the TTntDBText does not skin and resists any efforts I make to change the font color at runtime…
The attached screenshots shows the problem: 1511.jpg – the font color is correct for the Golden skin but in 1513.jpg the font has stayed black…
A sample project is attached.
Thankfully, I had backed up my 1511 install and have reverted to it for the moment.
Andy
Attachments:
You must be logged in to view attached files.August 8, 2020 at 1:03 pm #69220Andy BellParticipantI’m finding more issues with Skinning on a TDBCtrlGrid, this time in 15.11:
TDBCheckBox (and Alpha Controls DB Checkbox) ALL skin as Checked if ANY record is Checked. I can work around this by excluding TDBCheckBox from the 3rd party list, but the control is then not skinned at all.
Skinning TDBCtrlPanel causes other controls on the grid to ‘cycle’ through all the values in the DataSet during the skinning process. I have, for example, a TTntDBText and I can see it scroll through the values during skinning.
Skinning the TDBCtrlGrid causes other controls (such as a DB Check Box) to cycle through all the values during the skinning process…
Some of the skins (i.e. Golden) have very odd backgrounds for the grid if it is skinned.
As I workaround, I exclude both TDBCtrlGrid and TDBCtrlPanel from skinning and set its color manually. But then the scrollbar is not skinned.
I think some work is needed on the TDBCtrlGrid skinning…
Andy
- This reply was modified 4 years, 3 months ago by Andy Bell.
August 11, 2020 at 9:10 pm #69231SupportKeymasterThank you for the demo, I will check it soon.
August 16, 2020 at 8:09 pm #69269SupportKeymasterMaybe it’s correct that color of label text is received from parent?
I think, we should discuss this issue. If “Fluent Night” skin is loaded then color of text will be white in your case, and text will be invisible. That’s why this behavior has been changed in latest releases. We should find an universal solution i this case.BTW, why you don’t use the skinned TsDBCtrlGrid? Do you have problems with this control?
August 17, 2020 at 8:03 am #69276Andy BellParticipantThe TsDBCtrlGrid (in 15.11, in any case) does not work properly – I’ve only just tried it…
I have an ImageEn DB Image on the grid, attached to a database with images. The SAME image shows on each page of the grid. I think when the skinning happens, the image in the first ImageEnDBView is copied to all visible cells of the grid. The same seems to happen with the checkboxes – check the first box and they all display as checked…
August 19, 2020 at 7:59 pm #69292SupportKeymasterThank you, I will check the ImageEn DB image with the TsDBCtrlGrid soon.
September 5, 2020 at 10:49 am #69424SupportKeymasterHello!
If CtrlGrid is not standard TDBCtrlGrid then the ImageEnDBView1.IsInsideDBCtrl property must be changed to True.September 7, 2020 at 7:02 am #69429Andy BellParticipantThanks
That works for ImageEn.
The TsDBCtrlGrid does not work well with TsDBCheckBox if the underlying dataset is changed.
For example, if I change a Boolean field via a TTable Edit() + Post() the whole grid updates and EVERY checkbox is set or unset. If I click a different record then the correct values are displayed. I’ve tried calling Repaint() on the grid, but that does not work.
Thankfully, the TTntDB… controls do behave properly, and skin properly, so I have a decent work around.
This is with V15.15 and RadStudio 2007
Andy
September 9, 2020 at 3:43 pm #69497SupportKeymasterI will check the TsDBCheckBox component soon.
-
AuthorPosts
- You must be logged in to reply to this topic.