April 27, 2024, 05:10:20 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Selection help

Started by Brian, June 09, 2023, 08:59:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

Hi,

I have three edit boxes. Depending on which one has all the text highlighted, how do I go about copying the contents to the Clipboard? Only if one of the three is highlighted, don't want anything to happen otherwise

I know how to copy text to the Clipboard if I set the correct handle to the edit box

Many thanks,

Brian

LarryMc

If you highlight text in an edit control and then execute a CTRL-V command on that control, it will be copied to to the Clipboard.

So what is your problem, determining which control has hi-lighted text?

What triggers the event to check and see if it is time to see if anything is hi-lighted in any of your edit boxes?
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Brian

Larry, thanks for replying. Yes, my problem was detecting which edit control was selected

But, no worries, I have opted for a much simpler approach, instead of beating my brains out!

Brian