VISG: visual and smart GUI builder
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
Thanks ^.~;;mrhx wrote:Guys, I have updated the plugin for FreeBASIC. Now it works with FBC 0.17.
http://mrhx.ucoz.com/load/
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.
@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.
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.
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
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.
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.
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"
Still going to try the official release myself though.
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).
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.
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.
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:
PS yes, i saw the plugin, edited by you. I used it as an example of how it must look.
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
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
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 ;_;mrhx wrote:anonymous1337, it looks like you have downloaded the old plugin, not the new one.
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)*
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.gbos wrote:Very nice tool.
Is richedit control working properly? It is not appearing when compiled with the 0.17 version.
VISG 0.9
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/
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/
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....
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....