- This topic has 8 replies, 2 voices, and was last updated 4 years, 9 months ago by
Support.
-
AuthorPosts
-
August 8, 2020 at 1:03 pm #69220
Andy Bell
ParticipantI’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, 10 months ago by
Andy Bell.
August 11, 2020 at 9:10 pm #69231Support
KeymasterThank you for the demo, I will check it soon.
August 16, 2020 at 8:09 pm #69269Support
KeymasterMaybe 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 Bell
ParticipantThe 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 #69292Support
KeymasterThank you, I will check the ImageEn DB image with the TsDBCtrlGrid soon.
September 5, 2020 at 10:49 am #69424Support
KeymasterHello!
If CtrlGrid is not standard TDBCtrlGrid then the ImageEnDBView1.IsInsideDBCtrl property must be changed to True.September 7, 2020 at 7:02 am #69429Andy Bell
ParticipantThanks
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 #69497Support
KeymasterI will check the TsDBCheckBox component soon.
-
This reply was modified 4 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.