I use Randy Walker example and it works very well,
at the same time, I know the length of the received messages ...
Randy Walker wrote: Sat Sep 20, 2025 3:53 am
Hi marc... I've always used sendmessage to do that. Unfortunately not cross platform, but works well enough for me in Windows:
I use Randy Walker example and it works very well,
at the same time, I know the length of the received messages ...
Randy Walker wrote: Sat Sep 20, 2025 3:53 am
Hi marc... I've always used sendmessage to do that. Unfortunately not cross platform, but works well enough for me in Windows:
Shouild also note that #EM_SETSEL is used to select text:
If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
EditorGadget(0, 8, 8, 306, 133)
SetGadgetText(0,"Mary had a little lamb.")
SetActiveGadget(0)
bottom = Len(GetGadgetText(0))
SendMessage_(GadgetID(0), #EM_SETSEL, bottom-5, bottom-1)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist.