Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to set height of button
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kompsai




PostPosted: Tue Nov 07, 2006 4:06 pm   Post subject: How to set height of button

Hi all, this is my second post, my first one was praising the Buttons For Dummies thread (but I now realize that it left something out).

I now know how to (and have successfully) made buttons that'll do this'n that, no problem. Now, however, I'd like to set the height of the button.

code:

var button1 : int := GUI.CreateButton (x, y, w, "button label", procedure)


...where W is width...but there doesn't appear to be an obvious parameter for height.

Is there a way to do this? i.e. a square button as opposed to a rectangular one

Thanks
Kevin
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: Tue Nov 07, 2006 4:34 pm   Post subject: (No subject)

I'm not entirely sure, but I think to adjust the height of the button, you need to create a button using GUI.CreateButtonFull, look into that and see where it gets you.
batman




PostPosted: Tue Nov 07, 2006 6:12 pm   Post subject: Height

yo im not to sure how this would be done in turing cause i used turing so long ago but in java if you were to make height its own integer then you could say something like: "height := width*2" Thus that will change the height.
kompsai




PostPosted: Tue Nov 07, 2006 6:25 pm   Post subject: (No subject)

*smacks self*

It didn't even occur to me to check the included Turing Documentation (F10 key)...I searched for GUI.CreateButtonFull and it gave me what I needed. Thanks!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: