PureBasic Forum
http://forums.purebasic.com/english/

SweetyVD (Visual Designer)
http://forums.purebasic.com/english/viewtopic.php?f=12&t=68187
Page 7 of 11

Author:  Michael Vogel [ Sat Jul 15, 2017 1:52 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Really cool - maybe it will find it's way into PB6 :wink:

What I didn't see so far - saving/loading a design. This could be easily done by something like...
Code:
      Procedure SaveDesign(file.s="Test.svd")

         If CreateFile(0,file)

            ResetMap(SVDListGadget())
            With SVDListGadget()
               While NextMapElement(SVDListGadget())
                  WriteInteger(0,\Gadget)
                  WriteInteger(0,\Type)
                  WriteInteger(0,\DragHandle)
                  WriteInteger(0,\X)
                  WriteInteger(0,\Y)
                  WriteString(0,\Model)
                  WriteString(0,\Name)
                  :
               Wend
               CloseFile(0)
            EndWith
         EndIf

      EndProcedure


...if everything of the design is saved in SVDListGadget structure. Is this correct or is more information needed to restore a saved form?

Author:  Zebuddi123 [ Sat Jul 15, 2017 2:54 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Hi Michael Vogel yes there is more ! I have programmed all the extraction for all required fields and reloading and reinitializing the the gui with the loaded saved form. As I`m doing this when time permits it`s taking longer than I had hoped. Plus having to follow and understand someone else`s code. Hopefully I`ll get back to it this weekend.

Chris R have done a great job. I for one think it should be included in PB6+ lol (sorry polo no offence ment) but then again I`m sure some of the better coders could do it quicker and better. :)

Export and imports as xml

Zebuddi.
Image

Author:  loulou2522 [ Sun Jul 16, 2017 12:39 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Hi Zebuddi123,
I am very impatient to see the result when did you post the new code ?
Thanks in advance

Author:  Zebuddi123 [ Sun Jul 16, 2017 9:38 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Hi loulou2522 and All. Had some time today and just finished. Save and Load is up and running although not extensively tested. I`ll post the code as a zip with link shortly, please test but remember I am still figuring out as I go along how ChrisR`s code is set up!

As I thought ChrisR code would been nice clean and easy to follow :) although it does get a bit complicated for me after line 14. But I have persevered :lol:

I hope it runs without to much of a hiccup. Famous last words :)

Zebuddi.

Author:  Zebuddi123 [ Sun Jul 16, 2017 9:52 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Hi to All Here`s The Link :) Updated link forgot to free a map on load complete. :oops:

Zebuddi.

https://goo.gl/sp1hDo

Author:  blueb [ Mon Jul 17, 2017 2:42 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Is it just me, or did you lose all the color information? :?

e.g. - backcolor of Main Form
- Front/back color on Container, etc.

Author:  Zebuddi123 [ Mon Jul 17, 2017 4:13 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Hi blueb just working on userdata now. Main goal for yesterday was to get the gadget to load in correct positions and redraw, Having to scan through the code as some of the userdata ie windows width/height are not save in the original map. So Hopefully next couple of days as time permits I will have that sorted.

Zebuddi. :)

Author:  Klonk [ Fri Jul 21, 2017 3:44 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Looks very nice. Good work...

Author:  BarryG [ Sat Jun 01, 2019 1:57 am ]
Post subject:  Re: SweetyVD (Visual Designer)

Downloaded SweetyVD just now to test it, but it doesn't run on my PC.

I hope it's not looking in the Registry for the Compiler home path, because I run PureBasic portably.

Image

Author:  blueb [ Sat Jun 01, 2019 2:05 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Look in your PureBasic Themes folder (e.g. F:\PureBasic\Themes) for
the SilkTheme.zip. Copy it over to the same folder as SweetyVD.

SweetyVD will unzip it as needed. :)

Author:  BarryG [ Sat Jun 01, 2019 2:24 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Thanks blueb, that worked.

Author:  Caronte3D [ Sun Nov 17, 2019 6:12 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Hi i'm new here and purebasic too :wink:

I don't know how to install this tool correctly (i think)

I call it from the Tools menu, and I already can make interfaces with it, but... How can reload these in case SweetDV was closed? :shock: Or it's not possible to continue working on a interface done yesterday by example? (I hope)

Thank you by share it.

Author:  Caronte3D [ Fri Nov 22, 2019 7:04 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Mmmm... Ok, I think is not possible to reload forms at all :?
The only alternative is the integrated designer?

Author:  Bitblazer [ Fri Nov 22, 2019 8:41 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Caronte3D wrote:
The only alternative is the integrated designer?


There are several other options but i prefer PureVision

Author:  Caronte3D [ Sun Nov 24, 2019 7:53 pm ]
Post subject:  Re: SweetyVD (Visual Designer)

Thanks for your answer, but I see PureVision very old style (80s?) :?
I doesn't understand why the coder of SweetyVD forgot to include a load or import function.

I Just discovered DialogDesigner for XML dialogs, It's not the same thing but is better than nothing :wink:

Page 7 of 11 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/