Found an issue in SpiderBasic ? Please report it here !
User avatar
Peter
 
Posts: 486
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

OpenXmlDialog & SplitterGadget

by Peter Thu Mar 09, 2017 10:18 am

Hello,

it seems, that the SplitterGadget in combination with OpenXmlDialog is buggy. The first item (b1) has a wrong height:

Code: Select all
#Xml = 0
#Dialog = 0

XML$ = "<window id='#PB_Any' name='test' text='SplitterGadget' minwidth='400' minheight='200' flags='#PB_Window_SystemMenu | #PB_Window_SizeGadget| #PB_Window_ScreenCentered'>" +
       "   <splitter>" +
       "      <button text='b1'/>" +
       "      <button text='b2'/>" +
       "   </splitter>" +
       "</window>"


If ParseXML(#Xml, XML$) And XMLStatus(#Xml) = #PB_XML_Success
   If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #Xml, "test") = #False
      Debug "Dialog error: " + DialogError(#Dialog)
   EndIf
Else
   Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
EndIf 

CompilerIf #PB_Compiler_OS <> #PB_OS_Web
   Repeat
   Until WaitWindowEvent()=#PB_Event_CloseWindow
CompilerEndIf


SpiderBasic:
Image

PureBasic:
Image

Thanks in advance & Greetings ... Peter
Didelphodon
 
Posts: 1
Joined: Thu Apr 12, 2018 4:05 pm

Re: OpenXmlDialog & SplitterGadget

by Didelphodon Fri Apr 13, 2018 5:48 am

+1
Same issue in my project :-(

Update: Is there any workaround at the moment besides not using splitters in dialogs?
User avatar
Peter
 
Posts: 486
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

Re: OpenXmlDialog & SplitterGadget

by Peter Fri Apr 13, 2018 6:53 am

@Didelphodon

a manual SetGadgetState() will do the job:

Code: Select all
#Xml = 0
#Dialog = 0

XML$ = "<window id='#PB_Any' name='test' text='SplitterGadget' minwidth='400' minheight='200' flags='#PB_Window_SystemMenu | #PB_Window_SizeGadget| #PB_Window_ScreenCentered'>" +
       "   <splitter name='mySplitter'>" +
       "      <button text='b1'/>" +
       "      <button text='b2'/>" +
       "   </splitter>" +
       "</window>"


If ParseXML(#Xml, XML$) And XMLStatus(#Xml) = #PB_XML_Success
  If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #Xml, "test")
   
    SetGadgetState(DialogGadget(#Dialog, "mySplitter"), 90)
   
  EndIf
Else
  Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
EndIf


Greetings ... Peter
tj1010
 
Posts: 183
Joined: Wed May 27, 2015 1:36 pm

Re: OpenXmlDialog & SplitterGadget

by tj1010 Sun Apr 15, 2018 11:29 am

I find a large list of bugs in dialog lib every time I use it.. Mostly rendering bugs

Things get really crazy the second you use colexpand or rowexpand with complex layouts and "item:"..
poshu
 
Posts: 45
Joined: Mon Feb 24, 2014 11:46 pm

Re: OpenXmlDialog & SplitterGadget

by poshu Sun Apr 15, 2018 3:42 pm

tj1010 wrote:I find a large list of bugs in dialog lib every time I use it.. Mostly rendering bugs

Things get really crazy the second you use colexpand or rowexpand with complex layouts and "item:"..

Well, you know tj1010, that's why we write stuff in the bug section : it's some form of therapeutic screaming.

Even weirder, some says that bug described here are corrected down the line... But this is just a baseless rumor to me : what could be the correlation between a reported bug and a corrected bug?
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest