EditorGadget receive first clic and hide cursor [Resolved]
Posted: Tue Feb 09, 2010 7:13 pm
Hello at all
I use an EditorGadget, but i see that the first click put the cursor into it, and sometime the second clic by random way detect the clic
I have try two method and it's the same thing
1/ Have you a tips for detect the first clic all the time ??? :roll:
2/ Have you another tips for hide cursor and stop the selection of the text inside ???
Because when i write this instruction, the cursor always appears
I can't use "DisableGadget()" because when an EditorGadget is Disable he loose his color and is all grey
Thanks and good day
I use an EditorGadget, but i see that the first click put the cursor into it, and sometime the second clic by random way detect the clic

I have try two method and it's the same thing

1/ Have you a tips for detect the first clic all the time ??? :roll:
2/ Have you another tips for hide cursor and stop the selection of the text inside ???
Because when i write this instruction, the cursor always appears

Code: Select all
SetGadgetAttribute(#Editor, #PB_Editor_ReadOnly, #true)

Code: Select all
OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
EditorGadget(0, 8, 8, 306, 133)
Repeat
Event = WaitWindowEvent()
If Event = #WM_LBUTTONDOWN
MessageRequester("", "Hello WM")
EndIf
Select #PB_Event_Gadget
Case #PB_EventType_LeftClick
MessageRequester("", "Hello PB")
EndSelect
Until Event = #PB_Event_CloseWindow