Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #9794

Re: How to dispaly a part of a caption string in different color?

From "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: How to dispaly a part of a caption string in different color?
Date 2016-10-11 09:29 +0200
Organization A noiseless patient Spider
Message-ID <nti4c2$bsf$1@dont-email.me> (permalink)
References <85cd9d19-5bbb-4dbe-bfae-65885e8fe2ac@googlegroups.com> <da41f216-a0e4-4ecd-97b4-38ae2639da44@googlegroups.com>

Show all headers | View raw


I would say that the easiest and most flexible way is to use RTF text 
controls.

Arne Ortlinghaus
ACS Data Systems

"Mathias" <mathias.hakansson@consultec.se> schrieb im Newsbeitrag 
news:da41f216-a0e4-4ecd-97b4-38ae2639da44@googlegroups.com...
I have never seen a solution in VO, but there may be examples in C++. It's a 
case of "owner draw". Your program will have to paint the caption itself 
itstead of relying on windows standard. One version of MS office did this.

Found this MFC-sample with google...
http://www.codeproject.com/Articles/8313/CCustomBitmapButton-MFC-Bitmap-Button

/Mathias

Den måndag 10 oktober 2016 kl. 15:14:29 UTC+2 skrev Clifford Järnry:
> Hello.
>
> I tried to find some information on how to display a part of a Caption in 
> a different color in VO2.8sp4, but I have not found anything. Do anyone 
> have a solution?
> Example:
>
> SELF:Owner:Caption := "Write cString in red: "+cString+" and keep standard 
> color of the rest of the string."

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to dispaly a part of a caption string in different color? Clifford Järnry <clifford.jarnry@gmail.com> - 2016-10-10 06:14 -0700
  Re: How to dispaly a part of a caption string in different color? Mathias <mathias.hakansson@consultec.se> - 2016-10-10 23:46 -0700
    Re: How to dispaly a part of a caption string in different color? "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2016-10-11 09:29 +0200
  Re: How to dispaly a part of a caption string in different color? rkaplan328 <richard.d.kaplan@gmail.com> - 2016-10-13 09:32 -0700

csiph-web