Ariane Soft PPL2 Pocket Programming DataMite
  #1  
Old 06-21-2009, 04:41 PM
gpic gpic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 5
Default Memo: change color of selected text

Hi all!

Quote:
Edit_LoadFromFile(MyMemo$, AppPath$ + "ansi.txt");
Edit_SetSelStart(MyMemo$, 0);
Edit_SetSelLength(MyMemo$, 5);
Whereby change color of selected text?


Thank's.
p.s. Sorry for my bad english.
Reply With Quote
  #2  
Old 06-21-2009, 10:29 PM
Kobus Kobus is offline
Senior Member
 
Join Date: Feb 2009
Location: Spain
Posts: 141
Default

Hello gpic,

Welcome to the forum and don't excuse yourself for your English.

When you catch the selection in a variable and then use some code like:
SetFontColor(variable$, 1118481);//In this case 1118481 is the color number. Pick the correct color number from any control in the .ppl file that is created when you use the visual form builder.

This is my post no. 100 and it would be fun if I finally was able to add something usefull to this forum.

In case this is of no help () be sure that one of the clever guys will jump in.

Succes,
Helen.
Reply With Quote
  #3  
Old 06-21-2009, 10:49 PM
gpic gpic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 5
Default

Quote:
Originally Posted by Kobus View Post
Hello gpic,

Welcome to the forum and don't excuse yourself for your English.

When you catch the selection in a variable and then use some code like:
SetFontColor(variable$, 1118481);//In this case 1118481 is the color number. Pick the correct color number from any control in the .ppl file that is created when you use the visual form builder.

This is my post no. 100 and it would be fun if I finally was able to add something usefull to this forum.

In case this is of no help () be sure that one of the clever guys will jump in.

Succes,
Helen.
Hello Helen.
Thank you for advice and congratulations with post #100 =)
I'm tried this function before posting there, but it changed color of all text -not selected text

Quote:
Edit_LoadFromFile(MyMemo$, AppPath$ + "ansi.txt");
Edit_SetSelStart(MyMemo$, 0);
Edit_SetSelLength(MyMemo$, 5);
SetFontColor(MyMemo$, 255);
Attached Thumbnails
Click image for larger version

Name:	2009-06-09_02-47_My Form.png
Views:	261
Size:	5.0 KB
ID:	238  
Reply With Quote
Reply

Tags
change color

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd