There is a reason to use a list after INCLUDE "hug.bac", and there is a reason not to use "hug_imports.bac". If you use a list with "hug.bac", the compilation is faster. I compile a lot, use the latest bacon and hug versions and do not want an extra dependency in my code that is based on the libhug.so that might be present on my machine only - and being different on other machines. That dependency is created by using hug_imports.bac, which uses the shared lib libhug.so.

Also, I am interested in small and self-contained binaries (the smaller the better). For that reason, I use the following compile line:

and then UPX the binary (the compile line already strips unneeded symbols). This typically gives me 16-25k binaries without any huglib.so dependency issues for GTK apps and 7-10k CLI binaries - much better than 70k+ or larger. I also do this when compiling bacon and bacongui. They weigh in at 61k and 78k respectively after this "treament".

yea, isn't it funny how such a small mistake can make you look like such a big dummy ! I went back and sure enough- no line after the end. I put one there and got a good run through. Thanks m8!
@ vovchik

I see what you mean. Tried the hug_imports just for 'grins & giggles' to see what would happen. what a mess! LOL Thanks for the fore-warning!

@ everyone

Now I have more questions....

I need to incorporate a text-area on my window. Also, I will have a listbox to list the 'records' within a file (i.e. lines of data contained within).

I've looked through the docs I have, but do not see any indication of a text area command. I'm sure it is probably something i am overlooking - like multiline or something - so I ask, is there a means of producing multi-lined entry?

As far as the second issue, I have the listbox set up. Question is what would be the best method of inserting data obtained from the read-in of a file? Can I simply create an array and print it to the listbox?

You guys are the best! I have gained a lot of insight from you and appreciate it more than I can express.

Yea, the info is already in an array, just not sure how to print it in the list box. assuming the 'MARK' attribute will do that?

Also, the multi lined area is not the listbox. It will actually be a 'notes' area - for entering your personal notations. As an ENTRY box, i would assume there would be some sort of word-wrap or multi-line setting to use in order to accomplish this. Haven't found the code yet though.

Thanks!

E

[update] 022813 23:32 est

Looks like i figured out the print to listbox (finally ):

TEXT(listbox,variable)

Still working on how to make a multi-line ENTRY box, so any help will be appreciated

This is a little game I programmed in Bacon durng the summer but revised it today to take into account the stricter type casting in newer BaCon versions. The excercise was interesting, at least to me, for a number of reasons:

The graphics are all internal to the source - they are generated internally and not loaded from disk.

The program shows how to change mouse cursors and how to create a unique taskbar icon.

My implementation, after some long and hard thought, avoids any real movement of objects. They are simply hidden or shown, and I keep track of thier status.

The rsvg lib is put to good use, and gtk and gkd imports are used because native HUG did not have them.

The program demostrates how to REGISTER new widgets in HUG.

I compiled the binary in lucid (using Bacon beta 1.30 and hug 0.83) and then UPX'd it, so it is not large (23k).

Yea, sorry bud, haven't gotten to putting in the internationalization yet. Gotta get my coding right first for the basis, then I can get 'fancy'

@sunburnt

Thanks m8, that should help make my coding a little prettier when I feel comfortable that I understand it properly. And you are correct, it will be used to both enter and view information. Figure editing can be done by changing displayed info and then saving.

Thanks you guys - all the help has made it possible for me to actually write stuff! I know I will need your inputs as I trudge through on this journey. It is great to know I can count on some assistance along the way!

I am assuming you want to make sure that you include the "http://" before you pass the URL to the browser, so you want a properly formatted URL. The tests for validity above are, of course, not good or exhaustive. You could "ping" the site to ensure that it exists first - or use BaCon's networking function - to see that it is responding before launching your browser.

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