Solved SP2: Wrong behavior of SalDisableWindow and SalBringWindow..

Report TD 5.x and 6.x bugs and possible workarounds.
Nils Jänicke
Germany
Posts: 423
Joined: 20 Sep 2017, 11:56
Location: Villingen-Schwenningen, Germany

SP2: Wrong behavior of SalDisableWindow and SalBringWindow..

Post by Nils Jänicke » 13 Jul 2016, 10:04

Hi,

SalDiableWindow has a wrong behavior on form windows as child of an MDI.
Calling SalDiableWindow(hWndForm) of the active form window brings another form window to top. SalEnableWindow(hWndForm) enables the window, but it goes not back to top and SalBringWindowToTop(hWndForm) has no effect. You must click twice on the form window to get it to top.

See the example and try the button.
The sequence
SalDiableWindow(hWndForm)
SalEnableWindow(hWndForm)
SalBringWindowToTop(hWndForm)

should have the form on top at the end of the code, but SalDiableWindow brings the other window to top but SalBringWindowToTop at the re-enabled window does not work.
Before SP2 it worked fine and without MDI it works too.

Nils
You do not have the required permissions to view the files attached to this post.

Nils Jänicke
Germany
Posts: 423
Joined: 20 Sep 2017, 11:56
Location: Villingen-Schwenningen, Germany

Re: SP2: Wrong behavior of SalDisableWindow and SalBringWindow..

Post by Nils Jänicke » 07 Oct 2016, 11:00

Hi mike,

did zou look into the code? The pushbuttons on the forms are disableling the form, then enables it again and want to bring it back to top. So I think klicking on the button should flicke a little bit and at the end it should look like before the click. But klicking on the button on frm2, the form gets into background and SalBringWindowToTop does not bring it back in top althogh it was enabled before. This is a bug.

Nils

Mike Vandine

Re: SP2: Wrong behavior of SalDisableWindow and SalBringWindow..

Post by Mike Vandine » 28 Oct 2016, 04:23

Hi Nils,

With my pre-release version of TD6.3 SP2 Update 1 I see:

The main form with two smaller forms, the bigger one being in the back. If I click on the disabel + enable + top pushbutton, nothing appears to happen. It looks identical to when I started.

So, I think this issue has already been addressed in this release.

Best regards,

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 6 guests