Sorry for my bad English
OK
I code a function for use a menu with xy vlfGuiAddMenuEx for perfect text alignement
where is handler ? How to use it in vlfGuiAddEventHandler? please help me
If i finish this function im release this source code on this forum
Read the dc6-7 src, I remember that this function is used to perform the operation of a menu...
I'm not sure, read the src posted by moonlight in the "d6 graphics" thread...
I think but i construct a new function for use a Menu with perfect alignement the function vlfGuiCentralMenu use the VLF_ALIGNEMENT_CENTER for text alignement i code a new function for use a x and y for personalize a Menu and use the param of vlfGuiCentralMenu but a dont know use param int (*handler)(int sel)
mmm...
I haven't understand very well what you want to do...
I've see that in the dc src this function is used to reset something parameters...
I've understand that you want to know how to build a function and use it with vlfGuiAddEventHandler, right?
how to use
int vlfGuiAddEventHandler(int buttons, int wait, int (* func)(void *), void *param);
-first arg: pass one of PSP_CTRL_* (or the extra ones defined in vlf.h)
-second arg: time to wait, -1 no delay.
-3rd arg the function that will be called when there is the event (a button has been pressed)
the prototipe of this function hase to be
int myHandlerFunc(void* something)
-the 4th arg is the param that should be passed to the handler func. if you don't need params set it to NULL.
nonono i know use the vlfGuiAddEventHandler but i dont know for use the param int (* handler)(int sel) in my function vlfGuiAddMenuEx Dark_Alex use this param on function vlfAddEventHandler for the vlfGuiCentralMenu