Scroll to navigation

XtPopup(3Xt) XT FUNCTIONS XtPopup(3Xt)

̾??

XtPopup, XtPopupSpringLoaded, XtCallbackNone, XtCallbackNonexclusive, XtCallbackExclusive - ?ݥåץ??åפ??ޥåפ???

????

void XtPopup(popup_shell, grab_kind)
Widget popup_shell;
XtGrabKind grab_kind;

void XtPopupSpringLoaded(popup_shell)
Widget popup_shell;

void XtCallbackNone(w, client_data, call_data)
Widget w;
XtPointer client_data;
XtPointer call_data;

void XtCallbackNonexclusive(w, client_data, call_data)
Widget w;
XtPointer client_data;
XtPointer call_data;

void XtCallbackExclusive(w, client_data, call_data)
Widget w;
XtPointer client_data;
XtPointer call_data;

void MenuPopup(shell_name)
String shell_name;

??????

???????Хå??Υǡ????????ꤹ?롣 ?????ϡ????μ?³???ǤϻȤ????ʤ???
?ݥåץ??åץ??????????ꤹ?롣
?桼?????٥??Ȥ? constraint ??????????ˡ?????ꤹ?롣
?????????åȥ??????????ꤹ?롣
?????????åȤ????ꤹ?롣

????

?ؿ? XtPopup ?ϰʲ???ư?????Ԥ?:

  • XtCheckSubclass ???ƤӽФ???popup_shell ?? Shell ?Υ??֥??饹?Ǥ??뤳?Ȥ???ǧ???롣
  • ???Υ??????? popped_up ?ե??????ɤ????? True ?ʤ??С????顼?򵯤?????
  • ???Υ??????? popup_callback ?ꥹ?ȤΥ??????Хå???³?????Ƥ֡?
  • ???Υ??????? popped_up ?ե??????ɤ? True ?򥻥åȤ???spring_loaded ?ե??????ɤ? False ?򥻥åȤ??롣?ޤ??????Υ??????? grab_kind ?ե??????ɤ? grab_kind ???? ?򥻥åȤ??롣
  • ???Υ??????? create_popup_child ??³???? NULL ?Ǥʤ????С? XtPopup ?? popup_shell ???ѥ??᡼???Ȥ??Ƥ??μ?³?????ƤӽФ???
  • grab_kind ?? XtGrabNonexclusive ?ޤ??? XtGrabExclusive ?ʤ??С????δؿ???

XtAddGrab(popup_shell, (grab_kind == XtGrabExclusive), False)


???ƤӽФ???

  • ???ꤵ?줿 popup_shell ???Ȥä? XtRealizeWidget ???ƤӽФ???
  • ???ꤵ?줿 popup_shell ???Ȥä? XMapWindow ???ƤӽФ???

?ؿ? XtPopupSpringLoaded ?ϡ? XtPopup ?ȤۤȤ???Ʊ???Ǥ??롣 ???????????????? spring_loaded ?ե??????ɤ? True ?򥻥åȤ??????? exclusive ?? True ???? spring_loaded ?? True ?????ꤷ?? XtAddGrab ???ƤӽФ??????????ۤʤ롣

?ؿ? XtCallbackNone, XtCallbackNonexclusive, XtCallbackExclusive ?ϡ? ?????? client_data ?ǻ??ꤵ?줿???????ȡ????ꤵ?줿̾???򥻥åȤ??? grab_kind ???Ȥä? XtPopup ???ƤӽФ??? XtCallbackNone ?? XtGrabNone???? XtCallbackNonexclusive ?? XtGrabNonexclusive ???? XtCallbackExclusive ?? XtGrabExclusive ?????ꤹ?롣 ???ˡ????줾???δؿ??? XtSetSensitive ???Ȥäơ? ???????Хå??ꥹ?Ȥ??¹Ԥ????????????åȤ?ȿ?????ʤ????֤ˤ??롣 ???????δؿ??򥳡????Хå????ǻȤ????Ȥ?ɬ?פǤϤʤ??? ?äˡ??ݥåץ??åץ???????ưŪ?????????륳?????Хå????ܥ?????ȿ?????? ?????֤ˤ????ʾ??ν??????Ԥ????????Хå????Ф??Ƥϡ????ץꥱ?????????? ???̤˽??????Ԥ??ʤ????Фʤ??ʤ???

