From: | Allan Odgaard |
Date: | 9 Aug 2001 at 20:06:54 |
Subject: | [amiga-c] Re: Keypress Interception |
Hello Twelvebullets,
> How do i go about setting up a commodity broker ??
Create a broker like this:
struct NewBroker mybroker = { NB_VERSION, ... };
CxObj *cx_broker = CxBroker(&mybroker, NULL);
Create a custom broker like this:
CxObj *cx_custom = CxCustom(BrokerFunction, NULL);
Attach your custom broker to the broker:
AttachCxObj(cx_broker, cx_custom);
Now activate it:
ActivateCxObj(cx_broker, TRUE);
This causes the BrokerFunction to be called with a CxMsg in A0 and the
CxObj in A1. You can then use DisposeCxMsg() to dispose messages (e.g.
pressing DEL).
Please see the docs for more info...
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Small business owners...
Tell us what you think!
http://us.click.yahoo.com/vO1FAB/txzCAA/ySSFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/