Page 3 of 15

Re: DialogDesign0R V1.32

Posted: Tue Jan 08, 2019 7:12 pm
by HeX0R
You mean that didn't happen with previous versions?
Or is it the first time you are using dd?

Can you tell me a little more about your setup?
How many monitors?
Where do you usually want dd to open?

There is a procedure included, which makes sure dd will not open out of sight (for example a disabled monitor, which had been activated the last time).
Until now this worked just fine and I didn't touch this procedure since quite some time.

Re: DialogDesign0R V1.32

Posted: Tue Jan 08, 2019 7:23 pm
by Ajm
Hi HeXOR,

I've got the same problem. Version 1.29 and 1.30 both opened in main window in the same position it was last closed at. 1.32 always opens at 0,0.
If you open 1.32 and close it then open v1.30, v1.30 opens at 0,0 as well but when moved and closed it opens again in the last opened location.

Re: DialogDesign0R V1.32

Posted: Tue Jan 08, 2019 7:45 pm
by HeX0R
O. K. I'll look into it this evening

Re: DialogDesign0R V1.32

Posted: Tue Jan 08, 2019 8:16 pm
by forumuser
You mean that didn't happen with previous versions?
Or is it the first time you are using dd?
It didn't happen with v1.30 or any other version before
Can you tell me a little more about your setup?
How many monitors?
A dual monitor setup (with different resolutions)
PB 5.70 LTS and I compiled DD from the sources
Where do you usually want dd to open?
In the same way as it was before, from it's last position,
wherever that is (sometimes I move DD to the second monitor
because PB is normally on the first one)

Re: DialogDesign0R V1.32

Posted: Tue Jan 08, 2019 8:21 pm
by HeX0R
Please download it again, seems I have by accident deleted a quite important line of code :oops:

I will not increase the version for such a stupid mistake :twisted:

Re: DialogDesign0R V1.32

Posted: Tue Jan 08, 2019 8:25 pm
by forumuser
Works again, thanks for the quick fix!

Re: DialogDesign0R V1.32

Posted: Wed Jan 09, 2019 9:31 pm
by Ajm
Working here too. Thanks.

Regards

Andy

Re: DialogDesign0R V1.45

Posted: Sat Jan 26, 2019 12:41 am
by HeX0R
Update V1.45!
  • Fixed a few panel related thing
  • Added possibility to automatically let DD open the last used Dialog

Update V1.43!
  • Fixed the option item
  • Changed the order of the phrases in the "translate.txt" file to make it easier to read/use.

Update V1.42!
  • Fixed quite some bugs from V1.40
  • Added multilanguage support.
    Use the "translate.txt" file, translate it and save it as "yourlanguage.lan"
    You can also send this to me, and I will officially add it.

Update V1.40!

This is a huge update, and I've added/fixed a few things which have been since quite a while on my todo list.
Most likely I also introduced a few new bugs.
Just let me know and I will try to fix them.
  • Containers can now easily be replaced (rightclick... switch container)
    This has been requested
  • Added a cut option
  • Added some keyboard shortcuts (e.g. CTRL+C, CTRL+V, CTRL+X, F5 = Show all Dialogs, F6 = Hide all Dialogs)
  • Added a preference window and moved the configuration settings to this window (e.g. refresh time, comment settings, update button, ...)
  • All dialogs will now remember their last positions/sizes
  • Drag'n Drop can now be used to copy OR move items inside the tree.
    (no key for copying, shift key for moving)
  • Fixed Drag'n Drop for Linux (GTK only!, Need help for the QT subsystem, see Source at the beginning)
  • Improved flickering issue under Windows
  • Fixed: set columns of a gridbox to 0 will let DD crash
  • "Save xml to file" can now be set dialog dependant.
    I recognized, that I sometimes want the dialog to be saved into a source code file, and sometimes not.
    If you select the "dialog" item now in the tree, you will see the options, to store the xml in an additional source code file.
    In the preferences window, you can set the default values (which will be used, when a new dialog is created)
  • Some bug fixes
Get it from -here-

Re: DialogDesign0R V1.45

Posted: Mon Mar 04, 2019 7:38 am
by forumuser
One small question regarding generated buttons:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<dialogs>
  <window flags="#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_ScreenCentered" text="Test" name="Test">
    <vbox spacing="10" expand="item:1">
      <hbox spacing="10" expand="item:1" width="400">
        <vbox width="120" align="" expand="no">
          <text text="Menu name:"/>
          <string text="Open in new Tag"/>
        </vbox>
        <vbox width="155" align="" expand="no">
          <text text="Hide on:"/>
          <string text="!{#isFolder}"/>
        </vbox> 
      </hbox>
      <hbox spacing="10" expand="item:1">
        <vbox width="120" align="" expand="no">
          <text text="Icon name / path:"/>
          <hbox spacing="10" width="120" expand="item:1">
            <string text="icon"/>
            <button text="..."/>
          </hbox> 
        </vbox>
        <vbox width="155" align="" expand="no">
          <text text="Disable on:"/>
          <string text="disable"/>
        </vbox> 
      </hbox> 
    </vbox> 
  </window>
