Simple question for Delphi Richedit

Updated on technology 2024-04-05
7 answers
  1. Anonymous users2024-02-07

    Use an opendialog control.

    I write it in a button.

    procedure : tobject);

    varstrlist: tstringlist;Array of strings.

    i: integer;

    beginif then

    i:= 0;

    strlist:= ;

    while i < do to the array.

    i:= i + 1;

    end;end;

  2. Anonymous users2024-02-06

    It's better for beginners to practice on their own, right?

  3. Anonymous users2024-02-05

    If the length of the string A b does not exceed the width of richedit, you can output them in one line as long as you add them separately.

    For color, you can select a line and then modify the properties of the selected text.

    procedure : tobject);

    var{}i,m,k:integer;

    a,b:string;

    begina:='cxzcxcxcx';

    b:='cvbcbvcxbvcb';;;

    m:=1;Modify the properties of line 2.

    k:=0;for i:=0 to m-1 do

    k:=k+length(;The length of the end of line character is 2:=k;

    length(;

    clred;The color of hope.

    end;

  4. Anonymous users2024-02-04

    Line break: a + 13 + b

    Color: To give you an idea, richedit can only change the color of the selected string, focusing on the use of sellength, selstart, and selattributes.

  5. Anonymous users2024-02-03

    It is not possible that RTF and Word are not fully compatible, they are two different rich text.

    Saving Word as Guess RTF will lose a lot of formatting.

  6. Anonymous users2024-02-02

    :=clred;

    It is to turn the selected part of richedit into red, if it is a chat tool, you can write it like this when receiving a message: =length(;

    the messages you receive;

    length(the message you received);

    clred;

  7. Anonymous users2024-02-01

    sendmessage with a return value, look at msdn, about em scroll, the low bit of its return value word is the number of scrolls, as you mentioned, once sendmessage, scroll once, to the bottom it returns scrolling 0 times, the program ** example is as follows:

    varn : integer;

    n := sendmessage...

    if n and $ffff = 0 thenshowmessage( 'In the end' );

    or if longrec(n).words[0] = 0 then

    showmessage...

Related questions
5 answers2024-04-05

Do you want to ask a faint thing?

There are several answers: >>>More

5 answers2024-04-05

The tragedy of the commons means that people overuse public resources, which leads to the depletion of resources. >>>More

1 answers2024-04-05

Examples of white lies are as follows:

White Lie Example One: >>>More

10 answers2024-04-05

Go to the Internet to check, if you can't find it, make it up yourself!

21 answers2024-04-05

For you, being the son of your grandmother's brother's son is a kind of relationship (right?). Actually, you have to push the name down from the top >>>More