
-----------------------------------
kompsai
Tue Nov 07, 2006 4:06 pm

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.


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

-----------------------------------
Clayton
Tue Nov 07, 2006 4:34 pm


-----------------------------------
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
Tue Nov 07, 2006 6:12 pm

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
Tue Nov 07, 2006 6:25 pm


-----------------------------------
*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!
