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
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
MysticVegeta
|
Posted: Tue Jan 18, 2005 2:54 pm Post subject: (No subject) |
|
|
Hmm....
|
|
|
|
|
|
MysticVegeta
|
Posted: Tue Jan 18, 2005 2:56 pm Post subject: (No subject) |
|
|
hehehe...
|
|
|
|
|
|
Bacchus
|
Posted: Tue Jan 18, 2005 5:25 pm Post subject: (No subject) |
|
|
whatd do you mean add buttons to type in a text fields?
|
|
|
|
|
|
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
|
|
|
|
|
|
cycro1234
|
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) ??
|
|
|
|
|
|
basketball4ever
|
Posted: Tue Jan 18, 2005 7:54 pm Post subject: (No subject) |
|
|
we still dont get wat ur talking about :
|
|
|
|
|
|
Bacchus
|
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)
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
cool dude
|
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
|
|
|
|
|
|
|
cool dude
|
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
|
|
|
|
|
|
|
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
|
|
|
|
|
|
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 |
|
Download |
Filename: |
CALCULATOR.T |
Filesize: |
4.23 KB |
Downloaded: |
123 Time(s) |
|
|
|
|
|
|
person
|
Posted: Thu Jan 20, 2005 5:59 pm Post subject: (No subject) |
|
|
j*** ur calculator's missing a few functions eh? such as "="
|
|
|
|
|
|
DarkBlazer
|
|
|
|
|
|