PDA

View Full Version : having trouble understanding textFieldGrp


MegaManZZ
02-13-2008, 12:06 AM
I'm trying to simple send the input in the textFieldGrp to a procedure, that needs to run as soon as the string is typed. and/or make a button that would change it.

textFieldGrp -cc "$bname = #1; makeWall($bname, $lngth, $wdth, $hght);";

intSliderGrp -field 1 -min 1 -max 20 -v 1 -cc "$lngth = #1; makeWall($bname, $lngth, $wdth, $hght);";

the intSlideGrp works like a charm, and am looking for the same result to my textFieldGrp. If someone could explain to me how the #1 works i would be very thankful. btw this is my first script so excuse me knowledge ;)

BPorter
02-13-2008, 12:37 AM
window;
columnLayout;
textFieldGrp
-label "Group 1"
-text "Editable"
textFieldName;
showWindow;


If you want "Editable" to be sent to the procedure, then type as follows:


textFieldGrp -q -text textFieldName;

What this is doing is it's querying (-q) the text that's in the text field. TextFieldName is just the internal name I gave it.

CGTalk Moderation
02-13-2008, 12:37 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.