Re: [BLACKBOX] Call GTK from blackbox

From: [at]} <Romiras>
Date: Mon, 31 Jan 2011 09:05:39 +0200

----boundary-LibPST-iamunique-618869415_-_-
Content-type: text/plain

On ?', 2011-01-30 at 22:25 -0200, Frank Hrebabetzky wrote:
On 01/30/2011 06:25 AM, Romiras wrote:
>
> > Here is a simple example GnomeHello. Passing arguments was not used,
> > because it not required for GUI application.

>
> Thanks for the example, it really helped. I understand that I can pass
> simply two uninitialized variables to gtk_init. And from the commented
> lines and from your other response I see how to access command line
> parameters when they are really needed.
>
> What I still don't understand is:
>
> 1. What is the interface function of gtk_init?
> For OO2C I used:
> PROCEDURE ["gtk_init"] init* (VAR argc:LONGINT; VAR argv:ArgVector);
> with
> ArgVector* = POINTER TO ARRAY OF POINTER TO ARRAY OF CHAR;
> Same here?
>
> 2. You import some modules like GnomeGdk, GnomeGtk and so on. Are they
> available?
>
> 3. Your example contains as a comment a call of gtk_init where the
> command line parameters are passed:
> gtk.gtk_init(SYSTEM.ADR(Kernel.bootInfo.argc),SYSTEM.ADR(Kernel.bootInfo.argv));
> In your other post you describe this as the option for a Linux
> compiler. But there exists no Blackbox for Linux. Or are you
> speaking about your project on SourceForge?
>

1. In module GnomeGtk type of argument 'argv' declared as
        PStrList* = POINTER TO ARRAY [untagged] OF ARRAY OF SHORTCHAR;

The system flag "[untagged]" is used for interfacing with "alien"
languages and 8-bit SHORTCHAR (CP) is instead of CHAR (Oberon).

2. These modules available from SVN repository at
https://oberonrevival.svn.sourceforge.net/svnroot/oberonrevival/bbox-components/Gtk/
among other components. This interface wrapper is still incomplete,
but may serve as good basis for further development.

3. I refer to OpenBUGS project [http://www.openbugs.info/w/Overview]
and CP-dev project [http://sourceforge.net/projects/cp-dev/] as well.


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-618869415_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYx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