Solved Select text in datafield

Discussion forum about all things Team Developer 5.x and 6.x
User avatar
benedikz
Czech Republic
Posts: 14
Joined: 04 Nov 2021, 06:03
Location: Šumperk, Czech Republic

Select text in datafield

Post by benedikz » 02 Mar 2022, 14:10

Hello!

I have seen that it should be possible to select text, which is contained in a date field in TD5.2. How would you do that? Does it include sending a message to that datafield using SalSendMsg function?
I tried looking for the messages, that this function can send but found only few. Any help would be appreciated, my solution requires me to autoselect text contained in a data field.

Kind regards,
Thomas

Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 617
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

Re: Select text in datafield

Post by Uwe van der Horst » 02 Mar 2022, 16:34

Hi Thomas,

here you find all the information and a sample WIKI_CursorPosAndTextSelection.zip that should help you:

https://wiki.tdcommunity.net/index.php/Multilines

It works both for multilines and data fields.
Best regards,
Uwe van der Horst
stp.one

User avatar
benedikz
Czech Republic
Posts: 14
Joined: 04 Nov 2021, 06:03
Location: Šumperk, Czech Republic

Re: Select text in datafield

Post by benedikz » 03 Mar 2022, 05:57

Thank you Uwe, much appreciated :)

Return to “General Discussion TD 5.x and 6.x”

Who is online

Users browsing this forum: No registered users and 0 guests