Jump to content

unitreemenu runtime


jahlxx

Recommended Posts

Hi.

I  generate a menu (TUnimenuitems) in run time, loading items from a text file.

after this, assign it to a unitreemenu, but the treemenu don't dhows nothing.

I've tried to generate the unitreemenu directly, without a unimenuitems assigned. with this, all the options are loaded, but can't assign images.

some help please.

thanks.

Link to comment
Share on other sites

Farshad was said, will turn this component.

Remove Sourcemenu on designtime. OnFormCreate Add TUnimenuitem to TUnimenuitems, or what you want. after then add Sourcemenu in runtime. After onformcreate change TUnimenuitems not apply to unitreemenu. So if you make this, you have to do this on unitreemenu. find unitreemenu's node then change a few proprty. caption, tag etc.

  • Upvote 1
Link to comment
Share on other sites

  • 10 months later...

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