SweetyVD (Visual Designer)

Share your advanced PureBasic knowledge/code with the community.
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: SweetyVD (Visual Designer)

Post by ChrisR »

Image
FlatEarth

Re: SweetyVD (Visual Designer)

Post by FlatEarth »

Wow bravo, that's great, I'm waiting to test it ... :D :)
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: SweetyVD (Visual Designer)

Post by srod »

Very impressive.

Does that allow you to edit a container within another container say?
I may look like a mule, but I'm not a complete ass.
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: SweetyVD (Visual Designer)

Post 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:
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: SweetyVD (Visual Designer)

Post 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 :)
FlatEarth

Re: SweetyVD (Visual Designer)

Post 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:
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: SweetyVD (Visual Designer)

Post 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
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: SweetyVD (Visual Designer)

Post by ChrisR »

IceDesign has his own topic now here IceDesign

Here it is for SweetyVD which remains available and Open Source on GitHub :)
filip
New User
New User
Posts: 4
Joined: Sat Aug 11, 2018 7:31 pm

Re: SweetyVD (Visual Designer)

Post 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 ?
User avatar
blueb
Addict
Addict
Posts: 1041
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: SweetyVD (Visual Designer)

Post 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. :)
- It was too lonely at the top.

System : PB 6.10 Beta 9 (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: SweetyVD (Visual Designer)

Post 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
FlatEarth

Re: SweetyVD (Visual Designer)

Post 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 ?
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: SweetyVD (Visual Designer)

Post 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.
FlatEarth

Re: SweetyVD (Visual Designer)

Post 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
User avatar
scanfff
User
User
Posts: 18
Joined: Thu May 30, 2019 10:02 am
Location: Seattle
Contact:

Re: SweetyVD (Visual Designer)

Post by scanfff »

I'm getting this error launching on mint 20. see img :-

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