Create Subbutton using SetPopupStyle function

8 views
Skip to first unread message

dvasilakis

unread,
Jul 28, 2009, 6:58:11 AM7/28/09
to Nektra OEAPI Support
I want to create a subbutton which when i press it will show up a new
menu with three new buttons.
As read from the OEAPI document i have to use the function
SetPopupStyle.
i use it but there is a problem. When i press the button that uses
SetPopupStyle it shows a menu not near to button but in the right
bottom corner of the screen

Nektra OEAPI Support

unread,
Jul 30, 2009, 1:06:18 PM7/30/09
to Nektra...@googlegroups.com
Hi again,

Please try following the same order used on the included VB. NET Demo to
create the button:

...
button = toolbar.CreateButton("Spam", "", "")
button.SetTooltip("Button with subbuttons")
button.SetPopupStyle(1)
button.SetPicture(pict)
button.CreateSubButton("Subbutton 1", "", "")
...

Can you reproduce this issue with the included VB. NET Demo?
If the problem persists, please provide more details of how you are trying.

Regards,

Federico
--
Nektra Advanced Computing
http://www.nektra.com

Δημήτριος Βασιλάκης

unread,
Jul 31, 2009, 3:27:36 AM7/31/09
to Nektra...@googlegroups.com
The problem is when i want to create a subbuttons from a subbutton and not from the main button like below
 
       button = toolbar.CreateButton("Spam", "", "")
       button.SetTooltip("Button with subbuttons")
       button.SetPopupStyle(1)
       button.SetPicture(pict)
       subbutton1 =  button.CreateSubButton("Subbutton 1", "", "")
       .....
       the problem is here
       subbutton1.SetTooltip("Button with subbuttons")
       subbutton1.SetPopupStyle(1)      
       subbutton2 = subbutton1.CreateSubButton("Subbutton 2", "", "")
       subbutton3 = subbutton1.CreateSubButton("Subbutton 3", "", "")

       when i press subbutton1,  subbutton2 and subbutton3 appears  in the right
       bottom corner of the screen. It doesnt appear next to subbutton1 as it is expected.
 
2009/7/30 Nektra OEAPI Support <oeapi-...@nektra.com>
Reply all
Reply to author
Forward
0 new messages