Author:Rinovo
Posted: Wed Sep 09, 2015 2:53 pm (GMT+1)
Hello!
When UserControl is initialized like this it works.
But i need to initialize it into my Modal dialog.
But when opening userControl data menu data doesn't apear.
I tried to do like this :
CallBack seems to work, when i try to open menu it initializes but somewhere in middle of setting data it doesn't work.
Problem might be somewhere in callBack. Not sure why it worked in DGModalDialog and not in DG::ModalDialog.
CallBack:
callBackRec is giving errors not sure why and how does it works
Posted: Wed Sep 09, 2015 2:53 pm (GMT+1)
Hello!
Code: |
DGModalDialog (ACAPI_GetOwnResModule (), UserControl, ACAPI_GetOwnResModule (), UserControl_Handler, (DGUserData) &numItems); |
When UserControl is initialized like this it works.
But i need to initialize it into my Modal dialog.
Code: |
DG::ModalDialog (ACAPI_GetOwnResModule (), dialogResId, ACAPI_GetOwnResModule()), |
But when opening userControl data menu data doesn't apear.
I tried to do like this :
Code: |
UC257SetUserData (dialogID, Itm, (DGUserData)&numItems); UC257SetCallBack (dialogID, Itm, UserControlCallBack); DGSetItemValLong (dialogID, Itm, 1); |
CallBack seems to work, when i try to open menu it initializes but somewhere in middle of setting data it doesn't work.
Problem might be somewhere in callBack. Not sure why it worked in DGModalDialog and not in DG::ModalDialog.
CallBack:
Code: |
void CCALL UserControlCallBack (UC257CallBackRec* callBackRec) { if (callBackRec->action == ACT_GETLISTSIZE || callBackRec->action == ACT_GETITEMSIZE) FillGetListSize (callBackRec, false); else if (callBackRec->action == ACT_GETLIST || callBackRec->action == ACT_GETITEM) FillGetList (callBackRec, false); return; } |
callBackRec is giving errors not sure why and how does it works