DialogDesign0R V1.84

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

Re: DialogDesign0R V1.72

Post by HeX0R »

I'm not sure if that RowSpan = 40 thing is really a bug, because to be true, you are using the gridbox not as it is meant to be used, or maybe you were just tinkering with the dialog lib, dunno.
I quickly put a dialog together (found now really a bug in my DD while doing this, look at the non-unique string names), where that RowSpan=40 makes really sense, and here you can see, that it will still change height, when changing that RowSpan value and adding/removing string gadgets.
Attention, this dialog is quite high!

Code: Select all

<dialogs>
  <window flags='#PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_ScreenCentered' minwidth='800' minheight='600' name='window_1'>
    <multibox>
      <container flags='#PB_Container_BorderLess'>
        <gridbox colexpand='yes' rowexpand='yes' columns='2'>
          <vbox spacing='1' colspan='2'>
            <hbox spacing='1'>
              <string flags='#PB_String_Numeric' name='string_1Copy_17Copy_18Copy_18Copy_20'/>
              <string flags='#PB_String_Numeric' name='string_2Copy_18Copy_19Copy_19Copy_21'/>
              <button text='Start' name='button_1Copy_19Copy_20Copy_20Copy_22'/>
            </hbox>
          </vbox>
          <vbox spacing='0' rowspan='41'>
            <hbox spacing='0'>
              <listicon text='First' name='listicon_1Copy_7Copy_14Copy_15Copy_23Copy_25'/>
            </hbox>
          </vbox>
          <string name='string_4'/>
          <string name='string_5'/>
          <string name='string_6'/>
          <string name='string_7'/>
          <string name='string_8'/>
          <string name='string_9'/>
          <string name='string_10'/>
          <string name='string_11'/>
          <string name='string_12'/>
          <string name='string_13'/>
          <string name='string_5'/>
          <string name='string_6'/>
          <string name='string_7'/>
          <string name='string_8'/>
          <string name='string_9'/>
          <string name='string_11'/>
          <string name='string_12'/>
          <string name='string_13'/>
          <string name='string_14'/>
          <string name='string_10'/>
          <string name='string_15'/>
          <string name='string_16'/>
          <string name='string_17'/>
          <string name='string_18'/>
          <string name='string_19'/>
          <string name='string_20'/>
          <string name='string_21'/>
          <string name='string_22'/>
          <string name='string_23'/>
          <string name='string_24'/>
          <string name='string_25'/>
          <string name='string_26'/>
          <string name='string_27'/>
          <string name='string_28'/>
          <string name='string_29'/>
          <string name='string_30'/>
          <string name='string_31'/>
          <string name='string_32'/>
          <string name='string_33'/>
          <string name='string_34'/>
          <string name='string_35'/>
        </gridbox>
      </container>
      <container flags='#PB_Container_BorderLess' invisible='yes' disabled='yes'>
        <gridbox colexpand='yes' columns='1' rowexpand='yes'>
          <option name='option_1Copy_16'/>
        </gridbox>
      </container>
    </multibox>
  </window>
</dialogs>
User avatar
tj1010
Enthusiast
Enthusiast
Posts: 621
Joined: Mon Feb 25, 2013 5:51 pm
Location: US or Estonia
Contact:

Re: DialogDesign0R V1.72

Post by tj1010 »

The 40 thing is all about there being some hidden row limit for a window that you can't set or see from PB without memory or API stuff.

It seems that no matter window size if you do over 39 rowspan your UI starts shrinking in increments. This is important to know, especially if you want to fill the window, but isn't documented.

Basically, every window has 39(maximum) rows, and however many configured columns to work with regardless of min-dimensions, resize, large resolution etc..
The truth hurts.
User avatar
HeX0R
Addict
Addict
Posts: 980
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.79

Post by HeX0R »

