Can anyone help me with figuring out how to configure a table control on a CVI panel that allows panel scaling (via the panel attribute ATTR_SCALE_CONTENTS_ON_RESIZE), so that when you scale the panel up (or down) from one panel size to another (while logged in at one fixed standard screen resolution: either 1280 X 1024 or 1600 X 1200) that the table control holds its appearance (the way it was originally set up by the developer in the UIR file) as the panel is scaled via either the mouse strecthing the window corners or via the window-maximize button...?
It seems that the table control wants to shrink or expand its row heights and/or column widths relative to its table border frame in such a way that is different that the scaling of the frame itself as it shrinks and expands. I'm getting the feeling that it is font-face or font-size related, after spending many hours of playing with various table settings and font-faces to see if I can get my arms around how to keep a table reasonably nice-looking from one panel-size to another. The problem can happen on simple 2 X 2 cell tables, but is exacerbated when you have a larger M X N table, which is what I am using in my project.
In fact, I'd even settle for having the table control go from one appearance in one panel-size to a different appearance in another panel-size if I could be certain that as I went back and forth (during run-time) between those various resolutions that the table's appearance did not get "stuck" along the way and could not go back to the way it once looked like it started out looking at its initial resolution (at program start-up). Yes, this is happneing to me, I'm getting the impression that some font gets substituted along the way and it won't swap the font back again.
I've tried just about everything I could think of, including playing with the resolution adjustment setting when saving the panel while logged in at different screen resolutions, using scrollbars or not using scroll bars, setting row heights and column widths to be "explicit" sizes, etc. Arrrggghh! I'm about to give up.
Yes, I know the drill, so I am attaching a sample file, and I'm making it as simple as possible. This is the UIR file that comes straight from a shipping example from CVI.8.0 (autoscaling.prj), with only one modification to the entire project from me: I added an empty 2-row X 2-column table to the panel that does the scaling during run-time, and I stretched the panel-size a bit to make this new table fit on it, and I stretched it to an arbitrary aspect ratio, because that's a real world situation where I come from.
Notice that I set the table border frame so that it evenly fits at the edge of the bottom row and right column of the 2 X 3 cells. At run-time you will notice that if you shrink the panel size to be smaller than its start-up size, the table borders overlap the bottom row and right colomn. If you expand the panel larger its start-up size it adds some "padding" after the bottom row and right column. Larger M X N tables make this situation worse, so it must be cumulative, so I guessed it was font related.
Thanks if you can help, JB
--
To whom it may concern: My alias is also my nickname, I've had it since I was a (very) skinny basketball-playing teen. OK, so I've got a 38 inch waist now, but my hometown friends haven't shaken that appellation for me. I trust that you will someday be OK with that alias, as I have been with that nickname.