hbox fails inside frame

Just starting out? Need help? Post your questions and find answers here.
User avatar
jacdelad
Addict
Addict
Posts: 2032
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

hbox fails inside frame

Post 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.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
mk-soft
Always Here
Always Here
Posts: 6320
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: hbox fails inside frame

Post by mk-soft »

My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
jacdelad
Addict
Addict
Posts: 2032
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: hbox fails inside frame

Post by jacdelad »

AH, I oversaw that. Seems like I need to wait for Beta 8. Thanks, mk-soft!
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
Caronte3D
Addict
Addict
Posts: 1371
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: hbox fails inside frame

Post 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.
User avatar
jacdelad
Addict
Addict
Posts: 2032
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: hbox fails inside frame

Post 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).
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
Caronte3D
Addict
Addict
Posts: 1371
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: hbox fails inside frame

Post 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:
User avatar
jacdelad
Addict
Addict
Posts: 2032
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: hbox fails inside frame

Post 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?
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
Caronte3D
Addict
Addict
Posts: 1371
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: hbox fails inside frame

Post 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
Post Reply