My First BaCon Program

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Packetteer
Posts: 73
Joined: Sat 12 May 2012, 19:33
Location: Long Island Ny

My First BaCon Program

#1 Post by Packetteer »

HI All
Thank you Peter for creating BaCon.
Thank you Barry for creating Puppy Linux.

Well I have written my first BaCon program.
It does not have a GUI. Even tho I have been writing Basic programs
since the Vic 20 I wanted to concentrate on the syntax of BaCon and
not have to worry about learning GTK.

I call the program vb2bacon.
What the program does is take your 2010 VB.Net form designer files
and extracts the names of the controls, their location and their size.
The information is then stored in another file of the same name as
the original vb design file. This new file is stored in a different directory.

The idea being you can now open these new files using a text editor
and then start designing the GUI of the Linux BaCon version of the
Windows 2010 VB.net program.

Please take a look at the source and let me know what you think.
There were some areas that I would have written different but could
not get BaCon to cooperate.

Thank you for your time in reading this E-Mail.
Attachments
vb2bacon.tar.gz
Found size of each form missing.
Added ' lines so each control is separated as it is in original file
(31.71 KiB) Downloaded 222 times
Last edited by Packetteer on Sun 10 Mar 2013, 14:19, edited 1 time in total.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2 Post by sunburnt »

Hi Packetteer; I don`t have time today to look at source code, but it`s an interesting idea.

My thought: If you have control names and sizes, why not have it create Bacon code directly?

( This isn`t direct Bacon code of course...):

Code: Select all

Txt$ = win.btnExit.Caption
W = win.btnExit.Width
H = win.btnExit.Height
btnExit_ = BUTTON(Txt$, W, H)

User avatar
Packetteer
Posts: 73
Joined: Sat 12 May 2012, 19:33
Location: Long Island Ny

#3 Post by Packetteer »

Hi Sunburnt
At this point I am trying to learn how to use
HUG and GTK. I have got a good start on my VB.NET
RadioGram program. I have most to the main form user interface
programed in BaCon.

Once I have that program up and running I think I will have a pretty
good working knowledge of BaCon,Hug and GTK.
At that point I think I will revisit the Vb2BaCon program.

Thank you for your reply

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#4 Post by sunburnt »

Bacon and hug are easy to use, GTK+ is something else entirely.

I`ve looked at it repeatedly with little understanding, there`s no docs. for it.

User avatar
Mobeus
Posts: 94
Joined: Thu 26 Aug 2010, 15:49

#5 Post by Mobeus »

there`s no docs. for it
Sure there are :)

GTK2 https://developer.gnome.org/gtk2/

GTK3 https://developer.gnome.org/gtk3/

You can download a copy of each too.

Regards,
Mobeus
/root for the home team

Post Reply