[dba-Tech] Calculator

Drew Wutka dbatech at wolfwares.com
Fri Sep 3 10:12:11 CDT 2004


Glad it worked.

Just a little reverse engineering of window processes however, to see why I built that .exe in the first place.  If you build a VB program, you'll discover that a lot of the things you take for granted in a program window are not 'automatic'.  IE, if you resize a form, the controls don't resize automatically.  If you move a window and close it, the new dimensions/positions are not recorded.  So if you think about it, every program on your computer has to 'remember' it's last position/size.  It has to be stored somewhere.  Could be a .dat file, could be the registry (more then likely it's there), but then you have to figure out how it's actually stored.

I believe there are two main reasons for the window 'issues' that I have seen with size/position.  1, the registry is corrupt, or 2, something 'tricked' the program.  For #2, it can be anything from having multiple monitors, to switching to an extrememly small resolution momentarily. (Or moving a window partially off of the screen and closing it).

Either way, the values it uses to start up with are goofed.  That .exe was actually for windows that were completely off screen in Normal view, however, with a non resizable window, you have the same problem, so you were the first to confirm my 'theory' in fixing the issue.  Essentially the fix is you are manually changing the window size through API's, then normally closing the window, letting it's own code save the size/position.

Not sure why the normal view doesn't kick back down to size.

Drew

-----Original Message-----
From: dba-tech-bounces at databaseadvisors.com
[mailto:dba-tech-bounces at databaseadvisors.com]On Behalf Of Steven W.
Erbach
Sent: Friday, September 03, 2004 9:12 AM
To: Discussion of Hardware and Software issues
Subject: RE: [dba-Tech] Calculator


Drew,

That did it! I wondered whether the new window size setting would "stick" once I'd closed the Calculator and the MoveWindows program...but lo! and behold! they *did* stick!

I notice now that when I switch to the normal 4-function calculator that the window width stays the same. That is, the simpler calculator doesn't have a correspondingly smaller window size, although the height changes. But then when I change back to Scientific I see all the keys!

Gad! What a situation. Thanks, Drew.

Regards,
 
Steve Erbach
Scientific Marketing
Neenah, WI
920-969-0504
 
Security and Virus information:
http://www.swerbach.com/security


_______________________________________________
dba-Tech mailing list
dba-Tech at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-tech
Website: http://www.databaseadvisors.com





More information about the dba-Tech mailing list