XMTEXTFIELDSETHIGHLIGHT(3)
β¨ XmTextFieldSetHighlight β¨
okay bestie, come sit with me, this one's from the library call section of the manual and it is so much less scary than it sounds π
πΈ NAME πΈ
XmTextFieldSetHighlight β a TextField function that highlights text. that's it, that's the whole job. iconic π
π SYNOPSIS π
#include <Xm/TextF.h>
void XmTextFieldSetHighlight(
Widget widget,
XmTextPosition left,
XmTextPosition right,
XmHighlightMode mode);
look at her. four little arguments, one void return, no drama π
π¦ DESCRIPTION π¦
So XmTextFieldSetHighlight highlights the text between the two character positions you give it, and the mode parameter decides what kind of highlighting it is. periodt β¨
π IMPORTANT CAVEAT, NO CAP: highlighting text merely changes the visual appearance of the text. It does not set the selection. it's giving aesthetic only. don't be out here thinking you selected something just because it looks highlighted, because bestie you did not π«Ά
here's the rundown on the args, one by one:
widgetβ specifies the TextField widget ID πleftβ specifies the position of the left boundary of the text to be highlighted. it's an integer number of characters from the beginning of the text buffer. the first character position is0(zero). zero-indexed girlies rise up πΈrightβ specifies the position of the right boundary of the text to be highlighted. also an integer number of characters from the beginning of the text buffer. also the first character position is0(zero). yes it's the same rules, no I'm not being lazy, that's literally what it says πmodeβ specifies the type of highlighting to be done. and here are your three whole options:- a value of
XmHIGHLIGHT_NORMALremoves highlighting. the un-highlight. the cleanup era. π§Ή - a value of
XmHIGHLIGHT_SELECTEDhighlights the text using reverse video. the way that it flips the colorsβ¦ obsessed π₯ - a value of
XmHIGHLIGHT_SECONDARY_SELECTEDhighlights the text using underlining. subtle. demure. mindful. π
- a value of
and if you want the complete definition of TextField and all its associated resources, that's a whole other page β go read XmTextField(3) π
π RELATED π
that's the whole page bestie, you ate that π«Ά this little beauty lives in the XmTextFieldSetHighlight(library call) corner of the manual β same title top and bottom, no date, no version drama, just vibes β bye pookie, go highlight something π
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms