
-----------------------------------
OsoInsane_abh
Tue Jan 18, 2005 2:26 pm

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  :wink:

-----------------------------------
MysticVegeta
Tue Jan 18, 2005 2:54 pm


-----------------------------------
Hmm....

-----------------------------------
MysticVegeta
Tue Jan 18, 2005 2:56 pm


-----------------------------------
hehehe...

-----------------------------------
Bacchus
Tue Jan 18, 2005 5:25 pm


-----------------------------------
whatd do you mean add buttons to type in a text fields?

-----------------------------------
OsoInsane_abh
Tue Jan 18, 2005 6:17 pm


-----------------------------------
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
Tue Jan 18, 2005 6:58 pm


-----------------------------------
U mean take the actual words from the button and display them at like location (1,1) ??

-----------------------------------
basketball4ever
Tue Jan 18, 2005 7:54 pm


-----------------------------------
we still dont get wat ur talking about : :shock:

-----------------------------------
Bacchus
Tue Jan 18, 2005 7:58 pm


-----------------------------------
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)

-----------------------------------
cool dude
Tue Jan 18, 2005 8:08 pm


-----------------------------------
i'm not sure wat u mean but as i see u want something like this


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
Tue Jan 18, 2005 8:12 pm


-----------------------------------
i think i get it. so in this case u want something like this


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
Tue Jan 18, 2005 8:59 pm


-----------------------------------
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
Wed Jan 19, 2005 7:25 pm


-----------------------------------
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  :arrow:

-----------------------------------
person
Thu Jan 20, 2005 5:59 pm


-----------------------------------
j*** ur calculator's missing a few functions eh? such as "="

-----------------------------------
DarkBlazer
Thu Jan 20, 2005 6:29 pm


-----------------------------------
j*** ur calculator's missing a few functions eh? such as "="

Dude not to be mean or anything but i dont think you read the posts, or you didnt learn to at school :wall:  (I think its a good idea to start now :think:  ) and if your so concerned i didnt want to leak out my ISP untill its in safe hands with my teacher... i will post it 6 pm tomorrow :P 

btws 

DarkBlazer = OSoInsane_abh
