DialogDesign0R V1.86

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
Joubarbe
Enthusiast
Enthusiast
Posts: 713
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: DialogDesign0R V1.85

Post by Joubarbe »

Probably asked a hundred times, but the menu does not appear when I open the dialog in my program?

Image

(this "file" menu only appears in DialogDesign0R)
User avatar
HeX0R
Addict
Addict
Posts: 1205
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.85

Post by HeX0R »

Joubarbe wrote: Sat Apr 12, 2025 2:23 pm Probably asked a hundred times, but the menu does not appear when I open the dialog in my program?
Maybe not a hundred times, but ten times I guess :mrgreen:
The dialogs of PB doesn't support menus, statusbar and Toolbars.
I thought a dialog should contain all that belongs to a GUI, but it seems I had this opinion exclusive...

You need this here additionally:
https://www.purebasic.fr/english/viewtopic.php?p=561576
Joubarbe
Enthusiast
Enthusiast
Posts: 713
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: DialogDesign0R V1.85

Post by Joubarbe »

Ok thank you. You should say that somewhere in your help file (and have it accessible with F1). I actually read it! :wink:

@Fred, please implement menus and status bars in Dialog! :D

I'm going to do the old-style way for now...
User avatar
HeX0R
Addict
Addict
Posts: 1205
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.85

Post by HeX0R »

Joubarbe wrote: Sat Apr 12, 2025 3:25 pm Ok thank you. You should say that somewhere in your help file (and have it accessible with F1). I actually read it! :wink:
You really read it?
Image
Joubarbe
Enthusiast
Enthusiast
Posts: 713
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: DialogDesign0R V1.85

Post by Joubarbe »

Be fair here... This should be properly documented, not only a little hyperlink in an About section. I missed it, and it's easy to miss.
Joubarbe
Enthusiast
Enthusiast
Posts: 713
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: DialogDesign0R V1.85

Post by Joubarbe »

I've been using this for a few weeks, and this is really great, thanks!

Little request: would it be possible to update the event list of the EditorGadget()? It would be good to have #PB_EventType_Change, as stated in the docs, in order to avoid event spamming.
User avatar
HeX0R
Addict
Addict
Posts: 1205
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.85

Post by HeX0R »

The events the windows support are not necessarily the same dialogs support.
I just tried the latest beta with an onchange event and the result was:
'onchange' is not supported for the following gadget: editor
Joubarbe
Enthusiast
Enthusiast
Posts: 713
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: DialogDesign0R V1.85

Post by Joubarbe »

Hmm, ok. @Fred: any chance of adding that? :D
Fred
Administrator
Administrator
Posts: 18252
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: DialogDesign0R V1.85

Post by Fred »

Dialog event should match the regular events, if not feel free to fill a bug report
Mesa
Enthusiast
Enthusiast
Posts: 433
Joined: Fri Feb 24, 2012 10:19 am

Re: DialogDesign0R V1.86

Post by Mesa »

Mini bugs:

- Change Tool.ico to dd.ico in DDesign0r_v02.pb
- The "STEP" value is missing for the ScrollAreaGadget
- The AddOn_SDK.pbi file has a "CompilerIf #PB_Compiler_IsMainFile" section, but nothing appends if i launch this file outside the project

As an exercise, I'd like to add the "add tooltip" feature for gadgets.
I was thinking of adding a 'container_gadgets' below the 'container_scrollarea', which itself will contain a framegadget and a stringgadget.
Do you think this is feasible with the add-on system?

M.
User avatar
HeX0R
Addict
Addict
Posts: 1205
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.86

Post by HeX0R »

I thought anyone uses dd.pbp only, therefore I didn't change the icon of DDesign0r_v02.pb
Step is missing, correct, I'll add it in some future.
I can't recreate your third point, when I start it (remove it from project first), a dialog is opened with a statusbar and menus?

Regarding tooltips:
In fact I have a multilanguage add on, which adds tooltips also.
I've added a line "Tooltip:" below the "Text" item.
But your idea should work also.

I didn't release my add-on because it had some bugs and now I didn't touch it since years.

You are going to add tooltips into the xml?
My solution created an extra file (like the .lan files of dd, which can be used with this code then)
Joubarbe
Enthusiast
Enthusiast
Posts: 713
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: DialogDesign0R V1.86

Post by Joubarbe »

The new icon introduced in 1.86 should be white instead of transparent. 8)
Joubarbe
Enthusiast
Enthusiast
Posts: 713
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: DialogDesign0R V1.86

Post by Joubarbe »

Bug report: when removing an event procedure, it simply doesn't remove it, because it doesn't accept an empty space as a valid procedure name. You can add a space, then the parser will see that it's not a valid call, but it would be more intuitive to just remove the procedure name from the event list.
User avatar
HeX0R
Addict
Addict
Posts: 1205
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.86

Post by HeX0R »

When you remove the procedure name (completely!), it will be gone.
It might confuse you that it seems to be still visible in the combo box, just click once on another node and back to your existing one and it will be vanished.

I'll change that behaviour in the next release, you are right, this feels odd.
btw.: What do you mean with icon should be white?
Joubarbe
Enthusiast
Enthusiast
Posts: 713
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: DialogDesign0R V1.86

Post by Joubarbe »

Image
Image

I don't suppose the first image is the effect you want. The second one, with white background looks much better. And that's because of transparency.
Post Reply