Page 1 of 1

Strange behavior with dialogs

Posted: Thu Oct 19, 2017 6:30 am
by Jack
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 .

Re: Strange behavior with dialogs

Posted: Thu Oct 19, 2017 8:50 am
by Antonio Linares
Jack,

> 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

Posted: Tue Oct 24, 2017 6:49 am
by Jack
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 .

Re: Strange behavior with dialogs

Posted: Tue Oct 24, 2017 7:34 am
by Antonio Linares
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.