1. Attn: David C.

David

Is it possible to *globally* change the font that
a windows prog uses so that all windows\controls
opened by the prog all use the same font? (i.e.
for text in edit controls, button text etc.)

Thanks

Terry

new topic     » topic index » view message » categorize

2. Re: Attn: David C.

Terry wondered:

> Is it possible to *globally* change the font that
> a windows prog uses so that all windows\controls
> opened by the prog all use the same font? (i.e.
> for text in edit controls, button text etc.)

I'd suggest making your own version of Create, such as:

   function Create( ... )
      -- create, and set font for control
      integer id

      -- create the control
      id = create( ... )

      -- set the font for the control
      setFont( id, "Verdana", 10, Normal )

      return id

   end function

Hope this helps!

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

3. Re: Attn: David C.

"David Cuny" wrote:

> Terry wondered:
>
> >> Is it possible to *globally* change the font that
> >> a windows prog uses so that all windows\controls
> >> opened by the prog all use the same font? (i.e.
> >> for text in edit controls, button text etc.)
>
> >I'd suggest making your own version of Create, such as:
>
> >   function Create( ... )
> >      -- create, and set font for control
> >      integer id
>
> >      -- create the control
>  >     id = create( ... )
>
> >      -- set the font for the control
> >      setFont( id, "Verdana", 10, Normal )
>
> >      return id
>
> >   end function
>
> >Hope this helps!
>
> >-- David Cuny

Thanks David.
Shall I assume that this means *no* to the original question, and that I
have to set the font for each control separately?

All the best

Terry

new topic     » goto parent     » topic index » view message » categorize

4. Re: Attn: David C.

Terry wrote:

> Shall I assume that this means *no* to the original question,
> and that I have to set the font for each control separately?

Yes, but the Control() wrapper seems to do the trick.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu