RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IGetHTMLStyle.GetViewMode Method

Returns the preferred mode of an adapter field.

Pascal
function GetViewMode(const AAdapterMode: string): string;
C++
__fastcall AnsiString GetViewMode(const AnsiString AAdapterMode);

The AAdapterMode parameter can be used to request the style to be used when the adapter is a particular mode (e.g.; Insert). 

Adapter fields typically return one of the following values:

Value 
Meaning 
Input  
Display the adapter field as an input field, by default use the style returned by the GetInputStyle method.  
Display  
Display the adapter field as a read-only field, by default use the style returned by GetDisplayStyle.  
ToggleOnAccess  
Display as an input field in the end-user has modify rights, otherwise displays as a read-only field.  

Use the server-side script ViewMode property to get these values from adapter fields. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!