Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Changing control order? Date: Tue, 18 Nov 2014 16:06:56 +0100 Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: individual.net h8h/RBoPNqXAI8SeBfe62AefNCfSg9fblDlxjFhaq5mbhsj+8= Cancel-Lock: sha1:fNSTbKg44brk3Raly1RgwFC6qxY= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:7436 > We need to swap width and height and where is the problem? local nWidth as int local nHeight as int nWidth := oDCCtrl1:Size:Width nHeight := oDCCtrl1:Size:Height oDCCtrl1:Size := Dimension{ oDCCtrl2:Size:Width, oDCCtrl2:Size:Height } oDCCtrl2:Size := Dimension{ nWidth, nHeight } The positions need to be recalculated - but this is to you, it should be not too much complicated to make these calculations. Wolfgang --