V15.13 Does Not Skin TTntDBText controls in a DBCtrlGrid

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #69209
    Andy Bell
    Participant

    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.
    #69220
    Andy Bell
    Participant

    I’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.
    #69231
    Support
    Keymaster

    Thank you for the demo, I will check it soon.

    #69269
    Support
    Keymaster

    Maybe 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?

    #69276
    Andy Bell
    Participant

    The 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…

    #69292
    Support
    Keymaster

    Thank you, I will check the ImageEn DB image with the TsDBCtrlGrid soon.

    #69424
    Support
    Keymaster

    Hello!
    If CtrlGrid is not standard TDBCtrlGrid then the ImageEnDBView1.IsInsideDBCtrl property must be changed to True.

    #69429
    Andy Bell
    Participant

    Thanks

    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

    #69497
    Support
    Keymaster

    I will check the TsDBCheckBox component soon.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.