W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 1998

Re: changing double-click and single-click actions (fwd)

From: Irene VATTON <Irene.Vatton@imag.fr>
Date: Mon, 12 Jan 1998 12:38:05 +0100
Message-Id: <199801121138.MAA09932@tahiti.inrialpes.fr>
To: sultan@eig6.unige.ch
cc: www-amaya@w3.org
In-reply-to: Your message of Thu, 08 Jan 1998 17:32:41 +0100."
> Hi,
> Could you please tell me if there's a simple solution for
> changing the double-click and single-click actions so that
> following a link is activated by a single click.
> Is a change in "void DoubleClick..." enough or are there
> other problems ?
> Thank you
> Hassan

The solution is in HTML.A file. You have to change in this file:
	ElemActivate.Pre -> DoubleClick;
	ElemSelect.Pre -> DoubleClick;

I had never tried it, but I should work.
To go further, if you want to protect documents form any modification,
you have to remove some menu entries in EDITOR.A and of course corresponding
code in source files and force read only mode for each loaded document by
adding the event declarion in HTML.A file:
	DocOpen.Post -> DocumentOpened;
and corresponding code in init.c
#ifdef __STDC__
void                DocumentOpened (NotifyDialog * event)
#else  /* __STDC__ */
void                DocumentOpened (event)
NotifyDialog       *event;

#endif /* __STDC__ */
  /* set read only mode */
  TtaSetDocumentAccessMode (document, 0);

Please see developer's corner in http://www.w3.org/Amaya/User/Overview.html
for more information.
I'm sure many people will be interested by your experimentation.
Received on Monday, 12 January 1998 06:38:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:18 UTC