How sepcially show key words

How sepcially show key words

Postby ShumingWang » Tue Oct 22, 2013 3:34 am

Hi,
Prg/exe app, How to says a text like 'FWH':

There is a working example in FWH/samples/testini3.prg #include "FiveWin.ch"function Main() local cEntries := StrTran( GetProfString( "Devices,FWH" ), Chr( 0 ), CRLF ) ...

Regards !
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 460
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: How sepcially show key words

Postby Antonio Linares » Tue Oct 22, 2013 10:56 am

Shuming,

Do you need them to be SAYs or is it fine to "paint" them ( TextOut() ) ?

In both cases, you have to do build them separately, using a different font and a different color.

In FWH Class TTxtEdit we do it to implement syntax highligthing (using TextOut() )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How sepcially show key words

Postby ShumingWang » Wed Oct 23, 2013 7:08 am

Antonio,
After runs a SQL search , get a result text, after stringtran() font and color., hilight searched key words in the text as diffrent font and color,like bbs.
I see, I have write codes myself.
Thank You!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 460
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 68 guests