| Author |
Message |
Packetteer
Joined: 12 May 2012 Posts: 7 Location: Long Island Ny
|
Posted: Sat 09 Mar 2013, 09:02 Post subject:
My First BaCon Program |
|
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.
 |
| Description |
Found size of each form missing. Added ' lines so each control is separated as it is in original file
|

Download |
| Filename |
vb2bacon.tar.gz |
| Filesize |
31.71 KB |
| Downloaded |
30 Time(s) |
Last edited by Packetteer on Sun 10 Mar 2013, 10:19; edited 1 time in total
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4014 Location: Arizona, U.S.A.
|
Posted: Sat 09 Mar 2013, 16:15 Post subject:
|
|
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: | Txt$ = win.btnExit.Caption
W = win.btnExit.Width
H = win.btnExit.Height
btnExit_ = BUTTON(Txt$, W, H) |
|
|
Back to top
|
|
 |
Packetteer
Joined: 12 May 2012 Posts: 7 Location: Long Island Ny
|
Posted: Sat 09 Mar 2013, 16:31 Post subject:
|
|
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
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4014 Location: Arizona, U.S.A.
|
Posted: Sat 09 Mar 2013, 16:35 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
Mobeus

Joined: 26 Aug 2010 Posts: 94
|
Posted: Tue 12 Mar 2013, 12:22 Post subject:
|
|
| Quote: | | 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
|
|
Back to top
|
|
 |
|