It is currently Thu Jul 18, 2019 2:54 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [Done] TreeGadget items cut off when on Dialog
PostPosted: Fri Feb 01, 2019 1:22 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 434
When a TreeGadget is placed on a Dialog, when items with subitems are expanded, the subitems' text will be cut off. It doesn't happen if the TreeGadget is on a normal PB Window.
Code:
Runtime Enumeration
  #Dialog
  #Window
  #Tree1
  #Tree2
EndEnumeration

Procedure DoDialogTree()
  Protected xml$, xml, dialog
  xml$ = "<window id='#PB_Any' name='test' text='Dialog' minwidth='250' minheight='200' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>"
  xml$ + "  <tree id='#Tree1'/>"
  xml$ + "</window>"
  ParseXML(xml, xml$) : CreateDialog(#Dialog) : OpenXMLDialog(#Dialog, xml, "test")
  AddGadgetItem(#Tree1, -1, "Item one")
  AddGadgetItem(#Tree1, -1, "Item two", 0, 1)
  AddGadgetItem(#Tree1, -1, "Item three", 0, 2)
EndProcedure

Procedure DoWindowTree()
  OpenWindow(#Window, 0, 0, 250, 200, "Window", #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget)
  TreeGadget(#Tree2, 10, 10, WindowWidth(#Window) - 20, WindowHeight(#Window) - 20)
  AddGadgetItem(#Tree2, -1, "Item one")
  AddGadgetItem(#Tree2, -1, "Item two", 0, 1)
  AddGadgetItem(#Tree2, -1, "Item three", 0, 2)
EndProcedure

DoDialogTree() : DoWindowTree()
ResizeWindow(#Window, WindowX(#Window) + 260, #PB_Ignore, #PB_Ignore, #PB_Ignore)

Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow


Top
 Profile  
Reply with quote  
 Post subject: Re: TreeGadget items cut off when on Dialog
PostPosted: Fri Apr 12, 2019 3:38 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13595
Location: France
Fixed.


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

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