Computer Science Canada

Re: GUI.TextField and GUI.ButtonFull

Author:  OsoInsane_abh [ 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 Question

Thank you Wink

Author:  MysticVegeta [ Tue Jan 18, 2005 2:54 pm ]
Post subject: 

Hmm....

Author:  MysticVegeta [ Tue Jan 18, 2005 2:56 pm ]
Post subject: 

hehehe...

Author:  Bacchus [ Tue Jan 18, 2005 5:25 pm ]
Post subject: 

whatd do you mean add buttons to type in a text fields?

Author:  OsoInsane_abh [ Tue Jan 18, 2005 6:17 pm ]
Post 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
Confused

Author:  cycro1234 [ Tue Jan 18, 2005 6:58 pm ]
Post subject: 

U mean take the actual words from the button and display them at like location (1,1) ??

Author:  basketball4ever [ Tue Jan 18, 2005 7:54 pm ]
Post subject: 

we still dont get wat ur talking about : Shocked

Author:  Bacchus [ Tue Jan 18, 2005 7:58 pm ]
Post 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 Sad (my teacher knows nothing of GUI, and ive only learned wat ive read in turing help)

Author:  cool dude [ Tue Jan 18, 2005 8:08 pm ]
Post 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

Author:  cool dude [ Tue Jan 18, 2005 8:12 pm ]
Post 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

Author:  OsoInsane_abh [ Tue Jan 18, 2005 8:59 pm ]
Post 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

Author:  OsoInsane_abh [ Wed Jan 19, 2005 7:25 pm ]
Post 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 Arrow

Author:  person [ Thu Jan 20, 2005 5:59 pm ]
Post subject: 

j*** ur calculator's missing a few functions eh? such as "="

Author:  DarkBlazer [ Thu Jan 20, 2005 6:29 pm ]
Post subject: 

person wrote:
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 Hit Wall (I think its a good idea to start now Thinking ) 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 Razz

btws

DarkBlazer = OSoInsane_abh


: