Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Urs Eggmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Control Layout on Resizing Window Date: Tue, 22 Aug 2017 21:16:59 +0200 Lines: 56 Message-ID: References: <4b7d795e-1759-4081-a489-25b695612daf@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: individual.net aHZnpTOKZWlND25Og6gNAwuD50wbMEZsmK7e2G9r0QIR5uessn Cancel-Lock: sha1:47Ql9LBKeRK+YIS2y7n2vUA8/eI= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-EsetId: 37303A29ABFDDD63617D6A X-EsetScannerBuild: 34489 Xref: csiph.com comp.lang.clipper.visual-objects:10909 Hi Sebastian, Can you paint the Window how it should look before and after pressing button1 ans send mwe a screenshot to my mailadress: urs.eggmann@shinternet.ch Then I can understand your problem better. regards Urs schrieb im Newsbeitrag news:4b7d795e-1759-4081-a489-25b695612daf@googlegroups.com... I have a window that shows a filter subdatawindow (another datawindow with the filter controls). Some like that subdatawindow button1 bbrowser button2 button3 button4 The button1 shows/hides the subdatawindow (initially hide). When the subdatawindow is showed the controls below them (all the other controls) must be move down vertically to not overlap controls. And when the subdatawindow is hide then back to original positions. Until here all works i expected, i set: button1:OwnerAlignment:= PTR(_CAST, 0x00001100) bbrowser:OwnerAlignment:= PTR(_CAST, 0x00001100) button2:OwnerAlignment:= PTR(_CAST, 0x00001100) button3:OwnerAlignment:= PTR(_CAST, 0x00001100) button4:OwnerAlignment:= PTR(_CAST, 0x00001100) Now, i want that when the window is resized bbrowser also is resized and button2 and button3 moves to right: Then i try: button1:OwnerAlignment:= PTR(_CAST, 0x00001100) bbrowser:OwnerAlignment:= PTR(_CAST, 0x11111100) button2:OwnerAlignment:= PTR(_CAST, 0x00001111) button3:OwnerAlignment:= PTR(_CAST, 0x00001111) button4:OwnerAlignment:= PTR(_CAST, 0x00001100) This works fine until i press button1 because, in this case, bbrowser only must move down and not resize vertically. I try changing owner alignment before and after press de button1, also suspend and restore update on controls but no luck. Maybe my form to try to acoomplish that is wrong. I want to have the filter visible if the user wants to. I put the filter in the same window to don't hide part of the window with a floating filter window. I have test with a floating windows and works but is kind of ugly. ¿Someone do something like this? Regards. Sebastián