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

Username:   Password: 
 RegisterRegister   
 clipboard and gui
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
jonos




PostPosted: Fri Feb 13, 2004 5:26 pm   Post subject: clipboard and gui

does GUI have the ability to accept text from the clipboard and does it allow text to be copied to the clipboard
Sponsor
Sponsor
Sponsor
sponsor
santabruzer




PostPosted: Fri Feb 13, 2004 5:29 pm   Post subject: (No subject)

i asked this a while back.. and i think the answer was no.. but with the new version.. iono if it's possible.. i would suggest to err.. use VB
jonos




PostPosted: Fri Feb 13, 2004 5:31 pm   Post subject: (No subject)

yeah, maybe i will. but i need to learn how to use the things like chr and ord
Delos




PostPosted: Fri Feb 13, 2004 6:28 pm   Post subject: (No subject)

It is possible for GUI to accept text from a "Clipboard". Note the quotation marks.

This would mean creating your own clipboard for the programme:
(summthin like this:)
code:

var clips:string := ""
var ch : array char of boolean

loop
Input.KeyDown (ch)
% Here you would have the GUI.TextFields going.
if ch('^C') then
clips := GUI.GetText (textField)
end if

if ch('^V') then
GUI.SetText (textField, clips)
end if

end loop



That code is not perfect, may be buggy, but you get the idea. There are probably better ways to do it, such as determining selection and such, but that is the basic idea.
Dan




PostPosted: Fri Feb 13, 2004 7:58 pm   Post subject: (No subject)

the clipbord is part of the windows api, turing as far as i know dose not alow u to dricty intreface with the windows api.

u could always get the user to hit Ctrl-v Razz
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Homer_simpson




PostPosted: Fri Feb 13, 2004 8:13 pm   Post subject: (No subject)

well i'm almost 100% sure u can't goto windows note pad copy something and paste it to yer program... but u can make a clipboard for tuing only yerself...
Delos




PostPosted: Fri Feb 13, 2004 9:23 pm   Post subject: (No subject)

Hmm...ever heard of dirty commands? That could work.

Just need to find the space in RAM where the clipboard stores stuff...and Bob's your uncle...well, Bob's your robber, really.

Sorry, a very few and select number of ppl would get the full meaning of that joke...
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  [ 7 Posts ]
Jump to:   


Style:  
Search: