For Programmers: Free Programming Magazines  


Home > Archive > VC Language > May 2006 > A Question on RichEdit Control









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 A Question on RichEdit Control
Polaris

2006-05-31, 7:15 pm

Hi Experts:

Is there a way to tell exactly how many chars a RichEdit Control can display
(no
scroll bars)? The Font used may not be fixed width font.

Thanks in advance!
Polaris




Arnaud Debaene

2006-05-31, 7:15 pm


"Polaris" <etpolaris@hotmail.com> a écrit dans le message de news:
usEyTgPhGHA.1244@TK2MSFTNGP04.phx.gbl...
> Hi Experts:
>
> Is there a way to tell exactly how many chars a RichEdit Control can
> display (no
> scroll bars)? The Font used may not be fixed width font.


If you aren't using a fixed font, of course you can't, since the number of
characters that can fit into the RichEdit control before scroll bars are
needed depends on the actual characters in the string. (with a non
fixed-width font, the witdh of each char depends of the char itself, and may
depends on the chars before and after).

Arnaud
MVP - VC


Polaris

2006-05-31, 7:15 pm

Thanks, that makes sense.
Polaris

"Arnaud Debaene" <adebaene@club-internet.fr> wrote in message
news:%23nQ878PhGHA.3924@TK2MSFTNGP03.phx.gbl...
>
> "Polaris" <etpolaris@hotmail.com> a écrit dans le message de news:
> usEyTgPhGHA.1244@TK2MSFTNGP04.phx.gbl...
>
> If you aren't using a fixed font, of course you can't, since the number of
> characters that can fit into the RichEdit control before scroll bars are
> needed depends on the actual characters in the string. (with a non
> fixed-width font, the witdh of each char depends of the char itself, and
> may depends on the chars before and after).
>
> Arnaud
> MVP - VC
>
>



Sponsored Links







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

Copyright 2008 codecomments.com