* Re: [Caml-list] using Graphics wit more than one window
@ 2005-01-16 10:10 Philippe Lelédy
2005-01-16 11:41 ` Jon Harrop
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Philippe Lelédy @ 2005-01-16 10:10 UTC (permalink / raw)
To: Caml-list
*Richard Jones wrote:
*
> You might want to migrate to a "proper" solution sooner rather than later.
As a teacher I'd like to be able to open an Ocaml Graphics window on each of my students display.
It's not possible with one instance of Ocaml, because Graphics.open_graph does 2 actions,
opening a socket with an X11 server and opening a window on this server -- further instance
of open_graph will only do the second action with the previous opened socket.
Perhaps will I have to rely on another mechanism to replicate windows over displays.
Ph. L
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] using Graphics wit more than one window
2005-01-16 10:10 [Caml-list] using Graphics wit more than one window Philippe Lelédy
@ 2005-01-16 11:41 ` Jon Harrop
2005-01-16 11:52 ` CamlIDL Jon Harrop
2005-01-17 2:10 ` [Caml-list] using Graphics wit more than one window Chris King
2 siblings, 0 replies; 5+ messages in thread
From: Jon Harrop @ 2005-01-16 11:41 UTC (permalink / raw)
To: caml-list
On Sunday 16 January 2005 10:10, Philippe Lelédy wrote:
> As a teacher I'd like to be able to open an Ocaml Graphics window on each
> of my students display. It's not possible with one instance of Ocaml,
> because Graphics.open_graph does 2 actions, opening a socket with an X11
> server and opening a window on this server -- further instance of
> open_graph will only do the second action with the previous opened socket.
>
> Perhaps will I have to rely on another mechanism to replicate windows over
> displays.
Marshalling is very handy as a way to botch things like this together.
Cheers,
Jon.
^ permalink raw reply [flat|nested] 5+ messages in thread
* CamlIDL
2005-01-16 10:10 [Caml-list] using Graphics wit more than one window Philippe Lelédy
2005-01-16 11:41 ` Jon Harrop
@ 2005-01-16 11:52 ` Jon Harrop
2005-01-17 2:10 ` [Caml-list] using Graphics wit more than one window Chris King
2 siblings, 0 replies; 5+ messages in thread
From: Jon Harrop @ 2005-01-16 11:52 UTC (permalink / raw)
To: caml-list
Can CamlIDL be used to generate type-unsafe bindings?
Cheers,
Jon.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] using Graphics wit more than one window
2005-01-16 10:10 [Caml-list] using Graphics wit more than one window Philippe Lelédy
2005-01-16 11:41 ` Jon Harrop
2005-01-16 11:52 ` CamlIDL Jon Harrop
@ 2005-01-17 2:10 ` Chris King
2 siblings, 0 replies; 5+ messages in thread
From: Chris King @ 2005-01-17 2:10 UTC (permalink / raw)
To: Philippe Lelédy; +Cc: Caml-list
On Sun, 16 Jan 2005 11:10:59 +0100, Philippe Lelédy <phl@leledy.org> wrote:
> As a teacher I'd like to be able to open an Ocaml Graphics window on each of my students display.
Would running a VNC server on your computer and a VNC client on each
of the students' computers fit the bill?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] using Graphics wit more than one window
2005-01-11 10:45 Martin Willensdorfer
@ 2005-01-11 11:25 ` Richard Jones
0 siblings, 0 replies; 5+ messages in thread
From: Richard Jones @ 2005-01-11 11:25 UTC (permalink / raw)
To: Martin Willensdorfer; +Cc: O'Caml Mailing List
On Tue, Jan 11, 2005 at 05:45:02AM -0500, Martin Willensdorfer wrote:
> Hi all!!
>
> Can anyone tell me if it is possible to open two graphic windows in ocaml? I
> would like to have something like a popup window that shows additional
> information when clicking on specific regions in the initial graphics
> windows.
You might want to migrate to a "proper" solution sooner rather than
later. After all, you might also soon want to add buttons and menus.
Have a look at lablgtk2, here:
http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
It supports a very capable canvas widget.
Rich.
--
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-01-17 2:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-16 10:10 [Caml-list] using Graphics wit more than one window Philippe Lelédy
2005-01-16 11:41 ` Jon Harrop
2005-01-16 11:52 ` CamlIDL Jon Harrop
2005-01-17 2:10 ` [Caml-list] using Graphics wit more than one window Chris King
-- strict thread matches above, loose matches on Subject: below --
2005-01-11 10:45 Martin Willensdorfer
2005-01-11 11:25 ` [Caml-list] " Richard Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox