32 |
ImageSize property on 32 (specifies the size of the control' icons)
|
31 |
ImageSize property on 16 (default) (specifies the size of the control' icons)
|
30 |
How can I display the caption in mirror
Label1->Alignment = Exlabellib_tlb::AlignmentEnum::CenterAlignment; Label1->VAlignment = Exlabellib_tlb::VAlignmentEnum::MiddleAlignment; Label1->Caption = L"<b>mirror horizontal</b> text"; Label1->BackColor = RGB(255,255,255); Label1->Rotate = Exlabellib_tlb::HTMLRotateEnum::exHTMLMirror; |
29 |
How can I display vertically the caption
Label1->Alignment = Exlabellib_tlb::AlignmentEnum::CenterAlignment; Label1->VAlignment = Exlabellib_tlb::VAlignmentEnum::MiddleAlignment; Label1->Caption = L"<b>vertical</b> text"; Label1->BackColor = RGB(255,255,255); Label1->Rotate = Exlabellib_tlb::HTMLRotateEnum::exHTMLVertical; |
28 |
Does your control support text decorations
|
27 |
Does you control support padding
Label1->Appearance = Exlabellib_tlb::AppearanceEnum::Flat; Label1->VAlignment = Exlabellib_tlb::VAlignmentEnum::TopAlignment; Label1->Caption = L"<fgcolor FFFFFF><bgcolor 000000>left/right and top/bottom padding</bgcolor></fgcolor>"; Label1->BorderWidth = 4; Label1->BorderHeight = 4; Label1->BackColor = RGB(255,255,255); |
26 |
How can I display multiple-lines label
|
25 |
How can I disable the control
|
24 |
How can I display a percent bar over the control
// Click event - Occurs when the user presses and then releases the left mouse button over the control. void __fastcall TForm1::Label1Click(TObject *Sender) { Label1->BackgroundExtValue[Exlabellib_tlb::IndexExtEnum::exIndexExt5,Exlabellib_tlb::BackgroundExtPropertyEnum::exClientExt] = TVariant("25%"); Label1->BackgroundExtValue[Exlabellib_tlb::IndexExtEnum::exIndexExt5,Exlabellib_tlb::BackgroundExtPropertyEnum::exTextExt] = TVariant(Label1->BackgroundExtValue[Exlabellib_tlb::IndexExtEnum::exIndexExt5,Exlabellib_tlb::BackgroundExtPropertyEnum::exClientExt]); } Label1->Alignment = Exlabellib_tlb::AlignmentEnum::CenterAlignment; Label1->Caption = L"Command"; Label1->VAlignment = Exlabellib_tlb::VAlignmentEnum::TopAlignment; Label1->BackgroundExt = TVariant(String("bottom[4],left[4],right[4],bottom[16,pattern=0x000,frame=RGB(0,0,0)](left[50%,back=RGB(0,255,0),text=`<font ;6><sha ;;0>50%`,al") + "ign=0x11,pattern=0x006,patterncolor=RGB(0,128,0),frame=RGB(0,128,0)])"); Label1->BackgroundExtValue[Exlabellib_tlb::IndexExtEnum::exIndexExt5,Exlabellib_tlb::BackgroundExtPropertyEnum::exClientExt] = TVariant("75%"); Label1->BackgroundExtValue[Exlabellib_tlb::IndexExtEnum::exIndexExt5,Exlabellib_tlb::BackgroundExtPropertyEnum::exTextExt] = TVariant(Label1->BackgroundExtValue[Exlabellib_tlb::IndexExtEnum::exIndexExt5,Exlabellib_tlb::BackgroundExtPropertyEnum::exClientExt]); |
23 |
Is it possible to display an additional caption on the control's background
|
22 |
How can I display a pattern over the label
|
21 |
How can I display pictures
Label1->Alignment = Exlabellib_tlb::AlignmentEnum::CenterAlignment; Label1->HTMLPicture[L"pic1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif"); Label1->HTMLPicture[L"pic2"] = TVariant("c:\\exontrol\\images\\auction.gif"); Label1->Caption = L"text and pictures <img>pic1</img>,<img>pic2</img>,..."; |
20 |
How can I display icons
|
19 |
How can I specify a different foreground color for a portion of the caption only
Label1->BackColor = RGB(255,255,255); Label1->Caption = L"text <fgcolor FF0000>foreground</fgcolor> text"; |
18 |
How can I specify a different background color for a portion of the caption only
Label1->BackColor = RGB(255,255,255); Label1->Caption = L"text <bgcolor FF0000>background</bgcolor> text"; |
17 |
Does your control support subscript or superscript, in HTML captions
|
16 |
How can I center the text and underlined with a dot line
|
15 |
Is there anyway to get the dotline or solidline to extend across the entire width of the caption area when text is centre-aligned horizontally
Label1->WordWrap = true; Label1->Caption = L"<c>Name&Address<br><upline><dotline> <c><font Tahoma;8>DeliveryNotes</font>"; Label1->Alignment = Exlabellib_tlb::AlignmentEnum::LeftAlignment; Label1->BackColor = RGB(0,0,0); Label1->ForeColor = RGB(255,255,255); |
14 |
How can I show a thick frame around the label
|
13 |
How can I add text decorations ( shadow )
Label1->BackColor = RGB(255,255,255); Label1->WordWrap = true; Label1->BorderWidth = 2; Label1->BorderHeight = 2; Label1->Caption = TVariant(String("<font ;28><sha>shadow</sha><br><fgcolor=FFFFFF><sha 0>outline</sha><br><sha 0;;0>outline anti-aliasing</sha><br><sha 808080;8;0") + ">outline anti-aliasing</sha><br><sha 0;2;0>outline anti-aliasing</sha></font>"); |
12 |
How can I add text decorations ( outline )
Label1->BackColor = RGB(255,255,255); Label1->WordWrap = true; Label1->BorderWidth = 2; Label1->BorderHeight = 2; Label1->Caption = TVariant(String("<font ;28><out>outline</out><br><fgcolor=FFFFFF><out 0>outline</out><br><sha 0;;0>outline anti-aliasing</sha><br><sha 0;2;0>out") + "line anti-aliasing</sha></font>"); |
11 |
How can I add text decorations ( gradient )
|
10 |
Is it possible to display the control's tooltip using colord EBN objects
Label1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Label1->Caption = L"just hover the cursor over the control"; Label1->Alignment = Exlabellib_tlb::AlignmentEnum::CenterAlignment; Label1->Background[Exlabellib_tlb::BackgroundPartEnum::exToolTipAppearance] = 0x1ff0000; Label1->ToolTipText = L"This is just a text that's displayed when the user clicks and drags the thumb to a new position"; |
9 |
Is it possible to display the control's tooltip using EBN objects
Label1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Label1->Caption = L"just hover the cursor over the control"; Label1->Alignment = Exlabellib_tlb::AlignmentEnum::CenterAlignment; Label1->Background[Exlabellib_tlb::BackgroundPartEnum::exToolTipAppearance] = 0x1000000; Label1->ToolTipText = L"This is just a text that's displayed when the user clicks and drags the thumb to a new position"; |
8 |
How do I change the control's tooltip
|
7 |
Is it possible to display a colored EBN so the borders will be transparent
Label1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Label1->Appearance = Exlabellib_tlb::AppearanceEnum(0x1a88a58 | Exlabellib_tlb::AppearanceEnum::Bump); Label1->Caption = L"just the label's caption"; Label1->Alignment = Exlabellib_tlb::AlignmentEnum::CenterAlignment; |
6 |
Is it possible to display an EBN so the borders will be transparent
Label1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Label1->Appearance = Exlabellib_tlb::AppearanceEnum(0x1000000); Label1->Caption = L"just the label's caption"; Label1->Alignment = Exlabellib_tlb::AlignmentEnum::CenterAlignment; |
5 |
How do I put/resize/stretch a picture on the control's background
Label1->Picture = (IPictureDisp*)(Label1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")); Label1->PictureDisplay = Exlabellib_tlb::PictureDisplayEnum::Stretch; Label1->BorderWidth = 64; Label1->BorderHeight = 64; |
4 |
How can I change the control's font
/* Select the Component\Import Component...\Import a Type Library, to import the following Type Library: OLE Automation TypeLib: stdole2.tlb to define the namespace: Stdole_tlb */ //#include "STDOLE_TLB.h" Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont"); f->Name = L"Verdana"; f->Size = TVariant(long(12)); Label1->Font = (IFontDisp*)(f); Label1->Caption = L"just the label's caption"; Label1->BorderWidth = 8; Label1->BorderHeight = 8; |
3 |
How can I change the control's font
|
2 |
How do I change the control's foreground color
Label1->ForeColor = RGB(255,0,0); Label1->Caption = L"just the label's caption"; Label1->BorderWidth = 8; Label1->BorderHeight = 8; |
1 |
How do I change the control's background color
Label1->BackColor = RGB(255,0,0); |