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.

My problem is two-fold; 1. KMV shows '0' as soon as the selection is made in the listbox and does not change after the MSGDIALOG FUCTION (value kmv not being returned?) and 2. - this is most likely why there is a problem #1 - I cannot figure out the process of using buttons with MSGDIALOG (ie how they react/respond or how to manipulate the result of the button being pushed).

I have also tried CALLBACKX(kilme_dlg,killme_btn,dmv) which gave compile errors because dmv is not assigned yet (?) - even when I set it to 0 (dmv=0) beforehand.

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