Jump to content

The property MyObject.LayoutConfig.Cls does not allow value assignment via command line.


Recommended Posts

Posted

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.

 

image.png.9c156086c6cff38374e5eaf857685ff8.pngimage.thumb.png.e3df3391d53468528c31c2e109bf7d93.png

Posted
Just now, fabiotj said:

The lastone 1.95.0.1610

We will check.

Try this approach for now:

LstBxITEMS.JSInterface.JSConfig('cls', ['azul-claro']);

 

  • Like 1
  • Administrators
Posted

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;

 

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...