TEXT FIELD in a CONTEXT MENU ? [message #66599] |
Mon, 25 May 2009 09:38 |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Hello folks,
I want to display a CONTEXT MENU (pop-up or shortcut menu) with a
WIDGET_TEXT or CW_FIELD. I don't know if it's possible because, right
now, when I try to add a text component, the IDL gives me the
following message: Parent is of incorrect type.
base=WIDGET_BASE(parent,/COLUMN,/FRAME,/CONTEXT_MENU)
option_1=CW_PDMENU(base,['0\ option 1'],/CONTEXT_MENU)
;; here is where I've the problem -------------------------------
option_text=WIDGET_TEXT(base,VALUE='text')
;;
------------------------------------------------------------ ---------
WIDGET_DISPLAYCONTEXTMENU, event.id, event.x, event.y, base
Is there a correct way to add a text field in a CONTEXT MENU ? If not
how can I do something similar?
Thanks in advance,
nata
|
|
|