|
| Inicio → WINDEV 2024 → Can we locate the exact position of the cursor inside a multi text edit control?? |
| Can we locate the exact position of the cursor inside a multi text edit control?? |
| Iniciado por 123joemonjacob, 28,sep. 2017 07:42 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 28,septiembre 2017 - 07:42 |
I need to display a list at the bottom of character typed at the moment how do i do this ? I think I will be able to do this if I get exact X Y coordinates .But windev only provide coordinate of control !! How can I get the exact coordinates inside a edit control ?? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,septiembre 2017 - 12:45 |
Hi Joe
if I understand correctly your question, look at the ..Cursor and ..CursorEnd properties of your edit field
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
Le 9/27/2017 à 11:42 PM, joe a écrit :
I need to display a list at the bottom of character typed at the moment how do i do this ? I think I will be able to do this if I get exact X Y coordinates .But windev only provide coordinate of control !! How can I get the exact coordinates inside a edit control ?? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,septiembre 2017 - 12:48 |
Also, once you know the position of the cursor inside the text, to get a x/y position, you can use the functions to get the width and height of a text with the text being in that case the text UP TO the position of the cursor...
Of course, these 2 answers are based on the TEXT cursor. If you want to know where the used CLICKED inside a text, use the mouseinfoxy or mouseposX functions
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
Le 9/27/2017 à 11:42 PM, joe a écrit :
I need to display a list at the bottom of character typed at the moment how do i do this ? I think I will be able to do this if I get exact X Y coordinates .But windev only provide coordinate of control !! How can I get the exact coordinates inside a edit control ?? |
| |
| |
| | | |
|
| | | | |
| | |
|