It is currently Sat Feb 23, 2019 5:49 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 77 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Thu Mar 23, 2017 9:08 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 901
Location: UA
There will be no long description here (unlike what I'm often writing in such cases ^_^), because I've got tired after finishing today tool code itself. So just a short story about utility:

- It's editor to create GUIs for PB "Dialog" library
- It does that exactly by "mouse programming", the results may be exported to XML or .pb source file
- It also provides some limits to follow PB dialog library rules, thus making things easier for someone who didn't know that library
- It also has some annoying & stupid limitations for now :) Because that's just "some test version" made recently

Anyway, it should be stable and even really usable right now (at least to create some simplest UIs). See included readme for few details more.
Also, surely I've coded it for myself (and going to continue with that even if PB will get own dialogs designer), but don't see anything bad to post here. So don't be afraid to write feedback of any type :)

Here is download:


Something like a FAQ:

    Q: I'm adding gadget to a window and it shows "container is full", why?
    A: Dialogs are made slightly different way than regular UI. First you should add a "container" to a window, then go on with adding gadgets (and additional containers for them)

    Q: How about Linux version, how about freedom?..
    A: That's currently not possible as DD2 originally focused on WinAPI, maybe Wine can help

    Q: Why there is "Import" function disabled?
    A: This feature is needed mostly for commercial coders, thus I don't like idea to bring it for free. Maybe somehow later I'll exchange it "for a cup of coffee"

_________________
Dreamness

Like a copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Last edited by Lunasole on Tue Oct 24, 2017 7:45 pm, edited 8 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Thu Mar 23, 2017 11:54 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1647
Location: Germany (Saxony, Deutscheinsiedel)
Because of limited time I just did a short test - and I must say your project looks promising! :D
(such a designer makes GUI designing with exported XML dialog code easier and often allow a speed-up in developing...)

For the moment I have one suggestion: when exporting the designed dialog into PB code - it would be good, if you could add some basic code for loading/opening the dialog and a basic event loop (at least optional).

Thank you for your effort! 8)

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Fri Mar 24, 2017 1:00 am 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5750
Location: Berlin - Germany
@Lunasole
Can you add a hint, there is windows-executable only and no source!

_________________
PureBasic 5.70 | SpiderBasic 2.21 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Fri Mar 24, 2017 10:38 am 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 901
Location: UA
Andre wrote:
For the moment I have one suggestion: when exporting the designed dialog into PB code - it would be good, if you could add some basic code for loading/opening the dialog and a basic event loop (at least optional).


Thanks for reply.
That's nice idea. going to add some option in future version [after fixing some of those limits of course. for example currently all items are ordered automatically and names are always lower-case ^^]


ts-soft wrote:
@Lunasole
Can you add a hint, there is windows-executable only and no source!

What about windows-only, it is already added to "homepage"

_________________
Dreamness

Like a copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Fri Mar 24, 2017 3:59 pm 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4088
Location: Germany
Since I always wanted to do something with this library...

I just tested your program :wink:

I was not able to add a second gadget to a window.
'New' at the window is greyed out.

Than it is a bit confusing that there are closing crosses at the two inner windows, but they does nothing.

So at the moment I'm a bit lost. I can only create a window with one gadget inside.
(0.0.0.6)

Bernd


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Fri Mar 24, 2017 6:12 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10514
Location: Beyond the pale...
@Infratec : a dialog window (in the PB sense) is a single element container (it can only contain a single item such as a gadget or a container element such as a vBox). Instead of adding a gadget, add a container such as a vBox which can contain multiple entitites. You can then add gadgets to the vBox etc. Once you get used to the way the dialogs work then they are very useful.

@Lunasole, this is not bad at all. Far from complete, but a bloody great start! :) For me, the first feature request is to be able to move elements up and down the tree and into and out of containers etc. Second, could we select individual items for expanding as we can with : expand='item:2' for example. Very useful when combined with empty elements which you already support.

But, this is really good. I really like it.

Thanks for sharing.

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Fri Mar 24, 2017 7:52 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 901
Location: UA
infratec wrote:
So at the moment I'm a bit lost. I can only create a window with one gadget inside.
(0.0.0.6)


That's because that library follows something like web-design rules, unlike "classical" ways of building UI. I.e. you not just adding controls, you first should add container for them (like <div> in CSS). There are lot of containers with different properties, see for example PB helpfile for OpenXMLDialog() function.
Generally you should add window, add some container and only then start adding "gadgets" (as @srod said already)

> Than it is a bit confusing that there are closing crosses at the two inner windows, but they does nothing.
Those controls are "for future" (if there will be ability to hide 2 tool windows, etc), but well should be better to remove them for now :))


srod wrote:
@Lunasole, this is not bad at all. Far from complete, but a bloody great start! :) For me, the first feature request is to be able to move elements up and down the tree and into and out of containers etc. Second, could we select individual items for expanding as we can with : expand='item:2' for example. Very useful when combined with empty elements which you already support.

