DialogDesigner2 — a tool to compose XML dialogs

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

Kwai chang caine wrote:Very nice and simple 8)
Just a question, i can't resize the the windows with the mouse, is it the normal behavior ? :|
No, that's limitation of how currently preview window pos is locked ^^ I'll improve that later, thanks

srod wrote:Nice. The drag/drop works well here, though the canvas is not refreshed after a drag until you select the dialog and then the window.
One more simplest bug, fixed just now
srod wrote: One last thing, any chance of adding the max/min buttons to your main Window as the Window is initially sized larger than my desktop!
Added them and decreased initial size to 800x600 :) 1024x left from the moment when it was "just another quickly opened test window".
Generally all such things planned to be in config file where can be edited, but that's somehow later among with save/load and some others (currently I didn't ever used that tool for any UI on practice).

What about movement (and code with slightly mad logic behind it ^^).. I've improved it after reviewing that code, new rules should be much better (however I don't have them in text and it is hard to describe all of them right now, so just try youself :) )

Uploaded version with all those changes
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by srod »

I'll give that a whirl over the weekend.

When complete this will be a fantastic tool.

Thanks Lunsaole.
I may look like a mule, but I'm not a complete ass.
loulou2522
Enthusiast
Enthusiast
Posts: 495
Joined: Tue Oct 14, 2014 12:09 pm

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by loulou2522 »

Thanks to Lunasole, this tool lake in PureBasic
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

One more quick update, mainly about UI changes.

Now there are 4 important things to add (after which tool probably will be "fully featured"), but I'm leaving that for some time in future cause need to do something in that "freelance" to not get truly ascetic :)
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

Yet another quick fix related to drag&drop (fixed inability to reorder items in SPLITTER for example, and similar things).
Also fixed redraw of tree-view, and selection issue occured sometimes after drag&drop probably because of confict with PB events processing.
(at least I hope it all fixed and not caused some new issues :) the code behind all that drag'n'drop is definitely "unreasonably complicated", should be much simpler to move items using "up/down", etc. but anyway I like that mouse movement more)

Also finally I've made some small UI with that tool and used it on practice ^_^
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

Well after "doing something in freelance" I had much more time & wish to play with this stuff, so here is version 1.0 with some noticeable changes:

Code: Select all

  - Interface Tree: added copy & paste functions
  - Interface Tree: added keyboard shortcut (delete)
  - Interface Tree: improved logic of drag'n'drop reorder ^_^
  - Property editor: added "text" property for a frame object
  - Property editor: added "item:" value support for "expand/rowexpand/colexpand" properties
  - Property editor: improved properties sort order
  - Property editor: now properties have correct tab order
  - Main window: improved tool windows positioning on resize
  - Main window: dialog preview now position changed
  - Output: changed code generation to bypass 8192-chars string literal limit
  - Output: several other changes
  - ... and several more things adjusted/optimized internally
See the link in first post & write if any bugs, etc found (I can't test it all nicely, until I will not use it next time to do make some real UI).
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
hjf
User
User
Posts: 21
Joined: Sun Nov 23, 2008 3:30 pm
Location: Germany

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by hjf »

Hello Lunasole,

very very nice!
In the Proporties it is neccesary to have negative values for rowspace and colspace, but the
minus will be blocked.
The negative values are good to suppress spaces between gadgets of a minimum. Please make the input of
negative values general posible.
If you have a highres monitor and the systemscaling is 150 or 200% (Win7...10), the texts in the Proporties
are not readable. The Gadgets are not high enough.
With the load/save functions the tool will be really usable to help creating dialogs in a short time.

regards
hjf
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

@hjf
Thanks for your reply. Your idea with negative values looks good and I'll add it to next version (btw didn't even suspected they can have effect ^_^).

Also maybe will add something to make UI fonts DPI-aware.
Save/load currently is not planned.
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

Just had few minutes for +1 small update
1.0.0.1
- UI: program windows are now DPI-aware (dialog preview is not)
- Property editor: added support for negative integer values
- improved output code + added cleanup
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

One more update/fix after using this stuff on practice recently ^^
1.0.0.2 - UI of wooden crates
- Interface Tree: now new item is added to the end of childs list (which is not so stupid as add it was to beginning ^^)
- Interface Tree: changed behavior caused non-empty container item become expanded on items drag'n'drop reordering
- Output: fixed issue with encoding on code export (UTF8 BOM was missing from result file)
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

Hi again.

Recently I had many things to add to this tool (thanks for all feedbacks with ideas, etc), unfortunatelly had no much time to play with it (was playing that epic Starcraft II instead :) and doing some other stuff with code)

For now there is only small update to 1.0.0.3 with UI fix
- UI: fixed issue with font size on DPI scaling (thanks Cyllceaux for pointing it)
Anyway somewhere in nearest future I'm going to add few nice new things
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
Kiffi
Addict
Addict
Posts: 1353
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Kiffi »

Lunasole wrote:unfortunatelly had no much time to play with it
release the source-code and then we will do it for you. ;-)

Greetings ... Peter
Hygge
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

Kiffi wrote: release the source-code and then we will do it for you. ;-)

Greetings ... Peter
:) Nice offer, but having no such wish while continuing with that stuff myself


Here is larger update to 1.0.0.4 btw:
- Output: moved dialog variables to events group (that's some more usable with functions like DialogGadget, used in callbacks)
- Output: removed many of predefined property values (well, that was the simplest way to decrease amount of trash in resulting XML ^_^)
- Output: added tab indentations for events
- Output: added extended event handling
- Interface Tree: added "Cut" action ("in less than two years")
- Interface Tree: added keyboard shortcuts for most actions
It's as always not much tested after was done, so there are chances something will work through ass ^^
Anyway I like what utility can do now and generally right now don't have many ideas for some bigger changes.
( there were ideas of other output extensions (like adding things which dialog library itself not supports, but they can be added through code generation), but currently it doesn't looks nice in "efforts/effect" ratio. )
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by ChrisR »

It seems really interesting
But I must miss something and I do not understand how to use.
As soon as I add a gadget to a window or a container, it said then it is full and i don't know how to add other gadgets.
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: DialogDesigner2 — a tool to compose XML dialogs

Post by Lunasole »

ChrisR wrote:It seems really interesting
But I must miss something and I do not understand how to use.
As soon as I add a gadget to a window or a container, it said then it is full and i don't know how to add other gadgets.
Well that's typical problem for the beginning :)
You should not add gadget to a window directly in this dialog library, first add a container (however window is also a container, but it can contain only 1 item).

(added some FAQ to a first post)
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
Post Reply