Jump to content

Как уменьшить ширину меню TUnimTreeMenu правильно?


x11

Recommended Posts

Если указать
 

LayoutConfig.Margine := '0 5'

или

Width := 'calc(100% - 30px)'

то маркер-треугольник справа будет обрезан.

Screenshot_34.jpg

Screenshot_35.jpg

Link to comment
Share on other sites

1 hour ago, x11 said:

то маркер-треугольник справа будет обрезан.

Я не смог воспроизвести.. Прикрепите пожалуйста тестовый случай.

Link to comment
Share on other sites

В общем, так.

Если наполнять меню в событии unimForm.OnReady, то проблема проявляется.

Я перенес код наполнения меню (дерева) в OnCreate и проблема ушла.

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