Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Select text in an Edit Box (2 replies)

$
0
0
Hello all,

I have an a multiline edit box which is filled by programming. I wish the user to select a part of the text in the edit box and then click on a button which will then "copy" the selected area into a variable.

Once the area has been selected / highlighted in the edit box, as you click on button the edit box loses focus and the selected area is lost. This prevents the code in the button from working as there is nothing selected in the edit box.

Is there a way of preventing the selected text in the edit box being 'lost' as the edit box loses focus?

I am using WD21.

TIA
Robin.

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>