Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

spedas/gui/utilities/

spd_ui_prompt_widget.pro


NAME: spd_ui_prompt_widget.pro PURPOSE: Simple standardized popup, for yes/no,yes_to_all,no_to_all,cancel Like dialog_message, but allows additional options, and automatically logs/prompts CALLING SEQUENCE: result = spd_ui_prompt_widget(parent,statusbar,historywin,"Continue?") INPUT: parent: Widget Id of parent widget(Note that if parent is invalid, it will block until a response is received. See documentation for XMANAGER:NO_BLOCK keyword) statusBar: The statusbar object to which output should be sent, if unavailable pass null object(obj_new()) historywin: The historywin object to which output should be sent if unavailable pass null object(obj_new()) promptText=promptText: The text of the prompt to be displayed to the user. no=no :Include "No" Button yes=yes: Include "Yes" Button allno=allno: Include "No To All" button. allyes=allyes: Include "Yes To All" button. cancel=cancel: Include "Cancel" button. ok=ok: Include "Ok" button. maxwidth=maxwidth: Control the width at which the prompt starts wrapping prompt text. defaultValue=defaultValue: Set to string to return as default. (Occurs during error or close by clicking "X") Normally default is value of right-most button. title=title: Set window title to string. traceback=traceback: Do a trace to calling location frame_attr=frame_attr: Control the window appearance via TLB_FRAME_ATTR. Values: 1 Base cannot be resized, minimized, or maximized. 2 Suppress display of system menu. 4 Suppress title bar. 8 Base cannot be closed. 16 Base cannot be moved. For multiple effects add values together. There are differences between Linux and Windows, so test before using. TLB_FRAME_ATTR=8 seems to work everywhere. OUTPUT: Returns an all lower case string with the response text: "no","yes","yestoall","notoall","cancel","ok" NOTES: 1. If no button keywords are set, "ok" is used. 2. Based heavily on deprecated gui load subroutine: spd_ui_load_clob_prompt: 3. If a parent widget is unavailable, statusbar, or historywin unavailable, you can pass null values result = spd_ui_prompt_widget(0l,obj_new(),obj_new(),prompt="Continue?") This call will interact with other widgets in a way that is similar to a call to error_message HISTORY: $LastChangedBy: jimm $ $LastChangedDate: 2014-02-11 10:54:32 -0800 (Tue, 11 Feb 2014) $ $LastChangedRevision: 14326 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/spedas/gui/utilities/spd_ui_prompt_widget.pro $

Routines

Routines from spd_ui_prompt_widget.pro

spd_ui_prompt_widget_event, event
result = spd_ui_prompt_widget(parent, statusBar, historyWin, promptText=promptText, no=no, yes=yes, allno=allno, allyes=allyes, cancel=cancel, ok=ok, maxwidth=maxwidth, defaultValue=defaultValue, title=title, traceback=traceback, frame_attr=frame_attr)

Routine details

top source spd_ui_prompt_widget_event

spd_ui_prompt_widget_event, event

Parameters

event

top source spd_ui_prompt_widget

result = spd_ui_prompt_widget(parent, statusBar, historyWin, promptText=promptText, no=no, yes=yes, allno=allno, allyes=allyes, cancel=cancel, ok=ok, maxwidth=maxwidth, defaultValue=defaultValue, title=title, traceback=traceback, frame_attr=frame_attr)

Parameters

parent
statusBar
historyWin

Keywords

promptText
no
yes
allno
allyes
cancel
ok
maxwidth
defaultValue
title
traceback
frame_attr

File attributes

Modification date: Thu Feb 13 16:41:46 2014
Lines: 149