Add history to some dialog boxes
[wmaker-crm.git] / WINGs / wtextfield.c
index 70b3efe..e353ee6 100644 (file)
@@ -578,6 +578,13 @@ void WMSetTextFieldCursorPosition(WMTextField * tPtr, unsigned int position)
        }
 }
 
+unsigned WMGetTextFieldCursorPosition(WMTextField *tPtr)
+{
+       CHECK_CLASS(tPtr, WC_TextField);
+
+       return tPtr->cursorPosition;
+}
+
 void WMSetTextFieldNextTextField(WMTextField * tPtr, WMTextField * next)
 {
        CHECK_CLASS(tPtr, WC_TextField);