Page 2 of 6
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Thu Mar 30, 2017 8:10 pm
by Lunasole
Kwai chang caine wrote:Very nice and simple
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
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Fri Mar 31, 2017 8:35 am
by srod
I'll give that a whirl over the weekend.
When complete this will be a fantastic tool.
Thanks Lunsaole.
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Fri Mar 31, 2017 2:01 pm
by loulou2522
Thanks to Lunasole, this tool lake in PureBasic
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Fri Mar 31, 2017 3:55 pm
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 :)
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Tue Apr 04, 2017 3:09 pm
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 ^_^
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Thu Apr 06, 2017 5:42 pm
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).
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Fri Apr 07, 2017 12:28 pm
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
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Fri Apr 07, 2017 7:15 pm
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.
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Sun Apr 09, 2017 10:48 am
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
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Wed Apr 26, 2017 3:07 pm
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)
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Tue May 09, 2017 7:02 pm
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
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Tue May 09, 2017 8:11 pm
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
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Sun May 14, 2017 12:26 pm
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. )
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Sun May 14, 2017 12:57 pm
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.
Re: DialogDesigner2 — a tool to compose XML dialogs
Posted: Sun May 14, 2017 1:35 pm
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)