TD-18170: VisWinMove on child window distorts GUI

Report TD 5.x and 6.x bugs and possible workarounds.
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1100
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-18170: VisWinMove on child window distorts GUI

Post by Dave Rabelink » 10 Mar 2017, 13:59

Issue is found on:

TD6.0 and up (incl TD7.0 UPD1)

When a window is created as child on another form (SalCreateWindowEx) and that child window is then moved around using VisWinMove, very strange visuals happen.

Seems VisWinMove does not only move the child window but also the parent form canvas.
An example says more than words:

VisWinMoveIssue.png

See that the parent form is like copied into the place where the child window is created.
Funny is that you can really use the parent window there. The normal parent window seems to be locked.
In fact the form gets unusable. When you resize the parent screen all objects are repainted and then the form can be used again.

When using SetWindowPos (WinApi function) to move the child window or using the Sal functions, the window moves correctly without these issues.

Attached is the testcase:
(in TD42 format to show that it works like expected on that version and on TD6.x and up is does not. I have not checked TD 5.x)


VisWinMoveIssue.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

Igor Ivanovic
Site Admin
Site Admin
Croatia
Posts: 769
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

TD-18170: VisWinMove on child window distorts GUI

Post by Igor Ivanovic » 10 Mar 2017, 19:27

Really weird I must say!
Igor Ivanovic
Image

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 1 guest