Re: Size,Space,Fonts etc

new topic     » goto parent     » topic index » view thread      » older message » newer message

Euman,

Seems right to me. OK, it's a patch, but as long as it works, keep it. You
say it's not the pro way, but you can't go much farther -not until Windows
becomes open code, and I wouldn't recommend waiting for that!

I can think of two ways to do the pro job, granted the time and inclination:

One would be to write a structure that compiled all possible video modes,
all possible font sizes, all possible... you get the idea. Unworkable, since
(a) no one can tell what will come up next month, or next year, and (b)
infinite combinations in infinite diversity may be good for Vulcan
philosophy, but not for your program's size or performance.

The second requires not just a programmer but an artist: think 'variable',
think 'function of'. Make everything depend on what you detect, redesign
your interface on the fly, as the user ..ah.. uses it. I did it once with
Visual Basic. It takes a lot of code, and you mustn't forget a single detail
(link window resizing) or it will look decidedly unprofessional. But the
results are wonderful, everybody will be happy, and you'll be covered as
long as the API holds still.

Gerardo


----- Original Message -----
From: "Euman" <euman at bellsouth.net>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, June 23, 2001 4:43 AM
Subject: Re: Size,Space,Fonts etc


>
>
> What I decided to do was trace the program useing small font and then
large
>
> I found that even if a user had opted for a larger font on menu's
> that a program will return the same size for the menu based on
> the global windows font size scale. 16 is the height returned for
> small fonts and 19 is returned for large fonts.
> I realise this isnt insureing that this will work with all users
configurations
> but assume that *most* users either utilize the small or large that can be
> selected under properties/settings/advanced/display/font size
> I then test for each of these by doing this:
>
> mnuextent = getCharExtent( mnu )
> gh = floor(mnuextent[2]) -- floor this just incase
>
> if gh = 16 then --Windows default small font
>    fh = 8
>    sh = 0
>    setRect( hWnd, centerX(678), centerY(548-fh), 678, 548-fh, True )
>
> elsif gh = 19 then -- Windows default large font
>    sh = 2
>    setRect( hWnd, centerX(678), centerY(548), 678, 548, True )
> end if
>
> based on this I re-setRect to handle the controls being smaller or larger
> i.e: TabItems, Listview Headers, Group boxes and non control text.
>
> Granted this is not the *pro* way to do this and is a very quick
> fix only to handle a specific Windowing app that seems to work.
>
> Euman
> euman at bellsouth.net
>
>
> ----- Original Message -----
> From: "Gerardo" <gebrandariz at YAHOO.COM>
> To: "EUforum" <EUforum at topica.com>
> Sent: Saturday, June 23, 2001 01:03
> Subject: Re: Size,Space,Fonts etc
>
>
> >
> >
> > Euman,
> >
> > Sorry. Yes, I misunderstood. I thought your intention was to force a
> > standard, unchanging font size.
> >
> > About Large Fonts: this is the way they work, there's no help for it. I
> > know. One of my PCs runs Win98 configured with users, and my wife, who
has
> > severe eyesight problems, has her config Large, Larger, Largest! She
sees
> > them OK, but half the texts, menus and controls stampede out of sight,
one
> > on top of the other, and so on. You can't even reach them with the mouse
> > pointer in a normal fashion.
> >
> > The only way around this could be managing your own font sizes and
faces:
> > upon detecting Large, apply the largest you consider appropriate,
choosing a
> > narrow, very clear, sans serif font face to replace the Win default.
Good
> > choices would be, in my experience, Arial (maybe even Arial Narrow), and
> > Comic Sans MS.
> >
> > Gerardo
> >
> >
> > ----- Original Message -----
> > From: "Euman" <euman at bellsouth.net>
> > To: "EUforum" <EUforum at topica.com>
> > Sent: Friday, June 22, 2001 3:12 AM
> > Subject: Re: Size,Space,Fonts etc
> >
> >
> > > Ok, that wasnt the best example but it does prove
> > > that the Group box when useing small fonts
> > > is a perfect fit around the rebar control and when
> > > in Large fonts that the top of the Group box is hidden
> > > behind the rebar control.
> > >
> > > Now, I hope you guys/gals think Im worried
> > > about one or two pixels difference.....
> > >
> > > It matters to me that visually the line is hidden
> > > useing Large fonts.
> > >
> > > Euman
> > > euman at bellsouth.net
> > >
> > >
> > > ----- Original Message -----
> > > From: "Euman" <euman at bellsouth.net>
> > > To: "EUforum" <EUforum at topica.com>
> > > Sent: Friday, June 22, 2001 00:31
> > > Subject: Re: Size,Space,Fonts etc
> > >
> > >
> > > >
> > > >
> > > > I think maybe you misunderstood,
> > > > I want to be able to have *cross* font size support.
> > > >
> > > > try this:
> > > >
> > > > include win32lib.ew
> > > >
> <snip>
>
> >
> >
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu