kevinle10@gmail.com wrote on Thu, 13 April 2006 11:07
Victorb,
Thanks for replying. Using Button:Ok() works for me.
On the second issue, the solution you proposed to come up with a custome OK-Cancel dlg and use across my app is also what I had in mind in the beginning. The problem is in place, we don't have a flexibity to change which OK-Cancel dialog to call. For example, delete a row in an ArrayCtrl which we get the confirmation for free. That's the reason why I asked for a way to overwrite those PromptOK() methods. The look like global function to me, but I have not traced the source code that deeply yet.
Any other idea? Thanks
Well, they are global functions. The only way that comes to mind is to do ArrayCtrl confirmations yourself - it is not that hard in fact (create your own menu for ArrayCtrl and call its appropriate methods).
Good that you remind that Prompts should be Chameleonized too...