Jump to content

Custom Panels


Recommended Posts

Hi all!

I'm trying to create my own custom panel at the moment, but I don't know how to access data from my own panel. For instance, I have a button and a text field. As a test, I would like to have the button display a message box showing the value inside the text field. However, I don't know how to access the value inside the text field. Any ideas on how to get it?

Thanks,

fixxorion

Link to comment
Share on other sites

Use $V. For example, in the script for your input field, use "message $V".

So in order to have a button query the value of a checkbox.....

Have the checkbox set an env. variable. setenv myCheckBox = $V

Then in the button you would have

message $myCheckBox

Is this the right direction?

Better yet....I'll buy you a Coke if you can get the cuquery() expression to work.

jim.

Link to comment
Share on other sites

hm...I seem to have figured it out. In the inputfield's command I put the following:

cuset -p panel1 -n myInputField.val -v $V

And in the button's command I put:

message `cuquery(panel1, myInputField.val)`

It seems strange that I would need to update the value, but it wouldn't work otherwise. Hope this helps someone else out!

Later,

fixxorion

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...