πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #190696

Re: Xnews Metrics Bug

#190696
From: Mike Yetto
Date: Sat, 16 Sep 2006 13:43
63 lines
4090 bytes
There I was, minding my own business, when
zziffle wrote...

> Ah, such a spirit of defeatism haunts our youth these days.
> 

Bite me little one.  

> Sure there's probably a few other apps that exhibit this
> behaviour.  Not many.  

Many. This phenomenon has been seen on many desktop interfaces, 
including Presentation Manager on OS/2.  The OS looses track of a 
window position and sticks it somewhere "over thereΒ™" until the 
position information is deleted and a default location and size is 
used by the OS.


> None other than xnews on my system at the
> moment.  But it actually is really easy to fix the code.

Until you've seen the code you have no idea how easy or hard it would 
be to fix it.  I've heard this many times from someone who just 
learned a little and thereby knows all.

> I forget the gory details right now, but there are a couple of 
> different windoze system calls for getting screen pixel 
> locations relative to the edges.  One set of calls references 
> the entire screen and another references the available desktop 
> real estate.  The difference is just about always the task bar. 
> XNews is reading/storing the top of the window position with the
> system calls that are relative to the available desktop.  But at
> initialization it is restoring the top position relative to the 
> screen area, hence up a taskbar width.  This behaviour goes 
> unnoticed in testing with the task bar down at the bottom 
> because then desktop top and screen top are the same.  The fix 
> is simple: adjust the calls so that the save and restore are 
> both using the same coordinate reference - either screen or 
> desktop (properly, desktop), but don't write in one and read it 
> back like the other. 
> 
> XNews is written in Delphi I do believe.  Now, if this problem
> of mixing up coordinate systems is entrenched in the Delphi
> libraries, the fix is a bit more challenging and involves making
> calls to detect the discrepency and adjusting the values written
> to the ini file.  You'd need to check horizontally as well for
> those odd balls who have their task bar on the left.  For
> completeness, if it was my baby, I'd also do a sanity check on 
> the ini metrics at startup and if they point to somewhere out in
> lala land, ignore them and go with defaults.
> 

When your "baby" is complete let us know.

> Adidas...
> 

    	Mike "New Balance to you" Yetto
-- 
"There is danger from all men. The only maxim of a free
government ought to be to trust no man living with power to
endanger the public liberty."
    - John Adams 
Technical Details
Message-ID: <Xns984062E506652uniquelyme@tomate.motzarella.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.motzarella.org!not-for-mail
References: <Xns983FA4B2D1544azzifflepost@24.64.223.211> <Xns983FEC2817E21uniquelyme@tomate.motzarella.org> <Xns983FD8DB9BB3Eazzifflepost@24.64.223.211>

Show Full Headers
Complete Article Headers
Message-ID: <Xns984062E506652uniquelyme@tomate.motzarella.org>
Subject: Re: Xnews Metrics Bug
Date: Sat, 16 Sep 2006 09:43:18 -0400
From: Mike Yetto <mike.yetto@nycap.invalid>
References: <Xns983FA4B2D1544azzifflepost@24.64.223.211> <Xns983FEC2817E21uniquelyme@tomate.motzarella.org> <Xns983FD8DB9BB3Eazzifflepost@24.64.223.211>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!news.motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: Trying to cut down
Lines: 63
X-Trace: U2FsdGVkX188zp95//MbJ9nmsopBguuJmCJrsfNqHJion1MKih+XNN9q/b4eiLPH/jVuxdKQj7JEVDz/8xZewnozJSF1g1TN6l9TrF8OAWmR3hFNlJIBzdC5wuPHHz9k5XeSLaxDI9spA0/ge4THUE23qEwk8qrMsi1IccrvCz7gJ/qW8urSkPiMclJ7uucamL+YhBI4aos=
X-Complaints-To: abuse@motzarella.org
NNTP-Posting-Date: Sat, 16 Sep 2006 13:43:18 +0000 (UTC)
X-No-Bananas: Yes
X-Face: |r>RlUD1uaj^+}lH:1x}DRPEVBE10?q; 6kK-z/g54Sm5un@|e'd;
 MBx>,mw4U_J{:@+2{^77p/rY\g%7gE$V,}ZT?e>5tttHXeodYk\'q1Jv5R1Y@297IYtjygnnPfR4'8>3c:<<bJtx#[<5rd-UP_F?\?j>[5:.5ViK#8o+?^D{hi=c0]5Z=6d,|`tq_:(C1(1`@FbN)Cj(]D*}z[o"<~cu!|Is\2(e#[-Fjeg_M7PS/@LG
User-Agent: Xnews/2006.08.24