Qt - Any workaround for ScrollAreaGadget()?

Linux specific forum
urland523
New User
New User
Posts: 3
Joined: Tue Mar 21, 2023 9:06 pm

Qt - Any workaround for ScrollAreaGadget()?

Post by urland523 »

Is there a way to determine the vertical position for the horizontal bar in a ScrollAreaGadget() so it's visible using the Qt subsystem? Inner and frame coordinate have the same value. Thank you.

PB 6.02
Kubuntu 22.04
Qt 5.15.3
Kernal 5.15.0-101 64 bit
Graphics Platform X11
Plasma Version 5.24.7

Code: Select all

If OpenWindow(0,0,0,800,600,"",#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered)
   SetWindowTitle(0,"Test")
 Else
   End
EndIf

If CreateMenu(0,WindowID(0))
   MenuTitle("Test")
   MenuItem(0,"Test 1")
Else
   End
EndIf

offset.i = WindowHeight(0,#PB_Window_FrameCoordinate) - WindowHeight(0,#PB_Window_InnerCoordinate)

ScrollAreaGadget(0,0,0,800,600 - offset,1600,1200,50,#PB_ScrollArea_BorderLess)

Debug WindowHeight(0,#PB_Window_InnerCoordinate)
Debug WindowHeight(0,#PB_Window_FrameCoordinate)

While WaitWindowEvent() <> #PB_Event_CloseWindow
Wend