</dialogs><!--DDesign0R Definition: PureBasic|0|0-->
When I use this on a Windows machine the string gadget to the left of the button
has the same height of the button and is therefore higher than the other 3 string gadgets.
Whatever I do, I can't reduce the height of the button below 25 px. I know this is the
minimum height on MacOS but it seems it's also the case with Windows. Can I redesign
this dialog so that the string gadget left to the button
has the same height as all the others but the button stays in that same position (even
if I can't make it smaller itself)?

Re: DialogDesign0R V1.45

Posted: Mon Mar 04, 2019 8:20 am
by TI-994A
forumuser wrote:...redesign this dialog so that the string gadget left to the button has the same height as all the others but the button stays in that same position (even if I can't make it smaller itself)?

Code: Select all

XML$ = "<dialogs>" +
       "<window flags='#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget |" + 
       "#PB_Window_SizeGadget | #PB_Window_ScreenCentered' text='Test' name='Test'>" +
       "<vbox spacing='10' expand='item:1'>" +
       "<hbox spacing='10' expand='item:1' width='400'>" +
       "<vbox width='120' align='' expand='no'>" +
       "<text text='Menu name:'/>" +
       "<string text='Open in new Tag'/>" +
       "</vbox>" +
       "<vbox width='155' align='' expand='no'>" +
       "<text text='Hide on:'/>" +
       "<string text='!{#isFolder}'/>" +
       "</vbox>" + 
       "</hbox>" +
       "<hbox spacing='10' expand='item:1'>" +
       "<vbox width='120' align='' expand='no'>" +
       "<text text='Icon name / path:'/>" +
       "<hbox spacing='10' width='120' expand='item:1'>" +
       "<string id='6' text='icon'/>" +
       "<button id='7' text='...'/>" +
       "</hbox>" + 
       "</vbox>" +
       "<vbox width='155' align='' expand='no'>" +
       "<text text='Disable on:'/>" +
       "<string text='disable'/>" +
       "</vbox>" + 
       "</hbox>" + 
       "</vbox>" + 
       "</window>" +
       "</dialogs>"

If CatchXML(0, @XML$, StringByteLength(XML$)) And XMLStatus(0) = #PB_XML_Success
  If CreateDialog(0) And OpenXMLDialog(0, 0, "test")
    
    ResizeGadget(6, #PB_Ignore, #PB_Ignore, #PB_Ignore, 20)
    ResizeGadget(7, #PB_Ignore, #PB_Ignore, #PB_Ignore, 20)
    
    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow     
  EndIf
EndIf

Re: DialogDesign0R V1.45

Posted: Mon Mar 04, 2019 10:57 am
by forumuser
@TI-994A

Thank you, I thought that this could be solved inside the xml but resizing works as well ofc^^

Re: DialogDesign0R V1.45

Posted: Mon Mar 04, 2019 12:28 pm
by TI-994A
forumuser wrote:...I thought that this could be solved inside the xml...

Code: Select all

XML$ = "<dialogs>" +
       "<window flags='#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget |" + 
       "#PB_Window_SizeGadget | #PB_Window_ScreenCentered' text='Test' name='Test'>" +
       "<vbox spacing='10' expand='item:1'>" +
       "<hbox spacing='10' expand='item:1' width='400'>" +
       "<vbox width='120' align='' expand='no'>" +
       "<text text='Menu name:'/>" +
       "<string text='Open in new Tag'/>" +
       "</vbox>" +
       "<vbox width='155' align='' expand='no'>" +
       "<text text='Hide on:'/>" +
       "<string text='!{#isFolder}'/>" +
       "</vbox>" + 
       "</hbox>" +
       "<hbox spacing='10' expand='item:1'>" +
       "<vbox width='120' align='' expand='no'>" +
       "<text text='Icon name / path:'/>" +
       "<string text='icon'/>" +
       "</vbox>" +       
       "<vbox expand='no'>" +
       "<text height='15' text=''/>" +
       "<button text='...'/>" +
       "</vbox>" +
       "<vbox width='155' align='' expand='no'>" +
       "<text text='Disable on:'/>" +
       "<string text='disable'/>" +
       "</vbox>" + 
       "</hbox>" + 
       "</vbox>" + 
       "</window>" +
       "</dialogs>"

If CatchXML(0, @XML$, StringByteLength(XML$)) And XMLStatus(0) = #PB_XML_Success
  If CreateDialog(0) And OpenXMLDialog(0, 0, "test")
    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow     
  EndIf
EndIf

Re: DialogDesign0R V1.46

Posted: Sun Mar 10, 2019 2:53 pm
by HeX0R
Update V1.46
  • Fixed disappearing imagebuttons
  • Removed trailing spaces in XML
  • Update Check now works asynchronous, to prevent DD from being blocked for a while, when online-URL is unreachable
Download as usual from here.

Re: DialogDesign0R V1.46

Posted: Sun Mar 10, 2019 7:54 pm
by forumuser
Thank you HexOR for fixing both of these bugs!

Re: DialogDesign0R V1.46

Posted: Sat May 04, 2019 10:35 am
by Joubarbe
Amazing tool, thanks! Now the PB form editor is really useless :)