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

Home » Public Forums » archive » fsc_field double
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
fsc_field double [message #64931] Thu, 05 February 2009 00:51
AndiBiffar is currently offline  AndiBiffar
Messages: 7
Registered: October 2008
Junior Member
Hi everybody,

i am using david fannings fsc_field. I initialize the field in the
following way

param_text = fsc_field(textbase,title=param_labels(i), value = double
(0.0),Decimal=2,LabelSize= 55,/noedit,xsize=9,$
uname = param_labels(i), /highlight,/frame,/
cr_only,uvalue=i,event_pro='setparam')

if a user selects a certain option in my gui the fields should become
editable and set to default values defined as double default = double
(1000) e.g.

textID = widget_info(event.top,find_by_uname=param_labels(i))
widget_control, textID, set_value=default, editable=editable

However even though i initialized the field with a double idl
complains that it is unable to convert double to string.

WIDGET_CONTROL: String expression required in this context: DEFAULT

Since the field is not set to a different value before i don't
understand what is going wrong here

Thx
Andi
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Newbie here
Next Topic: Re: Who called that procedure?

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

Current Time: Wed Oct 08 17:38:26 PDT 2025

Total time taken to generate the page: 0.00531 seconds