FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Strange behavior with dialogs
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Strange behavior with dialogs
Posted: Thu Oct 19, 2017 06: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 .

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Strange behavior with dialogs
Posted: Thu Oct 19, 2017 08: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
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: Strange behavior with dialogs
Posted: Tue Oct 24, 2017 06: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 .

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Strange behavior with dialogs
Posted: Tue Oct 24, 2017 07: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

Continue the discussion