Sorry I hadn't read the whole thread.

You are right that if you call gtkinit then it works OK within the
jconsole session, however it is not present in the Windows clipboard,
so I can't paste the contents to another application.

This works OK from Gtk IDE - I can clipwrite there and the result is
available for pasting to another application. Not sure how common that
such functionality would be used though (i.e. copy to clipboard from
jconsole and paste from clipboard to other application).

On Sun, Feb 20, 2011 at 3:15 PM, bill lam <[email protected]> wrote:
> I tested it ok running jconsole under wine. Did you forget to call gtkinit
> as suggested?  I did not test it on real window or kvm.
>
> Вск, 20 Фев 2011, Ric Tikkanz писал(а):
>> Had a look at this on Win7 32-bit
>>
>> Firstly ( require 'gtk' ) seems to work fine. If it is not working
>> check the contents of the noun Public_j_ which should contain an entry
>> linking "gtk" to "~addons/gui/gtk/gtk.ijs"
>>
>> In Gtk IDE clipwrite seems to work OK for me.
>> In jconsole I get the following when I attempt to clipwrite:
>> NB.======================================================
>> NB. Jconsole session
>>    JVERSION
>> Engine: j701/2011-01-10/11:25
>> Library: 7.01.045
>> Platform: Win 32
>> Installer: j701a_win.exe
>> InstallPath: c:/program files/j701
>>    require 'gtk'
>>    clipwrite i. 3 4
>>
>> (jconsole.exe:4044): Gtk-CRITICAL **: gtk_clipboard_get_for_display: 
>> assertion `
>> display != NULL' failed
>>
>> (jconsole.exe:4044): Gtk-CRITICAL **: gtk_clipboard_set_text: assertion 
>> `clipboa
>> rd != NULL' failed
>>
>> (jconsole.exe:4044): GLib-GObject-CRITICAL **: gtype.c:2710: You forgot to 
>> call
>> g_type_init()
>>
>> (jconsole.exe:4044): GLib-CRITICAL **: g_once_init_leave: assertion 
>> `initializat
>> ion_value != 0' failed
>>
>> (jconsole.exe:4044): Gtk-CRITICAL **: gtk_clipboard_store: assertion 
>> `GTK_IS_CLI
>> PBOARD (clipboard)' failed
>> 31
>>
>> NB. End Jconsole session
>> NB.====================================================
>>
>> At this stage the clipboard contents have not been changed.
>>
>> On Sun, Feb 20, 2011 at 1:39 PM, bill lam <[email protected]> wrote:
>> > You may inspect source code for clipwrite.  If you had set up jtags, it may
>> > located by placing cursor over the word 'clipwrite' and then press ctrl-]
>> > in gtkide. or type
>> > ta 'clipwrite'
>> > in jconsole.
>> >
>> > Сбт, 19 Фев 2011, Mike Day писал(а):
>> >> When running jconsole in J701 under Windows
>> >> Vista I find that require'gtk' doesn't work.
>> >>
>> >> It seems to need a fuller path,
>> >> require'~addons\gui\gtk\gtk.ijs'
>> >>
>> >> After fixing this, & running jconsole from a Windows
>> >> batch file,  the clipboard appears to be empty after
>> >> calling clipwrite on a non-empty array.
>> >>
>> >> NB. eg clipping a boxed vector
>> >>     3{.OUT
>> >> +-------+-------+------+
>> >> |1200.00|1843.00|408.38|
>> >> +-------+-------+------+
>> >>     clipwrite OUT
>> >> 127
>> >>
>> >> NB. or a character string
>> >>      ":;".each 3{.OUT
>> >> 1200 1843 408.38
>> >>     clipwrite  ":;".each 3{.OUT
>> >> 16
>> >>
>> >> I have clipped these from the jconsole session,
>> >> but I can't of course clip the apparently empty
>> >> clipboard contents!
>> >>
>> >> Thanks for any help, and usual apologies for
>> >> missing the obvious,  my mistakes etc ....
>> >>
>> >> Mike
>> >>
>> >> On 02/02/2011 03:48, bill lam wrote:
>> >> > These verbs are provided by gtk addons, if you run jconsole, you need to
>> >> > load gtk before using them,
>> >> >
>> >> >     require'gtk'
>> >> >     gtkinit_jgtk_''
>> >> >     clipwrite 'abc'
>> >> > 3
>> >> >     clipread ''
>> >> > abc
>> >> >
>> >> > Note that it cannot run without x11 in linux.
>> >> >
>> >> > Втр, 01 Фев 2011, Leigh J Halliwell писал(а):
>> >> >> I can find no 'clipread' and 'clipwrite' functions in the locales or 
>> >> >> in the
>> >> >> scripts.  Where are they?
>> >> >>
>> >> >> -----Original Message-----
>> >> >> From: [email protected]
>> >> >> [mailto:[email protected]] On Behalf Of chris burke
>> >> >> Sent: Tuesday, February 01, 2011 6:37 PM
>> >> >> To: Programming forum
>> >> >> Subject: Re: [Jprogramming] Clipboard in J701
>> >> >>
>> >> >> clipread/clipwrite. No "wd" since there is no wd in J701.
>> >> >>
>> >> >> On Wed, Feb 2, 2011 at 7:04 AM, Leigh J. 
>> >> >> Halliwell<[email protected]>
>> >> >> wrote:
>> >> >>> Dear J Forum:
>> >> >>>
>> >> >>> How does one use the Windows clipboard in J701?  What has replaced
>> >> >>> wdclipread and wdclipwrite, so that I can pass data to and from J 
>> >> >>> with the
>> >> >>> clipboard?  Thanks.
>> >> >> ----------------------------------------------------------------------
>> >> >> For information about J forums see http://www.jsoftware.com/forums.htm
>> >>
>> >> ----------------------------------------------------------------------
>> >> For information about J forums see http://www.jsoftware.com/forums.htm
>> >
>> > --
>> > regards,
>> > ====================================================
>> > GPG key 1024D/4434BAB3 2008-08-24
>> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to