property StatusBar.FormatAnchor(New as Boolean) as String
Specifies the visual effect for anchor elements in HTML captions.

TypeDescription
New as Boolean A Boolean expression that indicates whether to specify the anchors never clicked or anchors being clicked. 
String The HTMLPicture specifies the picture being associated to a key. It can be one of the followings: 
  • a string expression that indicates the path to the picture file, being loaded. 
  • a string expression that indicates the base64 encoded string that holds a picture object, Use the eximages tool to save your picture as base64 encoded format. 
  • A Picture object that indicates the picture being added or replaced. ( A Picture object implements IPicture interface ), 

If empty, the picture being associated to a key is removed. If the key already exists the new picture is replaced. If the key is not empty, and it doesn't not exist a new picture is added.

By default, the FormatAnchor(True) property is "<u><fgcolor=0000FF>#" that indicates that the anchor elements ( that were never clicked ) are underlined and shown in light blue. Also, the FormatAnchor(False) property is "<u><fgcolor=000080>#" that indicates that the anchor elements are underlined and shown in dark blue. The visual effect is applied to the anchor elements, if the FormatAnchor property is not empty. For instance, if you want to do not show with a new effect the clicked anchor elements, you can use the FormatAnchor(False) = "", that means that the clicked or not-clicked anchors are shown with the same effect that's specified by FormatAnchor(True). An anchor is a piece of text or some other object (for example an image) which marks the beginning and/or the end of a hypertext link. The <a> element is used to mark that piece of text (or inline image), and to give its hypertextual relationship to other documents. The control fires the AnchorClick event to notify that the user clicks an anchor element. This event is fired only if prior clicking the control it shows the hand cursor.  The AnchorClick event carries the identifier of the anchor, as well as application options that you can specify in the anchor element. The hand cursor is shown when the user hovers the mouse on the anchor elements.

The following VB sample shows "Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions":

With StatusBar1
	.BeginUpdate 
	.FormatAnchor(True) = "<b><u><fgcolor=FF0000> </fgcolor></u></b>"
	.VisualAppearance.Add 4,"c:\exontrol\images\border.ebn"
	.VisualAppearance.Add 5,"CP:4 1 1 -1 -1"
	.BackColorPanels = 83886080
	.Format = "1,2,3"
	.Panel(1).Text = "<a1>link 1</a>"
	.Panel(2).Text = "<a2>link 2</a>"
	.Panel(3).Text = "<a3>link 3</a>"
	.EndUpdate 
End With
The following VB.NET sample shows "Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions":
With AxStatusBar1
	.BeginUpdate 
	.set_FormatAnchor(True,"<b><u><fgcolor=FF0000> </fgcolor></u></b>")
	.VisualAppearance.Add 4,"c:\exontrol\images\border.ebn"
	.VisualAppearance.Add 5,"CP:4 1 1 -1 -1"
	.GetOcx().BackColorPanels = &H5000000
	.Format = "1,2,3"
	.get_Panel(1).Text = "<a1>link 1</a>"
	.get_Panel(2).Text = "<a2>link 2</a>"
	.get_Panel(3).Text = "<a3>link 3</a>"
	.EndUpdate 
End With
The following C++ sample shows "Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions":
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSTATUSBARLib' for the library: 'ExStatusBar 1.0 Control Library'

	#import "D:\\Exontrol\\ExStatusBar\\project\\Debug\\ExStatusBar.dll"
	using namespace EXSTATUSBARLib;
*/
EXSTATUSBARLib::IStatusBarPtr spStatusBar1 = GetDlgItem(IDC_STATUSBAR1)->GetControlUnknown();
spStatusBar1->BeginUpdate();
spStatusBar1->PutFormatAnchor(VARIANT_TRUE,L"<b><u><fgcolor=FF0000> </fgcolor></u></b>");
spStatusBar1->GetVisualAppearance()->Add(4,"c:\\exontrol\\images\\border.ebn");
spStatusBar1->GetVisualAppearance()->Add(5,"CP:4 1 1 -1 -1");
spStatusBar1->PutBackColorPanels(83886080);
spStatusBar1->PutFormat(L"1,2,3");
spStatusBar1->GetPanel(long(1))->PutText(L"<a1>link 1</a>");
spStatusBar1->GetPanel(long(2))->PutText(L"<a2>link 2</a>");
spStatusBar1->GetPanel(long(3))->PutText(L"<a3>link 3</a>");
spStatusBar1->EndUpdate();
The following C# sample shows "Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions":
axStatusBar1.BeginUpdate();
axStatusBar1.set_FormatAnchor(true,"<b><u><fgcolor=FF0000> </fgcolor></u></b>");
axStatusBar1.VisualAppearance.Add(4,"c:\\exontrol\\images\\border.ebn");
axStatusBar1.VisualAppearance.Add(5,"CP:4 1 1 -1 -1");
(axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColorPanels = 0x5000000;
axStatusBar1.Format = "1,2,3";
axStatusBar1.get_Panel(1).Text = "<a1>link 1</a>";
axStatusBar1.get_Panel(2).Text = "<a2>link 2</a>";
axStatusBar1.get_Panel(3).Text = "<a3>link 3</a>";
axStatusBar1.EndUpdate();
The following VFP sample shows "Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions":
with thisform.StatusBar1
	.BeginUpdate
	.FormatAnchor(.T.) = "<b><u><fgcolor=FF0000> </fgcolor></u></b>"
	.VisualAppearance.Add(4,"c:\exontrol\images\border.ebn")
	.VisualAppearance.Add(5,"CP:4 1 1 -1 -1")
	.BackColorPanels = 83886080
	.Format = "1,2,3"
	.Panel(1).Text = "<a1>link 1</a>"
	.Panel(2).Text = "<a2>link 2</a>"
	.Panel(3).Text = "<a3>link 3</a>"
	.EndUpdate
endwith