|
From: | Aarian P. Aleahmad |
Subject: | Argument Passing for CDKButton's Callback function |
Date: | Wed, 27 Jan 2016 19:26:15 +0330 |
User-agent: | Roundcube Webmail/0.7.2 |
Hi thereI've modified the "button.h", thus now you can implicitly pass arguments to the callback function of a CDKButton. You can set the argument prior to calling the function via setCDKButtonCBArgs macro and get the args using the getCDKButtonCDArgs macro, while you're inside the CB function. Since this feature is added implicitly using some macros, this version IS backward compatible with the previous versions of CDK.
Yours Truly Aarian,
button.c
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |