SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from RedHat Other XITE-3.3-3.i386.rpm

Section: Free Widget Foundation (3)
Updated:
Index 

NAME

XfwfOptionButton 

DESCRIPTION

The option button is very much like a PullDown button, except thatthe label of the button is automatically set to the label of the lastselected menu item.

There are two ways to specify the menu: with the popupresource, or with the menu resource.When the popup resource is used, the option button cannot updateits own label, so it becomes the responsibility of the applicationthat created the pop up widget to set the label.

For more explanation of menu and popup, see the XfwfPullDownclass.

 

Public variables

XfwfOptionButton
NameClassTypeDefault

XtNframeWidth
The frame width is again set to a default of 2 pixels.

        


 frameWidth = 2 

XfwfPullDown
NameClassTypeDefault
XtNpopupXtCPopupWidget NULL
XtNmenuXtCMenuString NULL
XtNcascadedXtCCascadedBoolean False
XtNhotkeyXtCHotkeyString NULL
XtNmenuCursorXtCMenuCursorCursor "arrow"
XtNprepareXtCPrepareCallbackNULL
XtNchangeSelectionXtCChangeSelectionCallbackNULL

XfwfButton
NameClassTypeDefault
XtNactivateXtCActivateCallbackNULL
XtNenterXtCEnterCallbackNULL
XtNleaveXtCLeaveCallbackNULL

XfwfLabel
NameClassTypeDefault
XtNlabelXtCLabelString NULL
XtNtablistXtCTablistString NULL
XtNfontXtCFontFontStructXtDefaultFont
XtNforegroundXtCForegroundPixel XtDefaultForeground
XtNhlForegroundXtCHlForegroundPixel XtDefaultForeground
XtNalignmentXtCAlignmentAlignment 0
XtNtopMarginXtCTopMarginDimension 2
XtNbottomMarginXtCBottomMarginDimension 2
XtNleftMarginXtCLeftMarginDimension 2
XtNrightMarginXtCRightMarginDimension 2
XtNshrinkToFitXtCShrinkToFitBoolean False
XtNrvStartXtCRvStartInt 0
XtNrvLengthXtCRvLengthInt 0
XtNhlStartXtCHlStartInt 0
XtNhlLengthXtCHlLengthInt 0

XfwfBoard
NameClassTypeDefault
XtNabs_xXtCAbs_xPosition 0
XtNrel_xXtCRel_xFloat "0.0"
XtNabs_yXtCAbs_yPosition 0
XtNrel_yXtCRel_yFloat "0.0"
XtNabs_widthXtCAbs_widthPosition 0
XtNrel_widthXtCRel_widthFloat "1.0"
XtNabs_heightXtCAbs_heightPosition 0
XtNrel_heightXtCRel_heightFloat "1.0"
XtNhunitXtCHunitFloat "1.0"
XtNvunitXtCVunitFloat "1.0"
XtNlocationXtCLocationString NULL

XfwfFrame
NameClassTypeDefault
XtNcursorXtCCursorCursor None
XtNframeTypeXtCFrameTypeFrameType XfwfRaised
XtNframeWidthXtCFrameWidthDimension 0
XtNouterOffsetXtCOuterOffsetDimension 0
XtNinnerOffsetXtCInnerOffsetDimension 0
XtNshadowSchemeXtCShadowSchemeShadowScheme XfwfAuto
XtNtopShadowColorXtCTopShadowColorPixel compute_topcolor
XtNbottomShadowColorXtCBottomShadowColorPixel compute_bottomcolor
XtNtopShadowStippleXtCTopShadowStippleBitmap NULL
XtNbottomShadowStippleXtCBottomShadowStippleBitmap NULL

XfwfCommon
NameClassTypeDefault
XtNtraversalOnXtCTraversalOnBoolean True
XtNhighlightThicknessXtCHighlightThicknessDimension 2
XtNhighlightColorXtCHighlightColorPixel XtDefaultForeground
XtNhighlightPixmapXtCHighlightPixmapPixmap None
XtNnextTopXtCNextTopCallbackNULL
XtNuserDataXtCUserDataPointerNULL

Composite
NameClassTypeDefault
XtNchildrenXtCChildrenWidgetList NULL
insertPositionXtCInsertPositionXTOrderProc NULL
numChildrenXtCNumChildrenCardinal 0

Core
NameClassTypeDefault
XtNxXtCXPosition 0
XtNyXtCYPosition 0
XtNwidthXtCWidthDimension 0
XtNheightXtCHeightDimension 0
borderWidthXtCBorderWidthDimension 0
XtNcolormapXtCColormapColormap NULL
XtNdepthXtCDepthInt 0
destroyCallbackXtCDestroyCallbackXTCallbackList NULL
XtNsensitiveXtCSensitiveBoolean True
XtNtmXtCTmXTTMRec NULL
ancestorSensitiveXtCAncestorSensitiveBoolean False
acceleratorsXtCAcceleratorsXTTranslations NULL
borderColorXtCBorderColorPixel 0
borderPixmapXtCBorderPixmapPixmap NULL
backgroundXtCBackgroundPixel 0
backgroundPixmapXtCBackgroundPixmapPixmap NULL
mappedWhenManagedXtCMappedWhenManagedBoolean True
XtNscreenXtCScreenScreen *NULL

 

Translations

Since wbuild cannot yet inherit translations, they must begiven again.

        

<Btn1Down>: prepare() open_menu() 

Button1<Enter>: prepare() open_menu() 

<Key>Return: prepare() open_menu() 

<Btn1Up>: popdown_maybe() 

 

Importss

incl <stdio.h>

incl <Xfwf/TextMenu.h>

 

Methods

The initialize method adds a callback to the menu, but only if ithas been created in the PullDown widget.

initialize(Widget  request, $, ArgList  args, Cardinal * num_args){    if ($own_popup)        XtAddCallback($popup, XtNactivate, set_label_cb, $);}

Similarly, the set_values methods adds the same callback if a newmenu has been created in the set_values method of XfwfPullDown.

Boolean  set_values(Widget  old, Widget  request, $, ArgList  args, Cardinal * num_args){    if ($old$popup != $popup  $own_popup)        XtAddCallback($popup, XtNactivate, set_label_cb, $);    return False;}

 

Utilities

The set_label_cb routine is called when an option from the optionsmenu is selected. It will set the label of the option button.

set_label_cb(Widget  menu, XtPointer  client_data, XtPointer  call_data){    Widget $ = (Widget) client_data;    XfwfTextMenuData *data = (XfwfTextMenuData *) call_data;    if ($label  strcmp($label, data->label) == 0) return;    XtVaSetValues($, XtNlabel, data->label, NULL);}


 

Index

NAME
DESCRIPTION
Public variables
Translations
Importss
Methods
Utilities

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector