VISG: visual and smart GUI builder

User projects written in or related to FreeBASIC.
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Postby mrhx » Aug 02, 2007 18:21

Guys, I have updated the plugin for FreeBASIC. Now it works with FBC 0.17.
http://mrhx.ucoz.com/load/
Pritchard
Posts: 5492
Joined: Sep 12, 2005 20:06
Location: Ohio, USA

Postby Pritchard » Aug 02, 2007 23:42

mrhx wrote:Guys, I have updated the plugin for FreeBASIC. Now it works with FBC 0.17.
http://mrhx.ucoz.com/load/
Thanks ^.~;;

EDIT: Are you sure it compiles with .17? Option Explicit was removed in. So was '$include: among other things. I tried with -lang deprecated and -lang qb, and it still didn't work for me.

Did you look at the edit I made?, and I don't think you were using the official release of .17 to port that plugin O.o;; Your plugin doesn't compile over here.
phishguy
Posts: 1201
Joined: May 05, 2006 16:12
Location: West Richland, Wa

Postby phishguy » Aug 03, 2007 12:34

@Prichard
Are you sure that you used the Freebasic 0.17 plugin? I tried it and didn't have any issues. However, I am not smart enough to use the generated code as I don't know how to access the GUI interface within my program once it's created. I would appreciate it if someone would give me examples of how this is done.
Pritchard
Posts: 5492
Joined: Sep 12, 2005 20:06
Location: Ohio, USA

Postby Pritchard » Aug 03, 2007 13:13

phishguy, the FB .17 plugin is all about the code generated. The GUI Builder works just fine without the plugin. To save your file as code, however, you have to have a plugin available.

EDIT: Well, these files weren't in the official release of .17b I believe. This change was made a while back.

Code: Select all

'$include once: "win\kernel32.bi"
'$include once: "win\user32.bi"
'$include once: "win\commctrl32.bi"
After fixing that code, I still run into a ton of errors, as I probably should. Entire datatypes are being passed when a pointer to them should be passed instead (less implicitness in .17b and above).

Still going to try the official release myself though.
Don
Posts: 14
Joined: May 07, 2007 23:41
Location: USA

Postby Don » Aug 03, 2007 14:15

Created a simple window using VSIG, containing a group box with two radio buttons inside and compiled it OK with FB-v0.18-Jul-02-2007-intermediate. The EXE runs OK except the radio buttons don't seem to function properly. Clicking on a button puts it in focus, but the button is not activated (the little black dot in the button does not appear).
cha0s
Site Admin
Posts: 5317
Joined: May 27, 2005 6:42
Location: Illinois
Contact:

Postby cha0s » Aug 03, 2007 15:13

IT's really cool, I toyed around with it, but I'm such a noob.. I don't know what code I'm supposed to write to be "behind" this stuf... or where to put it... Is there any documentation in english?

For instance I make a treeview, how would I fill that and use it? etc... Do I have to use winapi?
MichaelW
Posts: 3500
Joined: May 16, 2006 22:34
Location: USA

Postby MichaelW » Aug 03, 2007 15:13

Don,

The behavior you describe would be characteristic of a RADIOBUTTON control (BS_RADIOBUTTON). Unless you are setting the check state in code, I think you need to use an AUTORADIOBUTTON control. For more information see BS_AUTORADIOBUTTON.
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Postby mrhx » Aug 03, 2007 16:18

Pritchard, it looks like you have downloaded the old plugin, not the new one.

Updated plugin can be downloaded at the following address:
http://mrhx.ucoz.com/load/2-1-0-11

( at the moment, this is the first material at http://mrhx.ucoz.com/load/ )

Try it. Now it generates the code like this:

Code: Select all

''
'' Tested on FreeBASIC Compiler 0.17
''

#include once "windows.bi"
#include once "win/commctrl.bi"

'' names of window classes.
const WND_CLASS_NAME0 = "my_wnd_class_name_0"
const WND_CLASS_NAME1 = "my_wnd_class_name_1"
const WND_CLASS_NAME2 = "my_wnd_class_name_2"

'' identifiers.
const MY_FIRST_ID = 2000
const IDC_BUTTON3 = MY_FIRST_ID + 0


PS yes, i saw the plugin, edited by you. I used it as an example of how it must look.
Don
Posts: 14
Joined: May 07, 2007 23:41
Location: USA

Postby Don » Aug 03, 2007 16:31

MichaelW:

Thanks. You're right. I did use the wrong radiobutton control in setting up my groupbox. Works fine now after making the change.

Don B.
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Postby mrhx » Aug 03, 2007 16:33

to cha0s:

you need any winapi documentation.

for examples, see the following path:
FreeBASIC/examples/Windows/gui/

there is several examples of how to use winapi.
there is also an example of treeview using in treeview.bas.
Pritchard
Posts: 5492
Joined: Sep 12, 2005 20:06
Location: Ohio, USA

Postby Pritchard » Aug 03, 2007 23:27

mrhx wrote:Pritchard, it looks like you have downloaded the old plugin, not the new one.
My mistake! ^.^;; I had thought you simply replaced the old plugin with the new one completely, so I hadn't looked for a new download area ;_;

Sorry if I caused you any trouble :D

*feels like cussing a lot because he is really embarrassed* *paces around for a few minutes to let off some steam (is angry at himself)*
gbos
Posts: 35
Joined: Feb 09, 2006 12:58

Postby gbos » Aug 18, 2007 18:42

Very nice tool.

Is richedit control working properly? It is not appearing when compiled with the 0.17 version.
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Postby mrhx » Aug 18, 2007 19:42

gbos wrote:Very nice tool.

Is richedit control working properly? It is not appearing when compiled with the 0.17 version.


Oh, yes, thank you. I forgot the richedit needs the special library which must be loaded before. I will fix this bug in new release 0.9. VISG loads this library internally, but it does not generate the code for loading.
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

VISG 0.9

Postby mrhx » Aug 22, 2007 21:01

Hi, all.

I have just released visg 0.9.
It has more than 30 changes.
Now you can choose a font for controls.
Now visg also generates event handlers for buttons and checkboxes.
It also has several bugfixes.

Now it is better for winapi-beginners than before.

visg 0.9 is available as an installer, and as a zip archive without installer.

http://mrhx.ucoz.com/
io
Posts: 9
Joined: Aug 22, 2007 22:26

Postby io » Aug 23, 2007 12:41

to mrhx and whoever want help me



hallo.
i think that visg 0.9. is wonderful.
i' m just a beginner and i can only obtain the form
with some control inside but i don't know what
code i should put in there and in what place,too....
Maybe there is a tutorial somewhere to learn?
It 's a pity that the help file is just in Rus language... i hope in the next future someone translate it....
Please ,could someone post some little
example or some useful link?
thanks a lot
p.s i'm sorry my english isn't perfect....

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 3 guests