BBC BASIC for Windows
« Writing for Linux »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:48pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Writing for Linux  (Read 796 times)
Matt
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 210
xx Writing for Linux
« Thread started on: Oct 13th, 2010, 6:50pm »

Hi,

I'm writing a program which can be run a Linux machine with WINE. Generally everything is OK except for producing a toolbar. I'm using the WINLIB library, but it hangs. The status bar works fine, but not the toolbar. Is there another way of producing this - perhaps without m/c?

Matt
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Writing for Linux
« Reply #1 on: Oct 13th, 2010, 9:50pm »

on Oct 13th, 2010, 6:50pm, Matt wrote:
I'm using the WINLIB library, but it hangs.

Where does it hang (use the Module Viewer add-in utility and Trace mode to find out)?

Does GUIDEMO.BBC (in the EXAMPLES\WINDOWS folder) run OK under Wine? I've never had any reports of a problem with the toolbar in that, and I would have expected someone to have mentioned it in nine years!

Quote:
Is there another way of producing this - perhaps without m/c?

I've never succeeded in creating a toolbar without assembler code, but there's no reason at all why that would affect compatibility with Wine.

Richard.
User IP Logged

Matt
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 210
xx Re: Writing for Linux
« Reply #2 on: Oct 14th, 2010, 06:21am »

I've narrowed it down to two lines.

Set up lines are:
Code:
        nbutts% = 8 : REM toolbar buttons
        DIM button%(nbutts%-1), buttid%(nbutts%-1), buttip$(nbutts%-1)
        button%() =  6,    7,     5,       14,     12,      13,                                      11,    10
        buttid%() =  100,  101,   102,     104,    105,     106,                                     107,   108
        buttip$() = "New","Open","Delete","Print","Search","Search within"+CHR$13+"current listing","Help","Options" 


Lines where it hangs:
Code:
        htool% = FN_createtoolbar(nbutts%,button%(),buttid%())
        PROC_addtooltips(htool%,nbutts%,buttip$(),buttid%()) 


As I say, this works fine on my pc.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Writing for Linux
« Reply #3 on: Oct 14th, 2010, 10:35am »

on Oct 14th, 2010, 06:21am, Matt wrote:
As I say, this works fine on my pc.

OK, I think I found the problem. Try this version of WINLIB.BBC (v2.2) and let me know if it helps:

http://groups.yahoo.com/group/bb4w/files/Libraries/WINLIB.BBC

Richard.
User IP Logged

Matt
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 210
xx Re: Writing for Linux
« Reply #4 on: Oct 15th, 2010, 05:20am »

Tried it. Works fine.

Thanks Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls