FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How sepcially show key words
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How sepcially show key words
Posted: Tue Oct 22, 2013 03: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How sepcially show key words
Posted: 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
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: How sepcially show key words
Posted: Wed Oct 23, 2013 07: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

Continue the discussion