If I put the items right after I create the widgets, it works fine.
It looks like that when the Pt_CB_REALIZED is called, the widget is already
realized. I didn’t find any pre-realize callback.
I’ll try re-realizing the submenu or items, but actually there should be a
better way to do it.
Thanks
Markus
“Gui Group” <gui@qnx.com> wrote in message news:9j1eb1$jkc$2@nntp.qnx.com…
Hi Markus,
Have you tried having the items set pre-realize.
In the realize callback you may need to unrealize and then realize the
menu for the items to show up.
Let me know if this helps.
Regards
Brenda
Markus Loffler <> loffler@ces.clemson.edu> > wrote:
If have a submenu (e.g. a PtMenu of a PtMenuButton of a PtMenu of a
PtMenuButton) and I want to update the contents of this submenu
dynamically,
e.g. they should be updated when the menu appears.
I set the items as children of the submenu in the realize callback, but
the
first time the submenu opens, it is as big as it would contain the
items,
but it is empty.
The second time I open it, it displays the items.
What’s the proper way to do this?
Markus
\