Strange behavior with dialogs

Strange behavior with dialogs

Postby Jack » Thu Oct 19, 2017 6:30 am

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 .
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: Strange behavior with dialogs

Postby Antonio Linares » Thu Oct 19, 2017 8:50 am

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

Re: Strange behavior with dialogs

Postby Jack » Tue Oct 24, 2017 6:49 am

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 .
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: Strange behavior with dialogs

Postby Antonio Linares » Tue Oct 24, 2017 7:34 am

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 40 guests