Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 29 Aug 2014, 04:04
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
My First BaCon Program
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
Packetteer


Joined: 12 May 2012
Posts: 28
Location: Long Island Ny

PostPosted: 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.
vb2bacon.tar.gz
Description  Found size of each form missing.
Added ' lines so each control is separated as it is in original file
gz

 Download 
Filename  vb2bacon.tar.gz 
Filesize  31.71 KB 
Downloaded  94 Time(s) 

Last edited by Packetteer on Sun 10 Mar 2013, 10:19; edited 1 time in total
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: 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
View user's profile Send private message 
Packetteer


Joined: 12 May 2012
Posts: 28
Location: Long Island Ny

PostPosted: 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
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5016
Location: Arizona, U.S.A.

PostPosted: 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
View user's profile Send private message 
Mobeus


Joined: 26 Aug 2010
Posts: 94

PostPosted: Tue 12 Mar 2013, 12:22    Post subject:  

Quote:
there`s no docs. for it

Sure there are Smile

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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0503s ][ Queries: 13 (0.0075s) ][ GZIP on ]