Indicates whether or not the field is pen-selectable.
Field.PenSelectable
|
Public AllSessions As OhioSessions Private Sub Form_Load() Set AllSessions = New OhioSessions MySession.Connect End Sub Private Sub cmdGetField_Click() Dim AllFields As OhioFields Set AllFields = MyScreen.Fields ' get the text plane strText = strText & Chr(aData(i)) Next i MsgBox _ "First Field" & vbNewLine
& _ End With End Sub Private Sub Form_Unload(Cancel As Integer) MySession.Disconnect End Sub Public AllSessions As OhioSessions Private Sub Form_Load() Set AllSessions = New OhioSessions MySession.Connect End Sub |
|
#define OHIO_UPDATE_HOST 0 BEGIN_DISPATCH_MAP(CMyView, CView) DISP_FUNCTION_ID(CMyView, "OnScreenChanged", 1, OnScreenChanged, VT_EMPTY, VTS_I4 VTS_I4 VTS_I4) END_DISPATCH_MAP() void CMyView::OnScreenChanged(long iUpdate,
long iStart, long iEnd) if ( iUpdate == OHIO_UPDATE_HOST ) IOhioFields AllFields = m_MyScreen.GetFields(); VARIANT vData; // get first row of data memcpy( szFieldData, pArray, 80 ); } " Start
= %d\n" } } |
|
try { PASSHIOLib.IOhioFields AllFields = screen.Fields; PASSHIOLib.IOhioField MyField = AllFields[1]; System.Array aData = (System.Array)MyField.GetData (PASSHIOLib.OHIO_PLANE.OHIO_PLANE_TEXT); String strFieldData = ""; for (int i = 0; i < aData.Length; i++) strFieldData += Convert.ToChar (aData.GetValue (i)); MessageBox.Show ("First Field" + "\n Start = " + MyField.Start + "\n End = " + MyField.End + "\n Length = " + MyField.Length + "\n Protected = " + MyField.Protected + "\n Hidden = " + MyField.Hidden + "\n Modified = " + MyField.Modified + "\n Numeric = " + MyField.Numeric + "\n Attribute = " + MyField.Attribute + "\n High Intensity = " + MyField.HighIntensity + "\n PenSelectable = " + MyField.PenSelectable + "\n String = " + MyField.String + "\n GetData = " + strFieldData); } catch (Exception ex) { MessageBox.Show ("Exception: " + ex); } |