VISG: visual and smart GUI builder

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

Post by mrhx »

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

Post by anonymous1337 »

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

Post by phishguy »

@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.
anonymous1337
Posts: 5494
Joined: Sep 12, 2005 20:06
Location: California

Post by anonymous1337 »

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

Post by Don »

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: 5319
Joined: May 27, 2005 6:42
Location: USA
Contact:

Post by cha0s »

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

Post by MichaelW »

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:

Post by mrhx »

anonymous1337, 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

Post by Don »

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:

Post by mrhx »

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.
anonymous1337
Posts: 5494
Joined: Sep 12, 2005 20:06
Location: California

Post by anonymous1337 »

mrhx wrote:anonymous1337, 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

Post by gbos »

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:

Post by mrhx »

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

Post by mrhx »

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

Post by io »

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