clipboard and gui
Author |
Message |
jonos
![](http://jonos.f2g.net/pictures/rankca.gif)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
santabruzer
![](http://www.pureoc.d2g.com/uploaded_images/9853.jpg)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
jonos
![](http://jonos.f2g.net/pictures/rankca.gif)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Delos
![](http://www.members.shaw.ca/rfolz/delos_avatar.gif)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: 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 Razz](http://compsci.ca/v3/images/smiles/icon_razz.gif) |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
Homer_simpson
![](http://compsci.ca/v3/uploads/user_avatars/18138546704b4d2a3b2e50e.gif)
|
Posted: 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... |
|
|
|
|
![](images/spacer.gif) |
Delos
![](http://www.members.shaw.ca/rfolz/delos_avatar.gif)
|
Posted: 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... |
|
|
|
|
![](images/spacer.gif) |
|
|