It is currently Tue Oct 24, 2017 1:35 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [PB5.45 LTS]XMLDialog broken
PostPosted: Wed Sep 27, 2017 4:34 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1052
Location: germany
I tried this on PB 5.24 LTS, and it works fine. On PB 5.45 LTS, if fails:

- Treeview missing (try resize)
- Resizing fails (moves the splittes wrong, tree seizes wrong)
- Splitter Gadget fails (can not move the splitter)

Kubuntu 16.04

Code:
a.s = ""
a.s + "<?xml version='1.0' ?>"
a.s + "<window name='mainWindow'"
a.s + "        minwidth='auto' minheight='auto'"
a.s + "        text=\q~21~\q"
a.s + "        margin='0'"
a.s + "        flags='#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_TitleBar|#PB_Window_SizeGadget|#PB_Window_MaximizeGadget|#PB_Window_Invisible'>"
a.s + "  <vbox expand=\qitem:2\q>"
a.s + "    <singlebox width='10' height='80'>"
a.s + "      <!-- Header Image -->"
a.s + "    </singlebox>"
a.s + "    <singlebox margin=\qleft:15,top:0,right:15,bottom:10\q>"
a.s + "      <vbox expand=\qitem:2\q>"
a.s + "        <hbox expand=\qitem:2\q>"
a.s + "          <hbox expand=\qno\q align=\qleft\q>"
a.s + "            <button id=\q1\q name=\qbutInvite\q text=\q~52~\q />"
a.s + ""
a.s + "            <button id=\q2\q name=\qbutNewBox\q text=\q~15~\q />"
a.s + "            <button id=\q3\q name=\qbutManageBoxes\q text=\q~78~\q />"
a.s + "            <button id=\q6\q name=\qbutHistory\q text=\q~350~\q />"
a.s + ""
a.s + "            <button id=\q4\q name=\qbutSettings\q text=\q~92~\q />"
a.s + "          </hbox>"
a.s + "          <empty />"
a.s + "          <button id=\q5\q name=\qbutTips\q text=\q?\q />"
a.s + "        </hbox>"
a.s + "        <splitter name=\qsplitter\q firstmin=\q180\q secondmin=\q500\q flags=\q#PB_Splitter_Vertical\q>"
a.s + "          <vbox expand=\qitem:1\q spacing=\q0\q>"
a.s + "            <tree name=\qtree\q width=\q160\q height=\q250\q flags=\q#PB_Tree_AlwaysShowSelection\q/>"
a.s + "          </vbox>"
a.s + "          <vbox expand=\qitem:1\q>"
a.s + "            <splitter firstmin=\q100\q secondmin=\q100\q flags=\q\q>"
a.s + "              <listicon name=\qfiles\q width=\q500\q height=\q150\q"
a.s + "                        flags='#PB_ListIcon_AlwaysShowSelection|#PB_ListIcon_HeaderDragDrop|#PB_ListIcon_FullRowSelect|#PB_ListIcon_MultiSelect'/>"
a.s + "              <listicon name=\qdetails\q width=\q500\q height=\q100\q"
a.s + "                        flags='#PB_ListIcon_FullRowSelect'/>"
a.s + "            </splitter>"
a.s + "          </vbox>"
a.s + "        </splitter>"
a.s + "        <hbox expand=\qitem:2\q>"
a.s + "          <image name=\qimgStatus\q width=\q16\q height=\q16\q />"
a.s + "          <text name=\qlblStatus\q text=\q\q flags=\q\q />"
a.s + "          <text name=\qlblLegend\q  text=\q~170~:\q flags=\q#PB_Text_Right\q />"
a.s + "          <text name=\qlblCurrent\q  text=\q  ~171~  \q flags=\q#PB_Text_Center\q />"
a.s + "          <text name=\qlblConflict\q text=\q  ~172~  \q flags=\q#PB_Text_Center\q />"
a.s + "          <text name=\qlblNormal\q  text=\q  ~174~  \q flags=\q#PB_Text_Center\q />"
a.s + "          <text name=\qlblNotLocal\q text=\q  ~173~  \q flags=\q#PB_Text_Center\q />"
a.s + "          <empty />"
a.s + "        </hbox>"
a.s + "      </vbox>"
a.s + "    </singlebox>"
a.s + "  </vbox>"
a.s + "</window>"

a.s = ReplaceString(a.s, "\q", Chr(34)) ; get quotes back
Debug a.s

If CreateFile(0, GetTemporaryDirectory() + "test.xml")
  WriteString(0, a.s)
  CloseFile(0)
EndIf

xml.i = LoadXML(#PB_Any, GetTemporaryDirectory() + "test.xml")

d.i = CreateDialog(#PB_Any)

w.i = OpenXMLDialog(d.i, xml.i, "")

HideWindow(DialogWindow(d.i), #False)

Repeat
  Event.i = WaitWindowEvent()
Until Event.i = #PB_Event_CloseWindow


I also get some GTK warnings and errors:

Code:
[17:39:15] Warte auf den Start des Executable...
[17:39:15] Executable-Typ: Linux - x64  (64bit, Unicode)
[17:39:15] Executable gestartet.
[17:39:15] [WARNING] Zeile: 69
[17:39:15] [WARNING] Gtk (CRITICAL): gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed
[17:39:15] [WARNING] Zeile: 69
[17:39:15] [WARNING] Gtk (WARNING): gtk_widget_size_allocate(): attempt to allocate widget with width 8 and height -30
[17:39:15] [WARNING] Zeile: 69
[17:39:15] [WARNING] Gtk (CRITICAL): gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed
[17:39:15] [WARNING] Zeile: 69
[17:39:15] [WARNING] Gtk (WARNING): gtk_widget_size_allocate(): attempt to allocate widget with width 8 and height -30


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.45 LTS]XMLDialog broken
PostPosted: Wed Oct 11, 2017 8:01 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1052
Location: germany
Can someone confirm? XMLDialogue is not usable for me on Linux with PB 5.45 LTS.


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 2 guests


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:  
cron

 


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