Type: Integer
Returns an integer representing the text size selection the user has made from the View->Text Size menu of IE 5 or later on Windows. The possible values for this integer and the menu selection they represent are listed below:
-1: Not detectable with this browser
5: Smallest
6: Smaller
7: Medium
8: Larger
9: Largest
Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the Enterprise Edition of BrowserHawk.
Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.
Example:
<% set bhObj = Server.CreateObject("cyScape.browserObj")
bhObj.SetExtProperties "TextSize"
bhObj.GetExtPropertiesEx
%>
<html>Text size is:
<%
if bhObj.Browser = "IE" and bhObj.Majorver >=5 and LCase(left(bhObj.Platform,3)) = "win" then
PropVal = bhObj.TextSize
If PropVal = 5 then
PropVal = "Smallest"
elseif PropVal = 6 then
PropVal = "Smallest"
elseif PropVal = 7 then
PropVal = "Medium"
elseif PropVal = 8 then
PropVal = "Larger"
elseif PropVal = 9 then
PropVal = "Largest"
end if
else
PropVal = "Not available with your browser/platform"
end if
response.write PropVal %>
</html>
Special notes for this property:
This property applies only to IE 5 and later on Windows 32 and 64-bit platforms
The return values are subject to change in a future version of BrowserHawk
If the user’s JavaScript is disabled this property will not be available.
See Also: