RTF2-richtextcontrol (A97) by Stephen Lebans

C

Christof Hangkofer

Hi,

On the RTF2-richtextcontrol (A97) by Stephen Lebans there is an
automatical vertical scrollbar on the right side of the box. When the
text is lower than the box, there´s no toolbar visible. Is the text
higher, the toolbar is active. Is there a possibility to find out (per
API?), whether the srollbar just is active or not?
I tried it whith an api-function (getscrollbarstatus), but it did not
fuction.

With this method I want find out the real height of the formatted text
in the box.

Thank you for ideas an help,

Christof
 
C

Christof Hangkofer

hi Stephen,

your last answer does not appear in my newsreader:

You wrote: (height of the Text in RTF2-reports)
"Christof how about taking a look at the code behind the A2K report. It
shows you which properties expose the required WIdth and Height of the
control."

I found it only by google. Don´t know, why this happens!

The problem is, that I don´t have A2K: Therefore I cannot read the
structure.

Thank you very much.

Christof
 
S

Stephen Lebans

Christof did you even bother to look at the code behind any of the
reports included in the sample A97 MDB you downloaded? The code is
there, it is simply commented out. It shows you which props to access to
get the current height/width of the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Joined
Jul 15, 2005
Messages
2
Reaction score
0
Problem with Hyphenate in RTF2

Hi Stephen, Goran here
I am using your RTF2 control.

I need Justify Alignment in control (your control it works), but I need to Hyphenate some words at the end of the line, because the spaces betwen words are big with Justify alignment and it looks bad.

The question is:
How can I hyphenate some words at the end of the line?

Thanks
 
S

Stephen Lebans

My RTF2 class does not directly expose the HyphenateProc aplication
defined callback function. This is a very complex issue and I chose not
to directly support it as I did not want to spend tech support time in
this area.

If you want to try to implement the callback function yourself search
MSDN for HypehateProc.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top