But, this is really good. I really like it.

Thanks for sharing.


Thanks you 2 for responce, both things you mentioned already planned, just not done yet because of their "relatively higher" complexity (or saying shorter, "это геморно)").
There also "min" "max" "value" properties are not supported yet (and maybe something else like this, don't remember exactly, as I didn't made any "true serious plan" for that ^^ well properties can be added quickly, will continue with that all when there will be some time&wish)

_________________
Dreamness

Like a copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Sun Mar 26, 2017 1:45 am 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 901
Location: UA
Hi again, just spend some time reviewing code and here is update. However still not done with those two important things (with "expand" and items reordering), that will be somehow later ^^


Quote:
0.0.0.7
- removed item names limits (they were always lowercase previously)
- now item names are filtered (no spec chars allowed for objects which have events support)
- added all specific properties missing before: option: "group"; scrollarea: "scrolling,innerheight,innerwidth,step"; scrollbar: "page", splitter: "firstmin,secondmin";
- added some another option to export code (with some init code, instead of embedded xml only)
- fixed stupid bug with tree (in some condition it was causing infinite loop or crash)
- removed those fake x-buttons from tool windows :)
- few internal improvements of property editing window
- improved tooltips of property editing window
- little-but-nice improvements of preview window

_________________
Dreamness

Like a copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Sun Mar 26, 2017 7:14 am 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4088
Location: Germany
Hi,

maybe it would be nice (for such beginners like me), if you can disable the gadgets if a window is selected.
Because it makes only sense to add a kind of a container.
This will avoid my first mistake: add a gadget to a window and then wondering why nothing else is possible.

Bernd


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Sun Mar 26, 2017 9:05 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 225
infratec wrote:
Hi,

maybe it would be nice (for such beginners like me), if you can disable the gadgets if a window is selected.
Because it makes only sense to add a kind of a container.
This will avoid my first mistake: add a gadget to a window and then wondering why nothing else is possible.

Bernd


I don't understand because the exe file is considere by a virus and deleted by m antivirus. Can we have the source pb Please ?


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Sun Mar 26, 2017 12:22 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 901
Location: UA
infratec wrote:
Hi,

maybe it would be nice (for such beginners like me), if you can disable the gadgets if a window is selected.
Because it makes only sense to add a kind of a container.


Sometimes you may need just a window with a single control (for example one with just multi-line text on it), for such cases should be allowed to add control to a window directly.
But well, that disabling of "New" menu maybe really confusing, I'll add some other way to show that container is full.

loulou2522 wrote:
the exe file is considere by a virus and deleted by m antivirus.

I can suggest you only to delete your "antivirus" as it is useless, if can't recognize file produced with PB compiler and packed with UPX ^_^

_________________
Dreamness

Like a copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Wed Mar 29, 2017 6:22 am 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 901
Location: UA
Updated to 0.0.0.8

Code:
- Interface Tree: added support of items move/sort (all this is done using "drag&drop")
- Interface Tree: added list icons also ^_^
- Interface Tree: improved menu
- fixed bug with event callbacks generation


Now I'm really glad to see how that drag'n'drop item sorting does, despite the fact that it cost me few hours last night [when finally decided to do it this way] and propably some of my precious long hair :)
Hope there wouldn't be any bug with this stuff

_________________
Dreamness

Like a copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Wed Mar 29, 2017 10:27 am 
Offline
Addict
Addict
User avatar

Joined: Mon Oct 26, 2015 2:55 am
Posts: 901
Location: UA
Quote:
Hope there wouldn't be any bug with this stuff


Hah, of course it was.
Just updated file again because of that
Code:
ElseIf #WM_LBUTTONUP


This piece of mistake was causing drag'drop not work on WinXP (while worked well on Win7). Should be OK now, further going to add "item:" for expand, also maybe some other ideas to make this stuff close to "useful" and forget about it for a while.

_________________
Dreamness

Like a copyleft notify: all the source code created by me and posted on Purebasic official forums is free to use and modification in all possible (and several impossible) ways for anyone, without asking my permission


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Thu Mar 30, 2017 9:14 am 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4387
Location: Lyon - France
Very nice and simple 8)
Just a question, i can't resize the the windows with the mouse, is it the normal behavior ? :|

_________________
ImageThe happiness is a road...
Not a destination


Top
 Profile  
Reply with quote  
 Post subject: Re: DialogDesigner2 — a tool to compose XML dialogs
PostPosted: Thu Mar 30, 2017 9:18 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10514
Location: Beyond the pale...
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.

The thing is though such an implementation makes it difficult to move a control into an empty container. If you drop the control atop an empty container then of course it does not place the control into the container, but instead (and inevitably) just reorders things. How about adding a couple of 'left' and 'right' buttons so that, if we click the right button, for example, the currently selected entity is placed into the preceding container? That would be sweet! :)

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!

A great utility though, one which I would love to use. Just need the save and load from file and I'm good to go!

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 77 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye