Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Re: GUI.TextField and GUI.ButtonFull
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
OsoInsane_abh




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
MysticVegeta




PostPosted: Tue Jan 18, 2005 2:54 pm   Post subject: (No subject)

Hmm....
MysticVegeta




PostPosted: Tue Jan 18, 2005 2:56 pm   Post subject: (No subject)

hehehe...
Bacchus




PostPosted: 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




PostPosted: 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
Confused
cycro1234




PostPosted: 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




PostPosted: Tue Jan 18, 2005 7:54 pm   Post subject: (No subject)

we still dont get wat ur talking about : Shocked
Bacchus




PostPosted: 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 Sad (my teacher knows nothing of GUI, and ive only learned wat ive read in turing help)
Sponsor
Sponsor
Sponsor
sponsor
cool dude




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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 Arrow



CALCULATOR.T
 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:  117 Time(s)

person




PostPosted: Thu Jan 20, 2005 5:59 pm   Post subject: (No subject)

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




PostPosted: Thu Jan 20, 2005 6:29 pm   Post subject: (No 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 14 Posts ]
Jump to:   


Style:  
Search: