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 Wed 26 Nov 2014, 00:12
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 Posts_count  
Author Message
Packetteer


Joined: 12 May 2012
Posts: 36
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  107 Time(s) 

Edited_time_total
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
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: 36
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: 5042
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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