Sskinmanager

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49909
    Support
    Keymaster

    I can suggest two other ways :

    1. Change TLabel.Tag to -98 and this control will not be changed by skin.

    2. In the TsSkinProvider.OnSkinItem event add this line : if Item is TLabel then CanBeAdded := False;

    Please do not write with CapsLock, it's not easy to read.

    #49921
    luan2013
    Participant

    I can suggest two other ways :

    1. Change TLabel.Tag to -98 and this control will not be changed by skin.

    2. In the TsSkinProvider.OnSkinItem event add this line : if Item is TLabel then CanBeAdded := False;

    1 ° It will only work if set in own project label.tag: = -98.

    at runtime if you try label.tag: = -98 will not work

    2 ° will only work in the main form.

    If the Form is

    in Available Forms.

    in son form will not work

    thanks anyway

    #49980
    Support
    Keymaster
    'luan2013' wrote:

    2 ° will only work in the main form.

    If the Form is

    in Available Forms.

    in son form will not work

    Can you place the TsSkinProvider component on this child form?

    #50005
    luan2013
    Participant

    thank resolved

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