V1.79 is here!
Only the source is up to date for now, I'll wait for possible bug reports and might release the bin files then in a V1.80
  • Fixed (or better "circumvented"): Crash, when rowspan >68
  • Fixed: same temp. IDs/Names could have been created twice
  • Added: Option to let DD create IDs instead of names for new Gadgets
  • Added: x and y position of dialogs are stored in the xml now (unused by PB, but useful for DD or your own apps)
  • Added: Option to let DD only use half of your monitor size (might be useful for those poor guys with only one monitor)
  • Added: Theme creator
  • Changed: Template Editor is now part of DD, please remove anything inside the SaveTemplates folder, besides all json files and the bak file. Anything else is no longer used
User avatar
HeX0R
Addict
Addict
Posts: 980
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.80

Post by HeX0R »

I had that finished since quite a while, but never seem to have uploaded it (D'OH).

New in V1.80
  • Added: DD will open a dialog which is part of the currently opened project automatically (when DD is an IDE tool)
  • Changed: Option “use IDs instead of names” moved to the dialog preferences.
  • Fixed: Some small problems
User avatar
HeX0R
Addict
Addict
Posts: 980
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.81

Post by HeX0R »

->V1.81<-
pjsmith67
User
User
Posts: 21
Joined: Thu Apr 26, 2018 3:09 pm

Re: DialogDesign0R V1.81

Post by pjsmith67 »

Really like this tool. It is my goto GUI designer.

Phil
User avatar
HeX0R
Addict
Addict
Posts: 980
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.81

Post by HeX0R »

Here is a first trial of a 10 Minute Tutorial, to help people, who just don't seem to understand the principle behind dialogs.
https://www.youtube.com/watch?v=hKjfPg6aBtw

Somehow my recording software didn't accept my headset microphone, or let's say it accepted it, but whatever I tried it was extremely quiet.
But before I buy one of those streaming microphones (being then on the same level of all those streaming morons) only to be able to do a quick tutorial, I decided to let it run through Veed.io and add some remarks and some strange music.

It got a little unsharp also, but well, for a first trial?
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: DialogDesign0R V1.81

Post by ChrisR »

Thank you very much for your video HeXOR, you were fast :)
Even with the strange music, it is really good and quite clear especially with the drawings in the window to reproduce.
It helps to understand how the Dialogs library works with the virtual boxes: vbBox, hBox... and how to reason differently with them. It's quite strange, unusual, to have to use them everywhere.

Now I have to try DialogDesign0R by myself, to better understand the result with Expand item or how to use gadget fix length, height or other attributes like Bind Event (Runtime Procedure!).
I will probably continue to use my Designer, my baby of course but your video should be a good help for lost guys like me to better understand Dialogs.
User avatar
idle
Always Here
Always Here
Posts: 5042
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: DialogDesign0R V1.81

Post by idle »

It's a great tool
nqh
New User
New User
Posts: 1
Joined: Fri Nov 18, 2022 12:39 pm

Re: DialogDesign0R V1.81

Post by nqh »

Hi Hexor,

I am newbie. Sorry for my bad english.

I need to add 2 languages to the forms (Main GUI, Setting GUI).

Can you give me an example.
User avatar
HeX0R
Addict
Addict
Posts: 980
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.81

Post by HeX0R »

DD doesn't support multilanguage dialog creation, yet.
Until now, you have to do a little work for yourself with that include here:
viewtopic.php?f=12&t=77529

Since I'm now thinking about it, I could probably offer a "half"-multi-language support at least.
DD could at least offer the possibility to create that JSON file for you (for the current language of all your texts).
Then you would have one language ready, and "just" have to copy it and translate all texts to the additional language you need.

Well... yes, I like that idea, let's see if that is easily integratable.
But don't wait for it, I have some other tasks to do first.
Maybe end of next week I can come up with a V1.82
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: DialogDesign0R V1.81

Post by ChrisR »

ChrisR wrote: Thu Nov 17, 2022 11:43 am Now I have to try DialogDesign0R by myself,...
Now that I better understand how Dialogs work with virtual boxes.
I reproduced quite easily in DialogDesignOR the interface on your video. It worked fine, nice work :)

