CW_PDMENU help [message #68706] |
Tue, 17 November 2009 08:33 |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Hi guys, why the following example doesn't work ?
menu_list=[ '1\Variable', '0\A', '0\B', '0\C', '2\D', '1\Palette',
'0\34', '0\35', '2\39']
base = WIDGET_BASE()
text = WIDGET_DRAW(base,XSIZE=300,YSIZE=300)
WIDGET_CONTROL, base, /REALIZE
context_base=WIDGET_BASE(base, /CONTEXT_MENU)
menu = CW_PDMENU(context_base, menu_list, /CONTEXT_MENU, /COLUMN)
WIDGET_DISPLAYCONTEXTMENU, text, 150, 150, context_base
------------------------------------------------------------ -------------------------
Look what's happening...... I think that the definition of the context
menu is correct but is not displayed well.
Can somebody help me ?
Thanks,
nata
|
|
|