MenuPopup ?ϥȥ??󥹥졼???????ޥ͡????㤬???????Ƥ??ꡢspring-loaded ?ݥåץ??? ?פ??Ф??????̤ʽ??????¹Ԥ??ʤ????Фʤ??ʤ??? ?ȥ??󥹥졼?????????????椫???? MenuPopup ?θƤӽФ??ϡ????????ݡ??Ȥ????Ƥ??ʤ?????????????³???ؤθƤӽФ??˥ޥ? ?פ????롣???ΤȤ????ȥ??󥹥졼???????ޥ͡??????ϡ??ȥ??󥹥졼?????? ?κ??դǻ??ꤵ?줿???٥??Ȥ˴??Ť??ƥѥ??᡼?????????롣

MenuPopup ?? ButtonPress ???٥??Ȥ??Ф??ƸƤӽФ??줿????(???ǥ??ե???????ȼ?????Ȥ⤢??)???ȥ? ?󥹥졼???????ޥ͡??????? grab_kind ?? XtGrabExclusive ???? spring_loaded ?? True ?򥻥åȤ??ƥ????????ݥåץ??åפ????롣 MenuPopup ?? EnterWindow ???٥??Ȥ??Ф??ƸƤӽФ??줿????(???ǥ??ե???????ȼ?????Ȥ⤢??)???ȥ? ?󥹥졼???????ޥ͡??????? grab_kind ?? XtGrabNonexclusive ????spring_loaded ?? False ?򥻥åȤ??ƥ????????ݥåץ??åפ????롣 ?????ʳ??ξ??硢?ȥ??󥹥졼???????ޥ͡??????ϥ??顼?򵯤????? ?????????åȤ??ݥåץ??åפ????Ȥ??ˤϰʲ???ư??Ԥ?????:

  • popup_shell ?? Shell ?Υ??֥??饹?Ǥ??뤳?Ȥ???ǧ???뤿?ᡢ XtCheckSubclass ???ƤӽФ???
  • ???Υ??????? popped_up ?ե??????ɤ????? True ?ʤ??С????顼?򵯤?????
  • ???Υ??????? popup_callback ?ꥹ?ȤΥ??????Хå???³?????Ƥ֡?
  • ???Υ??????? popped_up ?ե??????ɤ? True ?򥻥åȤ???spring_loaded ?ե??????ɤ? grab_kind ?ե??????ɤ?Ŭ?ڤ??? ?򥻥åȤ??롣
  • ???Υ??????? create_popup_child ??³???? NULL ?Ǥʤ????С? ???μ?³???? popup_shell ???ѥ??᡼???Ȥ??ƸƤӽФ????롣
  • ???θƤӽФ????Ԥ?:

XtAddGrab(popup_shell, (grab_kind == XtGrabExclusive), spring_loaded)


  • ???ꤵ?줿 popup_shell ???Ȥä? XtRealizeWidget ???ƤӽФ???
  • ???ꤵ?줿 popup_shell ???Ȥä? XMapWindow ???ƤӽФ???

(????????ư???? XtPopup ??Ʊ???Ǥ??뤳?Ȥ????դ??뤳?ȡ?) MenuPopup ?ϡ??????????åȥĥ꡼?򸡺????ƥ??????򸫤Ĥ??褦?Ȥ??롣???θ????ϡ? ??³?????ƤӽФ??줿?????????åȤοƥ????????åȤ????Ϥ??????롣 ???ꤷ??̾???Υ????뤬?????οƤλҤǥݥåץ??åפǤ??????Τ??椫?鸫?? ???ä????硢????????Ŭ?ڤʥѥ??᡼?????Ȥäƥݥåץ??åפ????롣 ???Ĥ????ʤ??ä??????ϡ?ɬ?פ˱????ƿƥ????????åȤδط??????ˤ??ɤä? ???????Ԥ????롣 ???ץꥱ???????󥦥??????åȤˤ??ɤ??夤???????ǡ??ޥå????륷???뤬?? ?Ĥ????ʤ??ä??????ϡ? MenuPopup ?ϥ??顼?򵯤?????

??Ϣ????

XtCreatePopupShell(3Xt), XtPopdown(3Xt)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface

Release 6.5 X Version 11