comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » TEXT FIELD in a CONTEXT MENU ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
TEXT FIELD in a CONTEXT MENU ? [message #66599] Mon, 25 May 2009 09:38
natha is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: fsc_color problem on IDL7.1
Next Topic: Combining polygons

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:23:30 PDT 2025

Total time taken to generate the page: 0.00520 seconds