Looking for APIs for text box and Rich text box 
Author Message
 Looking for APIs for text box and Rich text box

Hi,

I want to get more properties about a text box or rich text box than what
VB currently provides. Could someone tell me what APIs I should try? Some
examples would be much appreciated.

Gilbert Wu



Sun, 17 Oct 1999 03:00:00 GMT  
 Looking for APIs for text box and Rich text box

This is a multi-part message in MIME format.

------=_NextPart_000_01BC554E.C32DCCE0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

More Properties Than TextBox Provides
You need one API call to get to the other properties for a textbox. Use =
SendMessage and the EM_* constants to access the other properties that =
Windows provides for textboxes.
    For instance, EM_GETLINE, EM_LINEFROMCHAR, etc... they're all in the =
API viewer.
    EM_GETLINE returns a string that contains all the text on a =
specified line. EM_LINEFROMCHAR returns a line number from a character =
index. If you want some more detail, e-mail me and I'll send you some =
examples.
    --
    -- Ben
    SiteBuilder Network Level 2
    Ben's VB5 Page -- This site has been Activated!
    http://www.{*filter*}highway.com/~psy/
    Requires IE3.01 or higher...
   =20
     gilbert Wu wrote in article =

    Hi,
    I want to get more properties about a text box or rich text box than =
what
    VB currently provides. Could someone tell me what APIs I should try? =
Some
    examples would be much appreciated.
   =20
   =20

------=_NextPart_000_01BC554E.C32DCCE0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML 3.2//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"Trident 4.71.0544.0"' name=3DGENERATOR>

</HEAD>
<BODY background=3Dhttp://www.{*filter*}highway.com/~psy/PaperBar.gif>
<P><FONT face=3DArial size=3D2><FONT face=3D"Arial Black"><FONT =
face=3D"" size=3D+2>More=20
Properties Than TextBox Provides</FONT></FONT></FONT>

<BLOCKQUOTE>
    <P><FONT face=3DArial size=3D2>You need one API call to get to the =
other=20
    properties for a textbox. Use SendMessage and the EM_* constants to =
access=20
    the other properties that Windows provides for textboxes.</FONT>
   =20
    <P><FONT face=3DArial size=3D2>For instance, EM_GETLINE, =
EM_LINEFROMCHAR, etc...=20
    they're all in the API viewer.</FONT>
   =20
    <P><FONT face=3DArial size=3D2>EM_GETLINE returns a string that =
contains all the=20
    text on a specified line. EM_LINEFROMCHAR returns a line number from =
a=20
    character index. If you want some more detail, e-mail me and I'll =
send you=20
    some examples.<BR>
    --<BR>
    <HTML><BODY><FONT size=3D2>-- Ben<BR>
    SiteBuilder Network Level 2<BR>
    Ben's VB5 Page -- This site has been Activated!<BR>
    <A=20
    =
href=3D"http://www.{*filter*}highway.com/~psy/">http://www.{*filter*}highway.com/~p=
sy/</A><BR>
    Requires IE3.01 or higher...<BR>
    </FONT></FONT>
   =20
    <P><FONT face=3DArial size=3D2> <EM><FONT color=3D#808080>gilbert=20


    <HTML><BODY>Hi,<BR>
    I want to get more properties about a text box or rich text box than =

    what<BR>
    VB currently provides. Could someone tell me what APIs I should try? =

    Some<BR>
    examples would be much appreciated.<BR>
    </FONT></EM></FONT></P>
   =20
</BLOCKQUOTE>
</BODY></HTML>

------=_NextPart_000_01BC554E.C32DCCE0--



Sun, 17 Oct 1999 03:00:00 GMT  
 Looking for APIs for text box and Rich text box

Use the VB5 CCE Costum Control edition it free on the web and allows you to
create new 32bits controls using existing ones.

                Marc Gaudet

P.S.: Microsoft got a lot of informations about it!



Fri, 22 Oct 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Colour Text Box/Class Wrapper for Rich Text Box

2. Newbie question: Rich Text Box vs. Text Box

3. help: formatting rich text box/text box

4. Rich Text Box vs. Text Box Scrolling

5. Rich Text Box or text box control

6. Rich Text Box: Can I remove text and keep multicolored text

7. Looking for a better rich text box control

8. Looking for Rich Text Box Control

9. Looking for a Rich Text Box -- For Free?!?

10. Looking for a better rich text box control

11. Looking for Rich Text Box Control

12. Still looking for a way to change VB4 Rich Text Box Left Margins

 

 
Powered by phpBB® Forum Software