For Programmers: Free Programming Magazines  


Home > Archive > Clarion > February 2006 > pixel sizes..









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author pixel sizes..
Scott

2006-02-23, 3:55 am

I have C5.5 ABC application with a frame window, and two procedure
windows... i make a pannel on one of the window procedures and call the
sizes 462 pixels wide by 270 high. I make this same pannel on another
procdure in this application, and call for the same pixel size, but yet this
time, the pannel is way bigger..

What would cause this.? What could I be doing wrong?

Scott


simon.kempster@talk21.com

2006-02-27, 6:55 pm

I think, if I remember correctly, that window sizes are not specified
in pixels. They're specified in "dialog units" (sic), which is 1/8 the
height and 1/4 the width of the average size of the characters in the
current font. Hence the size of the window is dependent on which font
you've selected for the window. Check the properties of both windows.
Make them both have the same default font and they should then be the
same size.

Simon Kempster

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com