Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.fsmpi.rwth-aachen.de!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: Values in the window-editor are different from those in the resource Date: Wed, 31 Jul 2013 08:40:00 +0200 Lines: 41 Message-ID: References: <9272615a-062c-4dca-b313-f48a869a7792@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: individual.net WgETa/40IK29oVRdZXeHwwshae/lOzx61ezq5J7qhQ/K8Q2Xw= Cancel-Lock: sha1:69oFHmNrqk66n6G6btO3VIdjQS8= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:5595 Hi Stefan, > the size- and position-values in the resource-file are different from > those in the window-editor. Does anyone of you know the relationship > between those values? you shold look in the SDK. AFAIK this has something to do with the Pixel Positions parameter in the WED. If you set these to yes, your window will not scale with large fonts, but the control positions will be more accurate. If you set this to no, your window will scale, but positions are no so accurate. The difference lies in the generated code. The resource is the same for both settings: CONTROL "Nummer Angebot", _ANGEBOTSUBEDIT1_SC_ANGNR, "Static", WS_CHILD, 4, 5, 81, 11 but the init() method of the window differs. With Pixel Positions = yes this code will be generated: oDCSC_AngNr := FixedText{SELF,ResourceID{_ANGEBOTSUBEDIT1_SC_ANGNR,_GetInst()},Point{7, 387},Dimension{122, 18}} and with Pixel Positions to auto the following: oDCSC_AngNr := FixedText{SELF,ResourceID{_ANGEBOTSUBEDIT1_SC_ANGNR,_GetInst()}} I have spent a few minutes in the SDK searching for the difference, but since this is not my problem, I cannot spend more than a few minutes on it. Wolfgang --