[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Mar 29 08:57:42 2000 
Subject:Mouse Button Handling in Pop11 
From:Nick Arkell 
Volume-ID:1000329.01 

I have been trying to build draughts game in pop11 that uses the
graphical procedures provided by X Windows. I have managed to handle the
mouse move event and determine the position of the pointer, but I cannot
handle the mouse_button events:

The program is initialised with rc_start() and rc_setup_mouse(rc_window)
is called just in case. I then set up my handler procedure by the
following code:
	[^on_mouseclick]->rc_button_procedures;
	true->rc_mousing;

This sets up my procedure on_mouseclick(widget,event_type,button)
Unfortunatly, when I try to display the mouse buttton state I get
<external ptr> printed instead and in the terminal window I get:
;;; WARNING - ITEMS LEFT ON THE STACK AFTER CALLBACK BEING IGNORED
;;; INVOLVING 0 <procedure do_button_actions>

I have programmed GUI systems before, but am new to Unix/Linux and Pop11
I have searched the Teach/Ref/Help files with pop11 to no avail, can
anyone help?