Lisp HUG Maillist Archive

CAPI newbie question: Clickable rectangle?

Hi -

total newbe question:

Whicgh CAPI classes do I need to subclass from when I want to create a rectangle (pinboard ? pane?) object that, when double-clicked, calls a callback function?

I so far tried to subclass from drawn-pinboard-object and from output-pane but although I specified 

:input-model '(((:button-1 :press)
                 test-callback))

the test-callback function never gets called.

I’d like to create something like the SAP Fiori Launchpad (see e.g. https://experience.sap.com/fiori-guidelines/FioriLaunchpad/17_Fiori_Launchpad-Home_Page.html )...

TIA!

Kind regards

 Frank

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: CAPI newbie question: Clickable rectangle?

Try '(((:button-1 :second-press) test-callback). ;-)

Frank Gönninger, Gönninger B&T
Thursday, May 7, 2015 5:09 AM
Hi -

total newbe question:

Whicgh CAPI classes do I need to subclass from when I want to create a rectangle (pinboard ? pane?) object that, when double-clicked, calls a callback function?

I so far tried to subclass from drawn-pinboard-object and from output-pane but although I specified

:input-model '(((:button-1 :press)
test-callback))

the test-callback function never gets called.

I’d like to create something like the SAP Fiori Launchpad (see e.g. https://experience.sap.com/fiori-guidelines/FioriLaunchpad/17_Fiori_Launchpad-Home_Page.html )...

TIA!

Kind regards

Frank

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Re: CAPI newbie question: Clickable rectangle?

Thanks, Camille and Jeffrey - works now. Not subclassing from drawn-pinboard-object did the trick - the output-pane is enough to handle everything.

Kind regards

  Frank

> Am 07.05.2015 um 12:09 schrieb Frank Gönninger, Gönninger B&T <frank.goenninger@goenninger.net>:
> 
> Hi -
> 
> total newbe question:
> 
> Whicgh CAPI classes do I need to subclass from when I want to create a rectangle (pinboard ? pane?) object that, when double-clicked, calls a callback function?
> 
> I so far tried to subclass from drawn-pinboard-object and from output-pane but although I specified 
> 
> :input-model '(((:button-1 :press)
>                 test-callback))
> 
> the test-callback function never gets called.
> 
> I’d like to create something like the SAP Fiori Launchpad (see e.g. https://experience.sap.com/fiori-guidelines/FioriLaunchpad/17_Fiori_Launchpad-Home_Page.html )...
> 
> TIA!
> 
> Kind regards
> 
> Frank


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:33 UTC