Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / united colours of Rapid QLabel

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. united colours of Rapid QLabel
#1000
Posted by: 2003-06-17 17:21:55
Is it possible to have a single word in a QLabel in a different colour? I simply want the first word in red and the rest in black, for a disclaimer like this;

 Disclaimer: the values used in and the results calculated by this program are meant as indications only.
Message2. Re: united colours of Rapid QLabel
#1002
Posted by: guidance 2003-06-17 17:29:24
Seems can't.
Try use two qlabel or qrichedit in stead.
Message3. Re: united colours of Rapid QLabel
#1005
Posted by: 2003-06-18 18:05:01
Damg!

too bad, guess its two QLabels then  :(

I am using the DIM method of making my form rather than CREATE as I am using arrays of elements. So can you please tell me how to use a different font (and font colour and font effects) in the DIM form ?

Message4. Re: united colours of Rapid QLabel
#1011
Posted by: black_jack 2003-06-21 13:16:43
Try this

$TYPECHECK ON
$INCLUDE "RAPIDQ.INC"

Dim frmMain AS QFORM
frmMain.Font.Name = "Arial"
frmMain.Font.size = 10
frmMain.Font.Color = clBlue
frmMain.Font.AddStyles(fsBold,FsItalic)

Of course the name frmMain is an example, just replace it with any name you want.

With warmest regards, Danny
Message5. Re: united colours of Rapid QLabel
#1014
Posted by: guidance 2003-06-22 14:06:33
He meant display text with two different fonts in one form/dialogue. I'm afraid it can't be done by one qlabel.
Message6. Re: united colours of Rapid QLabel
#1015
Posted by: 2003-06-22 22:43:38
No Guidance I didn't as it happens .... just that using DIM rather than CREATE I was unsure of how to format it. Never thought it'd be   something.something.something   as I ever only saw single dot descriptors before

and thank you Danny :)

and thank you Guidance  :)  for the help AND the forum (rather better than the EZ Board one)
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥860.00 ·
 
 
¥410.00 ·
 
 
¥288.00 ·
 
 
¥918.00 ·
 
 
¥288.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0