Write your own Visual Designer for PureBasic!

Developed or developing a new product in PureBasic? Tell the world about it.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ebknoppert.


I ever wrote VD - Visual Designer for PowerBASIC.

Since it's ADDIN capabilities let you retrieve data like control properties, it's possible to generate PureBasic code with it.

This way you can make your own visual designer for PureBasic etc..

To check it out, this part is in beta.
If you don't have this package installed you should install the full package first.
Then upgrade with the beta

http://www.hellobasic.com/


A small addin project can be found here:
http://www.hellobasic.com/trials/vdadd.zip

For people not having a licence yet, VDADDIN.DLL will not be loaded without it.
To tell you what you can retrieve is the control name and control property name and value (and much other parts like modules etc..).
Just as you see it in the propertybox.
Like Appearance "1 - 3D"
This way you can make your code..

The addin can be any DLL, if it's written in PureBasic or not, it doesn't matter.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ebknoppert.

*UPDATE*

I have uploaded a full package with addin support without needing a licence.
http://www.hellobasic.com/vd/vdup.exe

Now you can test it yourself.
The VDADDIN DLL in the package mentioned above, if placed in the VD dir, will add 2 menu items under EXTRA.
The 'enum all' will show the results.
It's not so fast but that is not optimized yet.
This is is just an example project and you should prepare your own dll of course.
This VDADDIN dll was created with VD abnd PowerBASIC.

Much of the functions will return a BSTR, this is for PureBasic users simply a long variable.
The SysFreeString is required to destroy the memory once the procedure is called.
Write yourself a small wrapper with:
SysStringByteLen()
MoveMemory()
SysFreeString()
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ebknoppert.

I have set a forum for this matter.
Here is a link, if you are interested to write your own addin for this designer..

http://www.hellobasic.com/cgi-bin/forum ... 1048454864

Difficult?
The addin project will shed some light on this i think.
It enums about all parts, at least the version of tomorrow will.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ebknoppert.



The latest beta(!) will have more functions and makes it much easier to use VD.
The latest vdadd.zip contains several examples how to enumerate a project.
You might want to check out the small form to resource conversion.
This makes a simple dlg editor for any purpose.

If you need help with translation, just ask through the HB forum.
http://www.hellobasic.com/cgi-bin/forum ... 1048454864

Thanks,
Post Reply