Strange behavior with dialogs

Post Reply
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Strange behavior with dialogs

Post 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 .
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Strange behavior with dialogs

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: Strange behavior with dialogs

Post 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 .
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Strange behavior with dialogs

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply