fabiotj Posted March 2 Posted March 2 The property MyObject.LayoutConfig.Cls does not allow value assignment via command line, only through the properties editor. Is this normal? LstBxITEMS.LayoutConfig.Cls := 'azul-claro'; - It causes the error: [dcc64 Error] FORMSBOX.pas(109): E2362 Cannot access protected symbol TUniCustomLayoutBase.Cls I'm asking because this is the first time I've had to do this at runtime, so I might be doing something wrong. Quote
Sherzod Posted March 2 Posted March 2 Just now, fabiotj said: The lastone 1.95.0.1610 We will check. Try this approach for now: LstBxITEMS.JSInterface.JSConfig('cls', ['azul-claro']); 1 Quote
fabiotj Posted March 2 Author Posted March 2 Thanks. FYI: I tested it with other objects and it seems to have the same problem. Quote
Administrators Farshad Mohajeri Posted March 5 Administrators Posted March 5 We will fix it in next build. As a workaround you can apply this in uniGUIClasses.pas: TUniCustomLayoutConfig = class(TUniCustomLayoutBase) public property Cls; property BodyCls; property ComponentCls; property Flex; property Padding; property BodyPadding; property IgnorePosition; property Anchor; property Height; property Width; property Split; property Region; property Margin; property RowSpan; property ColumnWidth; property ColSpan; property DockWhenAligned; end; 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.