1. Win32Lib and the Clipboard...
- Posted by Ben Logan <wbljr79 at HOTMAIL.COM> Apr 07, 2000
- 468 views
Greetings, I'm writing a program in Win32Lib and need to be able to copy a string to the clipboard without first putting it in a control and selecting it. Is that possible? In other words, the user will never see the string, they just press a button and it gets sent to the clipboard. Also, can I select the text in an SLE or MLE with a command so that I can implement a select-all? Thanks, Ben ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
2. Re: Win32Lib and the Clipboard...
- Posted by Brian Broker <bkb at CNW.COM> Apr 07, 2000
- 430 views
On Fri, 7 Apr 2000 06:10:45 EDT, Ben Logan <wbljr79 at HOTMAIL.COM> wrote: >Greetings, > >I'm writing a program in Win32Lib and need to be able to copy a string to >the clipboard without first putting it in a control and selecting it. Is >that possible? In other words, the user will never see the string, they >just press a button and it gets sent to the clipboard. I think you'd have to use 'SetClipboardData'. More info on this function is at http://msdn.microsoft.com/library/psdk/winbase/clipbrd_4pup.htm If you are not sure what to do with this then reply to me personally and I will give you a hand with a wrapper for it (or if somebody already has a wrapper for it then they should speak up). >Also, can I select the text in an SLE or MLE with a command so that I can >implement a select-all? This can be easily done using Win32Lib's 'sendMessage' function. Send the message 'EM_SETSEL' to your control. wParam is the starting position and lParam is ending position. If the start is 0 and the end is =961, all the text in the edit control is selected. More info on EM_SETSEL can be found at http://msdn.microsoft.com/library/psdk/winui/editcon_4gmk.htm -- Brian
3. Re: Win32Lib and the Clipboard...
- Posted by Caballero Rojo <pampeano at ROCKETMAIL.COM> Apr 07, 2000
- 444 views
- Last edited Apr 08, 2000
Hello Ben, I've got the solution. =) ********************************************** CLIPBRD.E v1.1 by Jacques Deschenes email: desja at globetrotter.com july 1997 ********************************************** Look it on the archive, or find it on the recent contributions page using the search engine. -- Best regards, ICQ Number: 3198249 Caballero Rojo mailto:pampeano at rocketmail.com Friday, April 07, 2000, 3:10:45 AM, you wrote: BL> Greetings, BL> I'm writing a program in Win32Lib and need to be able to copy a string to BL> the clipboard without first putting it in a control and selecting it. Is BL> that possible? In other words, the user will never see the string, they BL> just press a button and it gets sent to the clipboard. BL> Also, can I select the text in an SLE or MLE with a command so that I can BL> implement a select-all? BL> Thanks, BL> Ben BL> ______________________________________________________ BL> Get Your Private, Free Email at http://www.hotmail.com __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
4. Re: Win32Lib and the Clipboard...
- Posted by Ben Logan <wbljr79 at HOTMAIL.COM> Apr 08, 2000
- 452 views
Thanks, Brian and Caballero. I hope to have the program I'm working on ready to put on the Euphoria site soon. It'll be the first one I've contributed. Regards, Ben ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com