Hi,
I think you're using a buggy version of button.js.
I've got working button examples here:
http://www.richardinfo.f2s.com/?menu=examples&node=3

Cheers,
Richard  :o

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)

----- Original Message -----
From: "Peter Curran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 02, 2001 4:56 PM
Subject: [Dynapi-Help] Dynapi GUI Buttons problem


> I asked about this just before Christmas, but didn't see any response. I'm
> going to try again, in case I missed something, 'cause I'm still stuck.
>
> I am trying to create a simple clickable button, with a text label, that I
> can write event handlers for. This seems like just about the simplest
> interactive widget imaginable, but I can't get it to work. I am using the
> dyapi.gui.button object as the base, but it doesn't work. Clicking on the
> text of the button does not result in an event that triggers the event
handler.
>
> If I put a wide border around the button, and click on the border, events
> happen as I expect. However, clicking directly on the text does not cause
> an event.
>
> I'd easily believe that I am doing something wrong, but the example -
> dynapi.gui.button.html in the examples directory - behaves exactly the
same
> way. In the largest button with a text label in that example, clicking
> directly on the text has no effect; clicking on the border around the
> button causes the button to grow, exactly as it is supposed to.
>
> So what I am doing wrong? Surely this is one of the most basic widgets
> possible. I can't imagine I am the only one who has tried to do this. Is
> there something special I have to do to make it possible to get events
from
> a label?
>
> Thanks for any help anyone can provide.
>
> --
> Peter Curran     Software Developer    Casebank Technologies Inc.
> [EMAIL PROTECTED]
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/dynapi-help
> ____________________________________________________________
> Get your free domain name and domain-based e-mail from
> Namezero.com. New!  Namezero Plus domains now available.
> Find out more at: http://www.namezero.com
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help

Reply via email to