Solved TD-23383: Problem disabling a form

Report TD 5.x and 6.x bugs and possible workarounds.
erasmo
Brazil
Posts: 18
Joined: 21 Mar 2017, 13:17
Location: Campinas/SP - Brazil

TD-23383: Problem disabling a form

Post by erasmo » 07 Feb 2017, 11:58

Hello

I have an unusual behavior in TD63sp2up1 when disabling a form in an MDI, this form is sent back from other open forms. In TD61 (I use sp3) and earlier this behavior does not occur, disabled forms maintains their Z orders.

I put samples attached.
You do not have the required permissions to view the files attached to this post.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3437
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-23383: Problem disabling a form

Post by Dave Rabelink » 10 Feb 2017, 07:20

Hi Erasmo,

I have quickly hacked a workaround for this issue.
You are able to prevent (as one of the options) that a window changes it's Z-order.

The workaround here is that when a form is getting disabled, the Z-order change will be ignored and will keep the original position.
Have a look at frm2 implementation.

frm3 sends a msg to frm2 instructing to disable itself. On frm2 the Z-order change will be prevented until it is back enabled again when frm3 closes.
test_disable_form_WORKAROUND_TD63.zip
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 0 guests