Difference between revisions of "Text Tips"
From FM Plugin Wikipedia
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
{| align="right" | {| align="right" | ||
| __TOC__ | | __TOC__ | ||
Line 7: | Line 6: | ||
This page is about editing text passed from FileMaker to your plugin. | This page is about editing text passed from FileMaker to your plugin. | ||
− | =Text | + | =Text Public Functions= |
*[[ulong GetSize() const]] | *[[ulong GetSize() const]] | ||
Latest revision as of 10:00, 24 June 2009
This page is about editing text passed from FileMaker to your plugin.
Text Public Functions
- void Assign ( const char *s, Encoding encoding = kEncoding_Native )
- void AssignWide ( const wchar_t *s )
- void AssignUnicode ( const ushort *s )
- void AssignWithLength ( const char *s, ulong strlength, Encoding encoding = kEncoding_Native )
- void AssignWideWithLength ( const wchar_t *s, ulong strlength )
- void AssignUnicodeWithLength ( const ushort *s, ulong strlength )
- void SetText ( const Text &other, ulong position = 0, ulong size = kSize_End )
- void AppendText ( const Text &other, ulong position = 0, ulong size = kSize_End )
- void InsertText ( const Text &other, ulong position )
- void DeleteText ( ulong positionToDelete, ulong sizeToDelete = kSize_End )
- ulong Find ( const Text &other, ulong position ) const
- ulong FindPrev ( const Text &other, ulong position ) const
- ulong FindIgnoringCase ( const Text &other, ulong position ) const
- ulong FindPrevIgnoringCase ( const Text &other, ulong position ) const
- void GetStyle( CharacterStyle& style, ulong position ) const
- void GetDefaultStyle( CharacterStyle& style ) const
- bool operator == ( const Text &that ) const
- bool operator != ( const Text &that ) const
- bool operator less ( const Text &that ) const
- bool operator less= ( const Text &that ) const
- bool operator gtr ( const Text &that ) const
- bool operator gtr= ( const Text &that ) const
Example Text Functions
Compare dataVect Text Value
I have found the following function useful for easy compare of a dataVect against a pre-defined text field. dataVectCompare