Show stringvariable in massage box

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 07 July 2003   #1
Show stringvariable in massage box

i made a dialog box where the user can select an output folder. now i want it to show this path as a text in this box. which type of box or command must i use?
 
Old 07 July 2003   #2
You can just use a label in the dialogue - not sure what the best way is to truncate the file path though, unless you have really wide buttons

Another way would be to change the caption for the folder button, but only if you want the user to press it once.

I dont have max open right now but (you need to check the syntax) something like this :

on folderbutton pressed do
(
folderbutton.caption = variable assigned from folder import dialogue

or

label.text = the same
)
__________________
Alex Morris
Architectural Visualisation
www.amv-cgi.com
 
Old 07 July 2003   #3
the label and button captions are only static. i can't change them. i tried the following but it doesn't work:

rollout test "Untitled" width:162 height:300
(
label test "old" pos:[21,152] width:118 height:26
test_caption = "new"
)
createDialog test width:162 height:300


test_text= "new" also does't work
 
Old 07 July 2003   #4
a little typo

test_caption = "new"

should be:

test.caption = "new"


- Martijn
 
Old 07 July 2003   #5
ooops you're right
but test.caption = "new" also doesn't work

i searched many scripts for variable strings in message boxes now, but i haven't found a single one. can somebody help me pleeeeease?
 
Old 07 July 2003   #6
try this:


(
rollout Test2 "test"
(
label LB1 "Save to"
label FolderName "Folder name"
button SelFolder "Select Folder" width:220

on SelFolder pressed do
(
FPname = getSavePath caption:"Save file to folder"

FolderName.text = FPname -- Changes name on label object.
SelFolder.caption = FPname -- Changes name on button.

)
)
createdialog Test2 300 200
)

You'll see how both the label and button work!

Enjoy

Keith Morrison
 
Old 07 July 2003   #7
yes, yes, yes. it works!
thanx man
 
Old 01 January 2006   #8
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:19 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.