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 »

io, you need any winapi manual.

Find the word "Event" in the generated code. Visg inserts into the code message boxes with title "Event" and a comment for the event. You see this messages when you press any button or checkbox on the form. It's a hint where insert your code.

See examples in the folder FreeBASIC/examples/Windows/gui.
io
Posts: 9
Joined: Aug 22, 2007 22:26

Post by io »

to mrhx

Very,very thanks for your suggest, I'll follw it !

bye.
P.S your softwares are great !!
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Post by mrhx »

VISG 0.91 is available.
- new icons.
- manual and automatical checking the program updates.
- one more programming language: Gentee.
(0.91 is a little update, but the automatical update checking may be useful)
anonymous1337
Posts: 5494
Joined: Sep 12, 2005 20:06
Location: California

Post by anonymous1337 »

Whoot! :D Very nice project. I plan to study on Windows API and GUI development sometime in the future, and I may use this.
fsw
Posts: 260
Joined: May 27, 2005 6:02

Post by fsw »

@mrhx
looked through your webpage and saw that you created a small assembler called nanoasm.
Good work man.

BTW: Tried to compile it, but there are some files missing in the zip.
There is only one c file and it has no main proc.
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Post by mrhx »

@fsw

The Nanoasm compiler is only function "nanoasm_compile".
You may include it into your program and it can compile nanoasm programs at runtime into memory.

In the zip, there is the nanoasm compiler "nanoasm.exe".
It can create simple Windows PE executables.
It can also create binary files with compiled code or run the code directly.
You may include that binaries into your program and call it directly like a function, because it's already compiled code.

I did not put the source code of nanoasm.exe to the my website before.
But now I've done it. You can download it here: http://mrhx.ucoz.com/load/5
fsw
Posts: 260
Joined: May 27, 2005 6:02

Post by fsw »

mrhx wrote:@fsw

The Nanoasm compiler is only function "nanoasm_compile".
You may include it into your program and it can compile nanoasm programs at runtime into memory.

In the zip, there is the nanoasm compiler "nanoasm.exe".
It can create simple Windows PE executables.
It can also create binary files with compiled code or run the code directly.
You may include that binaries into your program and call it directly like a function, because it's already compiled code.

I did not put the source code of nanoasm.exe to the my website before.
But now I've done it. You can download it here: http://mrhx.ucoz.com/load/5
Thanks, but now it says array.c is missing.

I'm really impressed about the small sizes of the code.
It seems you reaaly know what you are doing.
Great job.

BTW: if I have more questions, where do you want me to put them?
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Post by mrhx »

@fsw

http://mrhx.ucoz.com/load/5-1-0-15#comments

I've just put "how to build" comments there.
Ask your questions about nanoasm in the comments on my website in order all other people can see it.
bfuller
Posts: 362
Joined: Jun 02, 2007 12:35
Location: Sydney, Australia

Post by bfuller »

I just tried to download VISG 0.91 from http://mrhx.ucoz.com/load/1-1-0-14 and I only get 74kByte--the download site says 124.3kByte. The zip won't open. What am I doing wrong?

Rgds
Brad
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Post by mrhx »

bfuller wrote:I just tried to download VISG 0.91 from http://mrhx.ucoz.com/load/1-1-0-14 and I only get 74kByte--the download site says 124.3kByte. The zip won't open. What am I doing wrong?

Rgds
Brad
I see this problem at first time.
I don't know what is it.
Try the following direct address:

http://mrhx.ucoz.com/soft/visg091.zip
bfuller
Posts: 362
Joined: Jun 02, 2007 12:35
Location: Sydney, Australia

Post by bfuller »

OK, now it works--strange, so does the original download this morning. Thanks for the help. I think the problem may have been at my end. I think Norton Anti Virus is interferring with things. I have not tried to run VISG yet--I have very little spare time but from the forum entries above it sounds very good.
nobozoz
Posts: 238
Joined: Nov 17, 2005 6:24
Location: Chino Hills, CA, USA

Post by nobozoz »

mrhx,

I tried to download at work from http://mrhx.ucoz.com/soft/visg091.zip and was blocked by the Corporate Internet filter with a warning that your IP is a "criminal enterprise, phishing" site. Just thought you should know.

_j
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Post by mrhx »

nobozoz, thank you.
it's not good :(
it's because of free hosting "ucoz.com", i think.
hammeraxe
Posts: 6
Joined: Aug 30, 2007 19:25
Location: LV

Post by hammeraxe »

ok everything works fine for me....
but as im not an API pro i dont know how to implement menus (like File, Edit, Options...) maybe you could include it in visg or point out a good tutorial...
mrhx
Posts: 40
Joined: Jul 30, 2007 20:11
Location: Russia
Contact:

Post by mrhx »

@ hammeraxe

I will include the menu editor into VISG soon (in version 1.0+).

But at the moment, you need to create it manually by using AppendMenu function. See "FreeBASIC/examples/Windows/gui/menu.bas" for more info.

The simple example:

Code: Select all

const IDM_EXIT = 1900
const IDM_FILE_OPEN = 1901

dim mymenu as HMENU
dim mysubmenu as HMENU

mymenu = CreateMenu() ' create new menu.

mysubmenu = CreatePopupMenu() ' create new popup menu "File".

AppendMenu mysubmenu, MF_STRING, IDM_FILE_OPEN, "Open" ' add OPEN menu item.
AppendMenu mysubmenu, MF_STRING, IDM_EXIT, "Exit" ' add EXIT menu item.

' append FILE submenu.
AppendMenu mymenu, MF_STRING or MF_POPUP, cast(integer, mysubmenu), "File"

SetMenu mywnd, mymenu ' set the window menu.
DrawMenuBar mywnd   ' optional call.
' mywnd is the window handle (HWND) of your window.
Post Reply