For your todo, in addition to saving the xml, it would be nice to be able to generate a PB basic file with the xml integrated, functional and ready to use as a basic template.
A tool bar button to Show XML in the Editor (F7) would probably be good to see easily the xml result, according to the design, the properties. I failed to use F7 or F8.

Otherwise, I had a problem using this simple xml:

Code: Select all

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

<dialogs>
  <window name="window_1" flags="#PB_Window_SystemMenu | #PB_Window_SizeGadget" text="Title" xpos="702" ypos="202">
    <hbox>
      <panel name="panel_1">
        <tab text="First Tab">
          <vbox expand="item:2">
            <hbox height="50">
              <button name="button_1" text="button_1" id="#Button1"/>
              <checkbox name="checkbox_1" text="checkbox_1" id="#checkbox1"/>
              <button name="button_2" text="button_2" id="#Button2"/>
            </hbox>
            <editor name="editor_1" text="editor" height="150" id="#editor1"/>
          </vbox>
        </tab>
        <tab text="Second Tab"/>
      </panel>
    </hbox>
  </window>
</dialogs><!--DDesign0R Definition: PureBasic|0|0|0||-|0-->
As the 1st hBox is not required, I copied the Panel then I deleted the 1st hBox and in the Window, paste the previously copied panel. It did not like!
User avatar
HeX0R
Addict
Addict
Posts: 980
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.81

Post by HeX0R »

ChrisR wrote: Fri Nov 18, 2022 2:58 pm Now that I better understand how Dialogs work with virtual boxes.
I reproduced quite easily in DialogDesignOR the interface on your video. It worked fine, nice work :)
For your todo, in addition to saving the xml, it would be nice to be able to generate a PB basic file with the xml integrated, functional and ready to use as a basic template.
That's in DD, since a long time already, look at the preferences of a dialog
Which means:
Select the dialog item in the tree, then look on the right side.
You'll see:
- Save Names/IDs to additional file
- Store Dialog also in this file
- Save Template selection
That will output a ready to use *.pb file additionally to the xml.

In the main preferences of DD you'll set the default settings for new dialogs

ChrisR wrote: Fri Nov 18, 2022 2:58 pm A tool bar button to Show XML in the Editor (F7) would probably be good to see easily the xml result, according to the design, the properties. I failed to use F7 or F8.
That is also ready to be used.
But it is part of the "Advanced Tool", which will be opened with F12

there is a help file integrated btw. :mrgreen:
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: DialogDesign0R V1.81

Post by ChrisR »

HeX0R wrote: Fri Nov 18, 2022 10:00 pm there is a help file integrated btw.
hmm, I should have read it before making feature requests, already there.
But I didn't do it, like 90% of the guys. I didn't go through the 10 pages of the topic either :wink:
My feedbacks are in no way negative, it's not me otherwise, they are constructive even if I mess up.

I had seen the option "Save Names/IDs to additional file", but I didn't know what it meant. Without seeing the link with saving in a ready to use *.pb file.
Good that the option is already there since a long time :)

For "Show XML in the Editor (F7)" as part of the "Advanced Tool (F12)", I had seen it and used.
My request was to have a direct access, via a toolbar button, to access it directly without going through "Advanced Tool". As written in the help file, this might be the most interesting functionality. Also F7, F8, F9 shortcuts does not work here unless I use it wrong.

Did you reproduce the copy/paste bug, written on my previous post ?

Can you enlighten me on how to use identifier name (eg: #DD_GADGET_button_1 = "button 1") in the event loop vs EventGadet(), no worries when using IDs. I'm still learning.
hoangdiemtinh
User
User
Posts: 29
Joined: Wed Nov 16, 2022 1:51 pm

Re: DialogDesign0R V1.81

Post by hoangdiemtinh »

@Hex0r,
I translated to Vietnamese Language. Please add into the next your release.
.
File Vietnamese Language for Dialog Design0R: http://bit.ly/3AxaVJB
SHA1: 396CB025066631019805BFAAB35E5F8257F27F28
.
Demo:
Image
Post Reply