Author |
Message |
OsoInsane_abh
|
Posted: Tue Jan 18, 2005 2:26 pm Post subject: Re: GUI.TextField and GUI.ButtonFull |
|
|
Hi, I have a question regaurding GUI.TextField and GUI.CreateButtonFull
How can you add buttons to type in the text field
Thank you
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
MysticVegeta
![](http://www.geocities.com/ohsoinsane/my_avatar.JPG)
|
Posted: Tue Jan 18, 2005 2:54 pm Post subject: (No subject) |
|
|
Hmm....
|
|
|
|
|
![](images/spacer.gif) |
MysticVegeta
![](http://www.geocities.com/ohsoinsane/my_avatar.JPG)
|
Posted: Tue Jan 18, 2005 2:56 pm Post subject: (No subject) |
|
|
hehehe...
|
|
|
|
|
![](images/spacer.gif) |
Bacchus
![](http://img104.exs.cx/img104/9206/ravenmoon12ns.jpg)
|
Posted: Tue Jan 18, 2005 5:25 pm Post subject: (No subject) |
|
|
whatd do you mean add buttons to type in a text fields?
|
|
|
|
|
![](images/spacer.gif) |
OsoInsane_abh
|
Posted: Tue Jan 18, 2005 6:17 pm Post subject: (No subject) |
|
|
Ok to specify; When you click on the button how do you make the button add text to a spell a word in the textfield
for more details, ex:
supose i used this code
% CODE STARTS HERE
proc button1
locate (3,3)
put "Hi how are you"
end button1
% CODE ENDS
ok now when i call on the proc using a button how do i spell 'Hi how are you" in the textfield???
- Hope'd you understand -
Appreciate your patience and help
|
|
|
|
|
![](images/spacer.gif) |
cycro1234
![](http://www.inetresults.com/gifs/images/Mad_hack.gif)
|
Posted: Tue Jan 18, 2005 6:58 pm Post subject: (No subject) |
|
|
U mean take the actual words from the button and display them at like location (1,1) ??
|
|
|
|
|
![](images/spacer.gif) |
basketball4ever
|
Posted: Tue Jan 18, 2005 7:54 pm Post subject: (No subject) |
|
|
we still dont get wat ur talking about :
|
|
|
|
|
![](images/spacer.gif) |
Bacchus
![](http://img104.exs.cx/img104/9206/ravenmoon12ns.jpg)
|
Posted: Tue Jan 18, 2005 7:58 pm Post subject: (No subject) |
|
|
he means that he had a GUI button and text field, when the button is pressed words appear in the text field. srry but the only way i can think of doing it would be locate (my teacher knows nothing of GUI, and ive only learned wat ive read in turing help)
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
cool dude
![](http://www.taylorstrategicmarketing.com/images/king.jpg)
|
Posted: Tue Jan 18, 2005 8:08 pm Post subject: (No subject) |
|
|
i'm not sure wat u mean but as i see u want something like this
code: |
var font : int
var button : int
var click : boolean
var x, y : int
font := Font.New ("Calisto MT:20")
click := false
loop
mousewhere (x, y, button)
if button = 1 then
click := true
locatexy (x, y)
Font.Draw ("hello", x, y, font, 7)
end if
end loop
|
|
|
|
|
|
![](images/spacer.gif) |
cool dude
![](http://www.taylorstrategicmarketing.com/images/king.jpg)
|
Posted: Tue Jan 18, 2005 8:12 pm Post subject: (No subject) |
|
|
i think i get it. so in this case u want something like this
code: |
var font : int
var button : int
var click : boolean
var x, y : int
font := Font.New ("Calisto MT:20")
click := false
drawfillbox (200, 300, 300, 350, 5)
loop
mousewhere (x, y, button)
if button = 1 then
click := true
Font.Draw ("word", x, y, font, 7)
end if
exit when button = 1
end loop
|
|
|
|
|
|
![](images/spacer.gif) |
OsoInsane_abh
|
Posted: Tue Jan 18, 2005 8:59 pm Post subject: (No subject) |
|
|
Thanks Bacchus and cool dude, Really appreciate it!
I Reconsidered and i think i should go with the locate and put,
What the hell screw GUI.SHYTS
Thanks again
|
|
|
|
|
![](images/spacer.gif) |
OsoInsane_abh
|
Posted: Wed Jan 19, 2005 7:25 pm Post subject: (No subject) |
|
|
Hi, again i solved my problem.... its not much of a problem you can get text to apear on a textfield by using a combinations of GUI.GetText and GUI.SetText
see attatchment for more details
Description: |
I just posted it so that some one else down the road might not have as much trouble |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
CALCULATOR.T |
Filesize: |
4.23 KB |
Downloaded: |
123 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
person
|
Posted: Thu Jan 20, 2005 5:59 pm Post subject: (No subject) |
|
|
j*** ur calculator's missing a few functions eh? such as "="
|
|
|
|
|
![](images/spacer.gif) |
DarkBlazer
|
|
|
|
![](images/spacer.gif) |
|