Page 11 of 12

Re: SweetyVD (Visual Designer)

Posted: Sat Feb 08, 2020 2:47 am
by ChrisR
Image

Re: SweetyVD (Visual Designer)

Posted: Sat Feb 08, 2020 3:50 am
by FlatEarth
Wow bravo, that's great, I'm waiting to test it ... :D :)

Re: SweetyVD (Visual Designer)

Posted: Sat Feb 08, 2020 11:25 am
by srod
Very impressive.

Does that allow you to edit a container within another container say?

Re: SweetyVD (Visual Designer)

Posted: Sat Feb 08, 2020 2:34 pm
by ChrisR
Thank you, Thank you :)
I'm glad I found the way 8)

Until the day before yesterday, I didn't really see a simple solution to containers.
But sometimes the night is a good time to give good advice.
srod wrote:Very impressive.

Does that allow you to edit a container within another container say?
On the principle Yes, multi-level should be possible
But there's some work to be done to manage the hierarchy
With the necessary steps when I go up or down a level
And with a well-managed parent map to easily get the X-Offset and Y-Offset of the internal mouse position compared to WindowMouseX(Y).
I mean:

Code: Select all

Case #PB_EventType_LeftButtonDown
  CurrentItemXOffset = GadgetX(\ParentGadget) + GadgetX(EventGadget()) + GetGadgetAttribute(EventGadget(), #PB_Canvas_MouseX)
  CurrentItemYOffset = GadgetY(\ParentGadget) + GadgetY(EventGadget()) + GetGadgetAttribute(EventGadget(), #PB_Canvas_MouseY)
  Select GadgetType(\ParentGadget)
  Case #PB_GadgetType_Panel
    CurrentItemYOffset + GetGadgetAttribute(\ParentGadget,#PB_Panel_TabHeight)
  Case #PB_GadgetType_ScrollArea
    CurrentItemXOffset - GetGadgetAttribute(\ParentGadget, #PB_ScrollArea_X)
    CurrentItemYOffset - GetGadgetAttribute(\ParentGadget, #PB_ScrollArea_Y)
  EndSelect
There are also the PanelGadgets to manage, not easy with the different tabs
The "Edit Container" mode allows to change Tab but right now, there's only one that can be drawn


For the time being, I'm gonna stay on one level...
I've got a lot of other things to do first. Other Corner Handles, Match Grid, Multi-Select and Group
And also, after, the communication with the properties interface
In short, a lot of work to do, I don't know yet if I'm going to stay open-source, Will see.

And at first, it is the family with the children's school holidays that begins :wink:

Re: SweetyVD (Visual Designer)

Posted: Wed Feb 19, 2020 5:00 pm
by ChrisR
srod wrote:Very impressive.

Does that allow you to edit a container within another container say?
I've made good progress.
It is now possible to edit a container included in another container 8)
Not mandatory but I've limited it to 9 levels, it should be enough, I believe.
Here, 3 levels in the screenshot: Panel, ScrollArea and Panel again

Image

FlatEarth wrote:Wow bravo, that's great, I'm waiting to test it ... :D :)
Here is the first beta

IceDesign_beta1.exe

Thanks to those who test and for the feedbacks :)

Re: SweetyVD (Visual Designer)

Posted: Wed Feb 19, 2020 6:13 pm
by FlatEarth
Your work is amazing! :shock: :shock: If I were you, I would have started pb best designer project right now :D
Hope your project succeeds :wink:

Re: SweetyVD (Visual Designer)

Posted: Tue Feb 25, 2020 4:02 pm
by ChrisR
I updated SweetyVD version 2.1.2 with
- DPI Aware compile option removed. It caused an Offset in Mouse position.
- Load User Colors. They are Saved now in SweetyVD.ini
- Slightly revised drawing of the Containers, ScrollArea, Panel, Frame.

I'm continuing on the new model, I've named it IceDesign. It will not be open source
Thanks FlatEarth for your encouragement, it's appreciated

Re: SweetyVD (Visual Designer)

Posted: Thu Feb 27, 2020 10:20 am
by ChrisR
IceDesign has his own topic now here IceDesign

Here it is for SweetyVD which remains available and Open Source on GitHub :)

Re: SweetyVD (Visual Designer)

Posted: Sat Feb 29, 2020 1:56 pm
by filip
Congratulation ChrisR !!!!

I tested SweetyVD and also the new IceDesign and what you did is really promising :shock: :D

One thing is not clear for me when using SweetyVD.
I create a window with a few gadgets (Buttons, image ...).
Then I can play or create a new tab in PB.

But in case I close the application SweetyVD and I restart it, how to restart with the last window created with the buttons, image... ?
Is-it possible ?

Re: SweetyVD (Visual Designer)

Posted: Sun Mar 01, 2020 4:54 pm
by blueb
Under the 'Preferences' (General Settings Area)...

I'd like a place to change the default font, rather than having to adjust each gadget's font.
(helpful with large monitor's, etc.)

Edit: Of course... Font Size different than the default would be nice as well. :)

Re: SweetyVD (Visual Designer)

Posted: Mon Mar 02, 2020 4:54 pm
by ChrisR
Hi, Late answer, I was on a WE
@filip
You can't, the loading part is not developed at all (It's open if anyone wants :wink:)
Currently, It is not possible to load or reload from an existing interface.

@blueb
You mean SetGadgetFont(#PB_Default, FontID(#Font))
Interesting to have indeed. I will have 1 to 2 busy weeks, I note to do it for a little later

Re: SweetyVD (Visual Designer)

Posted: Wed Mar 04, 2020 8:10 am
by FlatEarth
Perhaps this is a good idea to save and load the project :
Use of Xml library with [InsertXMLStructure] and [ExtractXMLStructure].
I've already tested for a similar project and it makes it very easy.
what is your opinion ?

Re: SweetyVD (Visual Designer)

Posted: Wed Mar 04, 2020 12:47 pm
by ChrisR
Hi FlatEarth,
Yes, I think it's a good option, especially if it makes it very easy.
I haven't used XMLStructure so I don't know more yet.

Ideally, I think it would be nice to have a Lexer to be able to load the structure and create the controls from a PB source.
But importing from a pb source could be another option for later.

My concern at the moment is the time available, unfortunately it's not extendable
I'm busy the next 2 weeks and not enough time for development.

If you have a little more time and you want to do the Insert(Extract)XMLStructure, it's with pleasure :)
It's Open to everyone (I don't know how I'm going to do for IceDesign)
My dream would be for it to become a community project, not mine.

Re: SweetyVD (Visual Designer)

Posted: Wed Mar 04, 2020 3:55 pm
by FlatEarth
ChrisR wrote: If you have a little more time and you want to do the Insert(Extract)XMLStructure, it's with pleasure :)
I'm sorry, I don't have enough time, like you. :( Because in addition to my job, I'm working on a new tool for PB IDE. :D

Re: SweetyVD (Visual Designer)

Posted: Mon Aug 10, 2020 12:33 am
by scanfff
I'm getting this error launching on mint 20. see img :-

https://drive.google.com/file/d/1WLFEn- ... sp=sharing