IonicWind Software

IWBasic => General Questions => Topic started by: Brian on June 09, 2023, 08:59:49 AM

Title: Selection help
Post by: Brian on June 09, 2023, 08:59:49 AM
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
Title: Re: Selection help
Post by: LarryMc on June 09, 2023, 08:29:13 PM
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?
Title: Re: Selection help
Post by: Brian on June 10, 2023, 03:58:57 AM
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