Sskinmanager

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35591
    luan2013
    Participant

    I CAN NOT CHANGE COLOR OF TLabel,

    SOMETIMES YOU HAVE TO USE ANOTHER COLOR LABEL,

    AND HE CAN NOT STAY WITH THE COLOR PATTERN SSKINMANAGER,

    PROPERTY SHOULD HAVE AN EQUAL TO THE COMPONENT

    (SUIPACK, SUISKINENGINE) THAT IS

    NOCHANGELABELFONTCOLOR type Boolean

    NOCHANGEBUTTONSFONTCOLOR type Boolean

    THESE PROPERTIES WITH THE COMPONENT SSKINMANAGER would

    be EXCELLENT WHY WOULD YOU CHOOSE IF I wanted to BE WITH

    COLOR PATTERN SSKINMANAGER.

    I knew that the option component TsLabel rxlabel also have the UseSkinColor property, most think of the next suituação where the User

    in clientdataset, SQLDataSet when the User will drag and drop fields on the form it automatically creates a label, can you imagine having to change the label by label TsLabel, in a very large application the tremendous work. or an application ready now have to change all the label or by TsLabel rxlabel

    #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 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.