Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  Speedmodeling 2011 - Holidays Edition
(117 replies)
  Maxforums Kiva Group
(57 replies)
  The Life of a Sea Turtle - Tutorial by mrgrotey
(121 replies)
  So what are you working on? =)
(2627 replies)
  Want free webspace?
(20 replies)
  spam alert!!!
(3920 replies)
  Maxforums member photo gallery index
(113 replies)
  Maxforums Member Tutorials
(86 replies)
  three cheers to maxforums...
(185 replies)
  The Grotorial Index Page
(57 replies)
  101 Things you didnt know in Max...
(185 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Free textures thread
(77 replies)
  Maxforums.org Members Gallery
(486 replies)
  SON OF POST YOURSELF
(626 replies)
  Dub's Maxscript Tutorial Index
(119 replies)
  The Best Art of Maxforums [56k warning]
(109 replies)


maxscript button text...
show user profile  Herbie
I know how to change a button text and how to update it, how do you make it right aligned?

Say you click a button and you make the file path the text of the button... I always end up with the beginning part of the text and can never see the end of it. How can you see the end and clip off the beginning part?

Visual example.

C:/computer/folder1/fol...
to
...lder1/folder2/picture.jpg
read 670 times
3/17/2010 12:26:09 AM (last edit: 3/17/2010 12:26:09 AM)
show user profile  Dub.
For this type of thing I usually put the path into an editbox. I use dotnet so that you can get the right justifying behaviour that you are after.

dotnetcontrol savePath "System.Windows.Forms.TextBox" width:124 height:14

then when you go to set the text in the box use:

savePath.text = "the\long\and\complicated\filename.dat"
savePath.selectionStart = savePath.text.count

result:


There may be a way to do a similar trick with dotnet buttons.


read 662 times
3/17/2010 12:47:03 AM (last edit: 3/17/2010 12:48:33 AM)
#Maxforums IRC
Open chat window


Support Maxforums.org