scrollbargadget Eventtype - stepwidth not Pagelenght
Posted: Mon Dec 05, 2016 10:42 pm
Hello and good eveneing,
is t possible to catch the Events when you klick on the scroll arrow ?
Problem: When I click on the right arrow, it increases gadgetstate() + 1, but i would like to increase by 20 for example, I dont know how.
Anybody knows a way to do it ?
Thanks in advance
AMnesty
Here is an example, to explain more detailed, what I am telling about.
is t possible to catch the Events when you klick on the scroll arrow ?
Problem: When I click on the right arrow, it increases gadgetstate() + 1, but i would like to increase by 20 for example, I dont know how.
Anybody knows a way to do it ?
Thanks in advance
AMnesty
Here is an example, to explain more detailed, what I am telling about.
Code: Select all
If OpenWindow(0, 0, 0, 305, 140, "ScrollBarGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget (2, 10, 25, 250, 20, "ScrollBar Standard (start=50, page=30/100)",#PB_Text_Center)
ScrollBarGadget (0, 10, 42, 250, 20, 0, 100, 30)
Repeat
event = WaitWindowEvent()
If EventGadget() = 0
If EventType() = #PB_EventType_LeftClick
Debug GetGadgetState(0)
EndIf
EndIf
Until event = #PB_Event_CloseWindow
EndIf