Page 7 of 12

Re: SweetyVD (Visual Designer)

Posted: Sat Jul 15, 2017 1:52 pm
by Michael Vogel
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: Select all

		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?

Re: SweetyVD (Visual Designer)

Posted: Sat Jul 15, 2017 2:54 pm
by Zebuddi123
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

Re: SweetyVD (Visual Designer)

Posted: Sun Jul 16, 2017 12:39 pm
by loulou2522
Hi Zebuddi123,
I am very impatient to see the result when did you post the new code ?
Thanks in advance

Re: SweetyVD (Visual Designer)

Posted: Sun Jul 16, 2017 9:38 pm
by Zebuddi123
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.

Re: SweetyVD (Visual Designer)

Posted: Sun Jul 16, 2017 9:52 pm
by Zebuddi123
Hi to All Here`s The Link :) Updated link forgot to free a map on load complete. :oops:

Zebuddi.

https://goo.gl/sp1hDo

Re: SweetyVD (Visual Designer)

Posted: Mon Jul 17, 2017 2:42 pm
by blueb
Is it just me, or did you lose all the color information? :?

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

Re: SweetyVD (Visual Designer)

Posted: Mon Jul 17, 2017 4:13 pm
by Zebuddi123
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. :)

Re: SweetyVD (Visual Designer)

Posted: Fri Jul 21, 2017 3:44 pm
by Klonk
Looks very nice. Good work...

Re: SweetyVD (Visual Designer)

Posted: Sat Jun 01, 2019 1:57 am
by BarryG
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

Re: SweetyVD (Visual Designer)

Posted: Sat Jun 01, 2019 2:05 pm
by blueb
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. :)

Re: SweetyVD (Visual Designer)

Posted: Sat Jun 01, 2019 2:24 pm
by BarryG
Thanks blueb, that worked.

Re: SweetyVD (Visual Designer)

Posted: Sun Nov 17, 2019 6:12 pm
by Caronte3D
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.

Re: SweetyVD (Visual Designer)

Posted: Fri Nov 22, 2019 7:04 pm
by Caronte3D
Mmmm... Ok, I think is not possible to reload forms at all :?
The only alternative is the integrated designer?

Re: SweetyVD (Visual Designer)

Posted: Fri Nov 22, 2019 8:41 pm
by Bitblazer
Caronte3D wrote:The only alternative is the integrated designer?
There are several other options but i prefer PureVision

Re: SweetyVD (Visual Designer)

Posted: Sun Nov 24, 2019 7:53 pm
by Caronte3D
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: