Jump to content

Update layout at runtime?


meason

Recommended Posts

How do I make runtime changes to the LayoutAttrib.pack and LayoutAttrib.align take effect?  I have Delphi code to change them but it doesn't do anything.

 

I read the above link but I have no idea of what to write to change the pack and align properties.  Is there some documentation about how JSAssign / JSCall work and what properties they take, even if it's a reference to Sencha, that might help.

Based on the above I tried:

  UniPanel8.LayoutAttribs.Pack := cbPack.Text;
  UniPanel8.LayoutAttribs.Align := cbAlign.Text;
  UniPanel8.JSInterface.JSCall('doLayout', []);

Doing the above gives error

O4B.doLayout is not a function

_rsov_(O69,0);O4B.doLayout();

I'm currently on 1.90.0.1495 and ExtJS set to 6.7.0

Can someone point me in the right direction please?

 

Link to comment
Share on other sites

If anyone could point me in the right direction I'd love to create a sample app and contribute it back.  I think it could be useful to make an app that could show changes dynamically and see them straight away instead of the change, compile, run cycle.

  • Like 1
Link to comment
Share on other sites

  • 4 years later...
13 hours ago, albertovesx said:

did you get an answer?

No. It's been a few years and I'm no longer on that project, I don't think we resolved it. It would be great if there were more docs or references to Sencha docs that would help with layout / styling

  • Like 1
Link to comment
Share on other sites

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...