Page 1 of 1

hbox fails inside frame

Posted: Mon Mar 11, 2024 7:12 pm
by jacdelad
Hi,
I don't know if this is a bug or I'm doing something wrong. It worked before (<6.10 Beta 7, so I think this is a bug. If so, please move to bug section.

Modified example from the help:

Code: Select all

  #Dialog = 0
  #Xml = 0
  
  XML$ = "<window id='#PB_Any' name='test' text='test' minwidth='auto' minheight='auto' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>" +
         "          <frame text='Export'>" +
         "            <hbox>" +
         "            </hbox>" +
         "          </frame>" +
         "</window>"
  
  If ParseXML(#Xml, XML$) And XMLStatus(#Xml) = #PB_XML_Success
    
    If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #Xml, "test")
      
      Repeat
        Event = WaitWindowEvent()
      Until Event = #PB_Event_CloseWindow 
      
    Else  
      Debug "Dialog error: " + DialogError(#Dialog)
    EndIf
  Else
    Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
  EndIf
this code fails, when I put a hbox (or maybe other elements) into a frame. Tested with Windows 10/both backends/x86 and x64.

Re: hbox fails inside frame

Posted: Mon Mar 11, 2024 7:49 pm
by mk-soft

Re: hbox fails inside frame

Posted: Mon Mar 11, 2024 7:53 pm
by jacdelad
AH, I oversaw that. Seems like I need to wait for Beta 8. Thanks, mk-soft!

Re: hbox fails inside frame

Posted: Tue Mar 12, 2024 4:37 pm
by Caronte3D
I stopped using the dialog library because I found a bug that prevented me from doing what I needed, some time later I started it again and another bug prevented me from continuing, since then I no longer use it and I make my UIs with IceDesign.

Re: hbox fails inside frame

Posted: Tue Mar 12, 2024 4:59 pm
by jacdelad
As good as IceDesign is (and it's really good), I now prefer dialogs, because some thing happen here automatically. But I agree, that I'd love to see an overhaul, because you need some tricks to certain stuff (like gadgets with additional windows flags and such).

Re: hbox fails inside frame

Posted: Tue Mar 12, 2024 7:21 pm
by Caronte3D
jacdelad wrote: Tue Mar 12, 2024 4:59 pm ...because some thing happen here automatically.
If you refer to things like: Hbox, Vbox... IceDesign and her proportional relative to parent can do (almost) most of them.
But... yeah anyone should use the most interesting to him :wink:

Re: hbox fails inside frame

Posted: Tue Mar 12, 2024 8:54 pm
by jacdelad
Caronte3D wrote: Tue Mar 12, 2024 7:21 pm If you refer to things like: Hbox, Vbox... IceDesign and her proportional relative to parent can do (almost) most of them.
But... yeah anyone should use the most interesting to him :wink:
Automatic resizing/rearranging too?

Re: hbox fails inside frame

Posted: Tue Mar 12, 2024 11:32 pm
by Caronte3D
jacdelad wrote: Tue Mar 12, 2024 8:54 pm Automatic resizing/rearranging too?
Yes! well, not full rearanging, you must try to know if it works for you