XMCREATESCROLLEDLIST(3)
β¨ XmCreateScrolledList β¨
okay bestie, gather round, because today we're talking about XmCreateScrolledList from the library call section of the manual π
this is the List ScrolledList convenience creation function, and honestly? it's giving "I do two jobs so you don't have to" π«Ά
πΈ SYNOPSIS πΈ
#include <Xm/List.h>
Widget XmCreateScrolledList(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);
π¦ DESCRIPTION π¦
So XmCreateScrolledList makes you an instance of a List widget, and β plot twist β that List is contained within a ScrolledWindow. Two widgets, one function call, main character energy β¨
The ScrolledWindow parent is created managed. And literally all the ScrolledWindow subarea widgets? Automatically created by this function. No cap. π₯
β οΈ listen up because this part is important: the ID returned by this function is the ID of the List widget β not the ScrolledWindow widget. Use this widget ID for all operations on the List widget. Use the widget ID of the List widget's parent for all operations on the ScrolledWindow. (iykyk π)
So how do you get the ID of the ScrolledWindow widget associated with the List widget? You hit up the Xt Intrinsics XtParent function. iconic behavior honestly π
And the name of the ScrolledWindow that this function creates? It's formed by concatenating SW onto the end of the name you specified in the parameter list. Cute, predictable, we love a naming convention π
π the args are flexible, bestie
All arguments to either the List or the ScrolledWindow widget can be specified at creation time using this function. Changes to initial position and size are sent only to the ScrolledWindow widget. Other resources get sent to the List or the ScrolledWindow widget as appropriate β it just knows where things go π
π warning bestie: the result of providing theXmNdestroyCallbackresource in the creation arglist is unspecified. The application should use theXtAddCallbackfunction to add callbacks to the appropriate widget (List or ScrolledWindow) after creating it. fr fr, don't do it, just add your callbacks after π«Ά
π forced initial values
This function forces the following initial values for ScrolledWindow resources (no negotiating, the function decided):
XmNscrollingPolicyis set toXmAPPLICATION_DEFINED.XmNvisualPolicyis set toXmVARIABLE.XmNscrollBarDisplayPolicyis set toXmSTATIC. (and btw, no initial value is forced for the List'sXmNscrollBarDisplayPolicyβ that one's all yours πΈ)XmNshadowThicknessis set to0(zero).
π§ the arguments, one by one
- parent β Specifies the parent widget ID.
- name β Specifies the name of the created widget.
- arglist β Specifies the argument list.
- argcount β Specifies the number of attribute/value pairs in the argument list (arglist).
For a complete definition of List and its associated resources, go peek at XmList(3) β it's the whole lore drop π
β RETURN β
Returns the List widget ID. that's it, that's the tea π
π RELATED π
okay that's the whole page bestie, you ate this π this was XmCreateScrolledList from the library call manual section, straight out of the Xm library docs β go forth and create your scrolled lists, you gorgeous Unix gremlin πβ¨
π¦ 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