XMADDTOPOSTFROMLIST(3)
XmAddToPostFromList π
okay bestie, so this one is a library call from the Xm crew β it lives in section 3 of the manual, so you already know it's a C function you call from your code, not some shell thing you type at a prompt. and honestly? she's a RowColumn function that makes a menu accessible from more than one widget. that's the whole gig. one menu, many homes. main character menu energy, fr fr. π
β¨ NAME β¨
XmAddToPostFromList β a RowColumn function that makes a menu accessible from more than one widget π
π¦ SYNOPSIS π¦
#include <Xm/RowColumn.h>
void XmAddToPostFromList(
Widget menu,
Widget post_from_widget);
like, she returns void. nothing back. no little receipt, no error code, just vibes and side effects. π
πΈ DESCRIPTION πΈ
so XmAddToPostFromList makes a menu accessible from more than one widget. that's it, that's the thesis. π«Ά
here's the tea: after a menu is once created, this function may be used to make that menu accessible from a second widget. and then? the process may be repeated indefinitely. like, not me adding a third widget, and a fourth, and a fifth β it literally never has to stop, bestie. π₯
in other words, where an application would use XmCreatePopupMenu or XmCreatePulldownMenu or their equivalent to create a new menu identical to one that already exists, it can use this function to reuse that earlier menu instead. no duplicate menus. no copy-paste menu crime. we love a sustainable queen. π
now the deets depend on what kind of menu you're working with, and this part matters so pay attention:
- if menu refers to a Popup menu, then the post_from_widget widget can now pop up the specified menu. the actual posting of the menu occurs as it always does β either through an event handler, or the automatic popup menu support (see the
XmRowColumn(3)reference page). so like, this function doesn't change how it pops, just who can pop it. β¨ - if menu refers to a Pulldown menu, its ID is placed in the
XmNsubMenuIdresource of the specified post_from_widget. and in this case, post_from_widget must be either aCascadeButtonor aCascadeButtonGadget. no exceptions, no negotiating, that's the rule. π¨
β οΈ important note, bestie: this function manipulates the internal structures themselves, not a copy of them. so like, it's not making you a cute lil duplicate to play with β it's reaching into the real thing. iykyk. π
π the arguments π
- menu β Specifies the ID of the RowColumn widget containing the menu (Popup or Pulldown) to be made accessible from the widget. π
- post_from_widget β Specifies the widget ID of the widget which will now be able to post the menu specified by menu. π«Ά
and for a complete definition of RowColumn and its associated resources, see XmRowColumn(3). she's the lore page, go read her. π
π RELATED π
and that's the whole page, bestie!! π this one's from the XmAddToPostFromList(library call) page, so if you ever need to cite her, that's the source and the version tag right there. go forth and share your menus with the whole widget friend group. slay, periodt, bye!! πβ¨π¦πΈπ π«Ά
π¦ 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