|
Welcome to the GSM-Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Only registered members may post questions, contact other members or search our database of over 8 million posts. Registration is fast, simple and absolutely free so please - Click to REGISTER! If you have any problems with the registration process or your account login, please contact contact us . |
|
Register | FAQ | Donate | Forum Rules | Root any Device | ★iPhone Unlock★ | ★ Direct Codes ★ | Direct Unlock Source |
GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
| LinkBack | Thread Tools | Display Modes |
03-07-2012, 09:22 | #1 (permalink) |
Freak Poster Join Date: Jul 2011 Location: Australia/Melbourne
Posts: 122
Member: 1610809 Status: Offline Sonork: 100.1616347 Thanks Meter: 23 | how to change richedit selection color help me pleas uses Richedit; how to change richedit selection color select is black, i need blue like Tmemo br |
03-07-2012, 14:57 | #2 (permalink) |
No Life Poster Join Date: Sep 2005 Location: Resign
Posts: 525
Member: 177036 Status: Offline Thanks Meter: 934 | SelStart := GetTextLen; SelAttributes.Size := 10; //add one unformatted line SelText := 'test1' + #13#10; //add some normal font text //SelText := 'Formatted lines in RichEdit' + #13#10; SelText := 'test2'; ///SelAttributes.Size := 10; //add bold + red SelAttributes.Style := [fsBold]; SelAttributes.Color := clRed; SelText := ':'; SelAttributes.Style := [fsBold]; SelAttributes.Color := clBlue; SelText := 'test2'; //only bold SelAttributes.Color := clGreen; SelText := 'test3:'; /////////// //add italic + blue SelAttributes.Style := [fsbold]; SelAttributes.Color := clpurple; SelText := 'test4'; //new line SelText := #13#10; //add normal again SelAttributes.Style := [fsItalic]; SelAttributes.Size := 10; SelAttributes.Color := cllime; SelText := ''; neXt time USE GOOGLE BEFORE MAKING LAZY THREAD LIKE THIS |
The Following User Says Thank You to darmiles For This Useful Post: |
03-07-2012, 15:09 | #3 (permalink) |
No Life Poster Join Date: Sep 2005 Location: Resign
Posts: 525
Member: 177036 Status: Offline Thanks Meter: 934 | procedure TForm1.Button1Click(Sender: TObject); BEGIN with richEdit1 do begin Richedit1.clear; SelStart := GetTextLen; SelAttributes.Size := 10; //add one unformatted line SelText := 'MY NAME IS DARWIN' + #13#10; //add some normal font text /////SelText := 'LAZY TEAM' + #13#10; SelText := 'DARWIN' + #13#10; //bigger text ///SelAttributes.Size := 10; //add bold + red SelAttributes.Style := [fsBold]; SelAttributes.Color := clRed; SelText := 'DARMILES'; SelAttributes.Style := [fsBold]; SelAttributes.Color := clBlue; SelText := ''+ #13#10; //only bold SelAttributes.Color := clGreen; SelText := 'LEVEL5TEAM'; /////////// //add italic + blue SelAttributes.Style := [fsbold]; SelAttributes.Color := clpurple; SelText := 'GSMHOSTING'; //new line SelText := #13#10; //add normal again SelAttributes.Style := [fsItalic]; SelAttributes.Size := 10; SelAttributes.Color := cllime; SelText := ''; SelAttributes.Size := 10; SelAttributes.Style := [fsItalic]; SelAttributes.Color := clBlue; SelText := ''#13#10; SelText :=''; richedit1.lines.add(' '); SelAttributes.Size := 10; SelAttributes.Style := [fsbold]; SelAttributes.Color := clfuchsia; SelText := 'TEST1'#13#10; end; end; procedure TForm1.BitBtn1Click(Sender: TObject); begin with richEdit1 do begin Richedit1.clear; SelStart := GetTextLen; SelAttributes.Size := 10; //add one unformatted line SelText := 'MY NAME IS DARWIN' + #13#10; //add some normal font text /////SelText := 'LAZY TEAM' + #13#10; SelText := 'DARWIN' + #13#10; //bigger text ///SelAttributes.Size := 10; //add bold + red SelAttributes.Style := [fsBold]; SelAttributes.Color := clRed; SelText := 'DARMILES'; SelAttributes.Style := [fsBold]; SelAttributes.Color := clBlue; SelText := ''+ #13#10; //only bold SelAttributes.Color := clGreen; SelText := 'LEVEL5TEAM'; /////////// //add italic + blue SelAttributes.Style := [fsbold]; SelAttributes.Color := clpurple; SelText := 'GSMHOSTING'; //new line SelText := #13#10; //add normal again SelAttributes.Style := [fsItalic]; SelAttributes.Size := 10; SelAttributes.Color := cllime; SelText := ''; SelAttributes.Size := 10; SelAttributes.Style := [fsItalic]; SelAttributes.Color := clBlue; SelText := ''#13#10; SelText :=''; richedit1.lines.add(' '); SelAttributes.Size := 10; SelAttributes.Style := [fsbold]; SelAttributes.Color := clfuchsia; SelText := 'TEST1'#13#10; end; end; end. |
The Following User Says Thank You to darmiles For This Useful Post: |
03-07-2012, 18:11 | #5 (permalink) | |
Freak Poster Join Date: Jul 2011 Location: Australia/Melbourne
Posts: 122
Member: 1610809 Status: Offline Sonork: 100.1616347 Thanks Meter: 23 | Quote:
Thanks darmiles hehe | |
03-07-2012, 22:44 | #6 (permalink) | |
Freak Poster Join Date: Mar 2009
Posts: 234
Member: 984268 Status: Offline Thanks Meter: 150 | Quote:
This Procedure will Show [time] < clhighlight + String(s) < Color | |
The Following User Says Thank You to mustipusti For This Useful Post: |
Bookmarks |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
news headlines to gsm phone | mos | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 7 | 05-22-2016 11:42 |
How can I do a Welcome note for my 6110 a dosn't have any one ? | Viper | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 8 | 06-27-2015 11:57 |
How to add a language in 51xx/61xx | tati | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 8 | 05-21-2013 19:20 |
How to upload a new firmware... | Brand | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 8 | 06-08-2012 18:29 |
Copy from one 6110 to another | Leif Nielsen | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 1 | 06-10-1999 22:36 |
|