Hi,
I have problem with dialog that reopen after an instruction oDlg:end()
My first dialog has a xbrowse and 3 buttons .
One of the button can show a detail of the actual record of the xbrowse .
When i click on the button in the dialog with the xbrowse, it open a second dialog with detail + a button to close and save the second dialog .
When a push on this close button, the dialog close but reopen directly after . If i click on the button a second time, it is good . .
Do you have an idea about this .
Thanks for your help .
Strange behavior with dialogs
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Strange behavior with dialogs
Jack,
> I have problem with dialog that reopen after an instruction oDlg:end()
You should not reopen a dialog that has been :End() ed
> I have problem with dialog that reopen after an instruction oDlg:end()
You should not reopen a dialog that has been :End() ed
Re: Strange behavior with dialogs
Antonio,
I solved my problem when i supress this instruction ==> SkinButtons()
If i d'nt use this function, i have no problem .
Any idea ?
Thanks .
I solved my problem when i supress this instruction ==> SkinButtons()
If i d'nt use this function, i have no problem .
Any idea ?
Thanks .
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Strange behavior with dialogs
Jack,
Function SkinButtons() modifies the Windows default procedure for some controls so they can be painted in different ways from the standard Windows way.
Unfortunately we have not implemented a function to revert this modification yet, so you are right, you can't use it if you want to reuse your dialogs.
Function SkinButtons() modifies the Windows default procedure for some controls so they can be painted in different ways from the standard Windows way.
Unfortunately we have not implemented a function to revert this modification yet, so you are right, you can't use it if you want to reuse your dialogs.