It is currently Fri Mar 22, 2019 10:01 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: SplitterGadget drag 'icon' gets stuck
PostPosted: Tue Mar 05, 2019 7:46 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 344
When changing the splitter position of a SplitterGadget with SetGadgetState, the little 'icon' on the splitter gets stuck at the old splitter position until the user changes the splitter position.

Image

Code:
Enumeration
  #Window
  #Tree
  #String
  #Splitter
EndEnumeration

If OpenWindow(#Window, 0, 0, 320, 240, "SplitterGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 
  TreeGadget(#Tree, 0, 0, 0, 0)
  StringGadget(#String, 0, 0, 0, 0, "")
  SplitterGadget(#Splitter, 0, 0, WindowWidth(#Window), WindowHeight(#Window), #Tree, #String, #PB_Splitter_Vertical)
 
  SetGadgetState(#Splitter, 100)
 
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye