DialogDesign0R V1.84

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
HeX0R
Addict
Addict
Posts: 979
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.32

Post 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.
User avatar
Ajm
Enthusiast
Enthusiast
Posts: 234
Joined: Fri Apr 25, 2003 9:27 pm
Location: Kent, UK

Re: DialogDesign0R V1.32

Post 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.
Regards

Andy

Image
Registered PB & PureVision User
User avatar
HeX0R
Addict
Addict
Posts: 979
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.32

Post by HeX0R »

O. K. I'll look into it this evening
forumuser
User
User
Posts: 98
Joined: Wed Apr 18, 2018 8:24 am

Re: DialogDesign0R V1.32

Post 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)
User avatar
HeX0R
Addict
Addict
Posts: 979
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.32

Post 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:
forumuser
User
User
Posts: 98
Joined: Wed Apr 18, 2018 8:24 am

Re: DialogDesign0R V1.32

Post by forumuser »

Works again, thanks for the quick fix!
User avatar
Ajm
Enthusiast
Enthusiast
Posts: 234
Joined: Fri Apr 25, 2003 9:27 pm
Location: Kent, UK

Re: DialogDesign0R V1.32

Post by Ajm »

Working here too. Thanks.

Regards

Andy
Regards

Andy

Image
Registered PB & PureVision User
User avatar
HeX0R
Addict
Addict
Posts: 979
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.45

Post 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-
forumuser
User
User
Posts: 98
Joined: Wed Apr 18, 2018 8:24 am

Re: DialogDesign0R V1.45

Post 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)?
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: DialogDesign0R V1.45

Post 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
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
forumuser
User
User
Posts: 98
Joined: Wed Apr 18, 2018 8:24 am

Re: DialogDesign0R V1.45

Post by forumuser »

@TI-994A

Thank you, I thought that this could be solved inside the xml but resizing works as well ofc^^
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: DialogDesign0R V1.45

Post 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
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
HeX0R
Addict
Addict
Posts: 979
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.46

Post 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.
forumuser
User
User
Posts: 98
Joined: Wed Apr 18, 2018 8:24 am

Re: DialogDesign0R V1.46

Post by forumuser »

Thank you HexOR for fixing both of these bugs!
Joubarbe
Enthusiast
Enthusiast
Posts: 555
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: DialogDesign0R V1.46

Post by Joubarbe »

Amazing tool, thanks! Now the PB form editor is really useless :)
Post Reply