comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » button sizing, sun vs sgi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: button sizing, sun vs sgi [message #6999 is a reply to message #6910] Wed, 04 September 1996 00:00 Go to previous message
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
Jeff Hall wrote:
>
> I have developed an application on a Sun/Solaris,
> but when I run it on an SGI the buttons and text
> in the buttons are too big.
>
> There is also a sizing problem on the PowerMac.
>
> How can I control the button & font size of the
> widgets on the different platforms?

Sounds like something similar to the problem I was having
with different machines having different resolution fonts.
You can specify the font to be used for widgets (look
in the docs for the exact method), but the trick is knowing
which font point size to use.

My solution was:

The user can define a specified environment variable to
be either 10,12 or 14. If this env. var. exists and has
a sensible value, then that's the font size I use for
the widgets.

If the variable isn't set up properly, then I check the
value of !d.y_ch_size. If this is less than 10, then I
set the font size to 12, otherwise I set it to 10. This
appears to work and keep the widgets reasonably to a
similar size on 100 dpi and 75 dpi font workstations.


Tim
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: "El Nino" Text
Next Topic: format problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 10:45:15 PDT 2025

Total time taken to generate the page: 1.03092 seconds