H All
How can I generate an event and colect it every time I enter a character in a string gadget?
Thank Ypu
Get StringGadget event (was: A question)
- Mindphazer
- Enthusiast
- Posts: 456
- Joined: Mon Sep 10, 2012 10:41 am
- Location: Savoie
Re: Get StringGadget event (was: A question)
Maybe with #PB_EventType_Change :
Code: Select all
If OpenWindow(0, 0, 0, 322, 205, "Les options de StringGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
StringGadget(0, 8, 10, 306, 20, "Text")
Repeat
Event = WaitWindowEvent()
If event = #PB_Event_Gadget
If EventGadget() = 0
If EventType() = #PB_EventType_Change
Debug "Changed"
EndIf
EndIf
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
...and unfortunately... Windows at work...
Re: Get StringGadget event (was: A question)
@ClueLess: Please use meaningful subjects in future. Nobody can do anything with "Help", "A question" or "Can't find the error".
Hygge