DialogDesign0R V1.88

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

Re: DialogDesign0R V1.86

Post by HeX0R »

In fact only the small icons had some transparent pixels, wondering why your OS decided to use one of the <= 48x48 ones for the desktop?
Are you using something like a 800x600 resolution?
Mesa
Enthusiast
Enthusiast
Posts: 478
Joined: Fri Feb 24, 2012 10:19 am

Re: DialogDesign0R V1.86

Post by Mesa »

Since pb621, #PB_Menu_ModernLook et #PB_Menu_SysTrayLook had been deleted.

So, i add line 740 of DD_AddStuff.pbi:

Code: Select all

CompilerIf #PB_Compiler_Version > 620
		  Data.l #PB_StatusBar_Raised, #PB_StatusBar_BorderLess, #PB_StatusBar_Center, #PB_StatusBar_Right
		CompilerElse
		  Data.l #PB_Menu_ModernLook, #PB_StatusBar_Raised, #PB_StatusBar_BorderLess, #PB_StatusBar_Center, #PB_StatusBar_Right
		CompilerEndIf
And replace line 322 of DD_Data.pbi by

Code: Select all

CompilerIf #PB_Compiler_Version > 620:Data.s "":CompilerElse:Data.s "#PB_Menu_ModernLook", "":CompilerEndIf
And what about #PB_Frame_Container for FrameGadget(). It should work (since pb612), is it needed ? because it seems to work without !

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

Re: DialogDesign0R V1.86

Post by HeX0R »

Thanks, but that had been already fixed in 1.87 (you can also look at the latest AddStuff here).
(but it seems I checked for a wrong compiler version, you are right, it was removed in 6.21 already)

I only wait until PB6.30 is there before I release it.

Frames in Dialogs are anyway containers, that flag doesn't make sense from my point of view.
Mesa
Enthusiast
Enthusiast
Posts: 478
Joined: Fri Feb 24, 2012 10:19 am

Re: DialogDesign0R V1.87

Post by Mesa »

PB630 adds several options on gadgets:
#PB_String_PlaceHolder for StringGadget().
#PB_ListIcon_NoHeaders for ListIconGadget().
#PB_Explorer_NoHeaders for ExplorerListGadget().

and

'onresize' event for all (?) Dialog gadgets

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

Re: DialogDesign0R V1.87

Post by HeX0R »

Damn, I seem to have missed them, thanks, I'll add them into V1.88

[Edit]
I was wondering when onresize might be useful for a dialog gadget and tested all of them.
Only those three seem to support this event:
canvas
container
panel
MGD
User
User
Posts: 19
Joined: Wed Jul 27, 2022 8:31 pm

Re: DialogDesign0R V1.87

Post by MGD »

Just want to say, after a relatively frustrating session with the built-in IDE form designer, I started using DD today... WOW! This is really a pleasure to work with. We'll see how integration back into the project goes, but I'm really impressed so far.

I was also going to report the missing

Code: Select all

#PB_ListIcon_NoHeaders
option, but looks like that's already on the list for the next version.

Great work!
User avatar
HeX0R
Addict
Addict
Posts: 1254
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: DialogDesign0R V1.88

Post by HeX0R »

Thanks for the kind words!
Just remember that statusbars, menus and toolbars are not natively supported in PB.
You can add all of them in DD, but you need a "hack" to show them in you app.

I've uploaded the new sources now, including the missing new flags and an updated french translation from Mesa (thanks again!).

Binaries are still V1.87
Mesa
Enthusiast
Enthusiast
Posts: 478
Joined: Fri Feb 24, 2012 10:19 am

Re: DialogDesign0R V1.87

Post by Mesa »

:D
Great !

There is a little bug in DDesign0r_v02.pb line 149, that should be "Macro M_630_OnResize"

I've forgotten that there is a new feature menus in pb630:
#PB_Menu_NativeImageSize for CreateImageMenu() and CreatePopupImageMenu() but it is Windows only.


If you like you can modifie these flags as a "M_620_NewFlags()", in DD_Data.pbi:
#PB_Editor_TabNavigation appears at pb 620

and the same in DD_Data.pbi with #PB_Web_Edge,
UseDialogWebGadget()
UseDialogWebViewGadget()
UseDialogOpenGLGadget()
UseDialogScintillaGadget() appear at pb 610


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

Re: DialogDesign0R V1.88

Post by HeX0R »

good catch!
I've tested it now down up to PB5.60 and added some more PB version fixes.
PB5.40 made some more trouble, therefore I decided to change min. PB version for compiling DD to 5.60

I've added some more compiler directives, but ignored the #PB_Menu_NativeImageSize for now, since menus are something "special" anyway.
Version is still 1.88 I was too lazy to increase it, but sources had been updated
Mesa
Enthusiast
Enthusiast
Posts: 478
Joined: Fri Feb 24, 2012 10:19 am

Re: DialogDesign0R V1.87

Post by Mesa »

Sorry, I hope it's the last one :oops:

A bug to display the toolbutton tooltips.
To correct it, juste open DD_RuntimeProcedures.pbi and add line 912 (just before the 'Default' line) these lines

Code: Select all

Case "tooltip"
SetGadgetText(DID("tooltip"), b$)
And WebView appears in pb610.

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

Re: DialogDesign0R V1.87

Post by HeX0R »

toolbutton tooltips are handled from line 913 on, that doesn't work for you?

Code: Select all

								If FindMapElement(DID(), a$) ;<- to make sure this is no unsupported attribute
									If a$ = "text" And Name = "text"
										b$ = ReplaceString(b$, #CRLF$, "\n")
									EndIf
									SetGadgetText(DID(a$), b$)
								EndIf
And it doesn't matter when WebView had been introduced, unknwon Gadgets are ignored in Dialogs
Mesa
Enthusiast
Enthusiast
Posts: 478
Joined: Fri Feb 24, 2012 10:19 am

Re: DialogDesign0R V1.87

Post by Mesa »

You're right, it works now whereas it wouldn't work yesterday. So it's OK now.

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

Re: DialogDesign0R V1.87

Post by HeX0R »

Mesa wrote: Wed Feb 18, 2026 4:18 pm You're right, it works now whereas it wouldn't work yesterday. So it's OK now.

M.
That part of the code is untouched since several months.
If it really didn't work for you two days ago, you maybe really found something.
But the existing construct equals more or less your fix and I have no idea when that might fail
Post Reply