This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TivaWare: parameters for widget's callback



Hi, maybe it' s a silly question but: is it possible to pass parameters to graphic widget's callbacks or they must work with only global variables?

Reading Graphic Lirary user's guide (v. 2.0.1.11577, oct. 2013) I found that when using, for example, the RectangularButton define, I can specify the name/pointer of the callback. No problmes if the callback just works with global variables, but trying to specify parameters to use for a parametric function used as a callback, I get the compile error "#60 function call is not allowed in a constant expression".


Is there another place where to specify parameter or simply it can't be done? I also accept a "RTFM" as answer but please, clarify the pages to read. :D


Thanks, Mirko.