Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
mibQuestDlg.m File Reference

custom button input dialog More...

Functions

function varargoutmibQuestDlg (varargin)
 custom button input dialog
 
function  mibQuestDlg>mibQuestDlg_OpeningFcn (hObject, eventdata, handles, varargin)
 
function varargoutmibQuestDlg>mibQuestDlg_OutputFcn (hObject, eventdata, handles)
 
function  mibQuestDlg>mibQuestDlg_CloseRequestFcn (hObject, eventdata, handles)
 
function  mibQuestDlg>buttons_Callback (hObject, eventdata, handles)
 
function  mibQuestDlg>mibQuestDlg_KeyPressFcn (hObject, eventdata, handles)
 
function  mibQuestDlg>cancelBtn_Callback (hObject, eventdata, handles)
 
function  mibQuestDlg>mibQuestDlg_ResizeFcn (hObject, eventdata, handles)
 
function  mibQuestDlg>helpBtn_Callback (hObject, eventdata, handles)
 

Detailed Description

custom button input dialog

Function Documentation

◆ mibQuestDlg()

function varargout = mibQuestDlg ( varargin)

custom button input dialog

Parameters
varargin
mibQuestDlg ( mibPath, prompt, buttons, dlgTitle, options )
function varargout = mibQuestDlg(varargin)
custom button input dialog
Definition mibQuestDlg.m:17
Required Parameters for varargin:
  • mibPath [optional] a cell string with a path to MIB installation, use
    global mibPath;
    to get it, or just an empty cell: {[]}
  • prompt string with dialog prompt
  • buttons a cell array {n x 1} with labels of buttons in order from right size of the dialog
  • dlgTitle a string with the name of the dialog
  • options an optional structure with additional options .WindowStyle - a string, can be either normal (default) or modal. .WindowWidth - a number scales the standard width of the dialog x times .WindowHeight - height of the window in points, default = 95.25 .ButtonWidth - vector with width of buttons in points .helpBtnText - text for the Help button .HelpUrl - URL to the help page, when provided a Help button is displayed, .Icon - string (question-default, celebrate, call4help, warning), an icon to use
Return values
answername of the pressed button

Examples:

global mibPath;
prompt = sprintf('Press one of the buttons\nnext line');
buttons = {'Right button'; 'Middle button'; 'Left button'};
dlgTitle = 'multi button dialog';
options.WindowStyle = 'normal'; // [optional] style of the window
options.Icon = 'question'; // [optional] icon to use: "question" (default), "celebrate", "call4help"
options.ButtonWidth = [50 75 75]; // [optional] width of buttons
options.WindowWidth = 1.4; // [optional] width multiplier for the dialog
options.WindowHeight = 250; // [optional] height of the dialog in points
answer = mibQuestDlg({mibPath}, prompt, buttons, dlgTitle, options);
if isempty(answer); return; end // cancel

Referenced by mibAlignmentController.continueBtn_Callback(), mibModel.materialsActions(), and mibSubtractRunningAverage().

Here is the caller graph for this function:

◆ mibQuestDlg>buttons_Callback()

function mibQuestDlg>buttons_Callback ( hObject,
eventdata,
handles )

◆ mibQuestDlg>cancelBtn_Callback()

function mibQuestDlg>cancelBtn_Callback ( hObject,
eventdata,
handles )

◆ mibQuestDlg>helpBtn_Callback()

function mibQuestDlg>helpBtn_Callback ( hObject,
eventdata,
handles )

◆ mibQuestDlg>mibQuestDlg_CloseRequestFcn()

function mibQuestDlg>mibQuestDlg_CloseRequestFcn ( hObject,
eventdata,
handles )

◆ mibQuestDlg>mibQuestDlg_KeyPressFcn()

function mibQuestDlg>mibQuestDlg_KeyPressFcn ( hObject,
eventdata,
handles )

◆ mibQuestDlg>mibQuestDlg_OpeningFcn()

function mibQuestDlg>mibQuestDlg_OpeningFcn ( hObject,
eventdata,
handles,
varargin )

References max, mibRescaleWidgets(), mibUpdateFontSize(), and moveWindowOutside().

Here is the call graph for this function:

◆ mibQuestDlg>mibQuestDlg_OutputFcn()

function varargout = mibQuestDlg>mibQuestDlg_OutputFcn ( hObject,
eventdata,
handles )

◆ mibQuestDlg>mibQuestDlg_ResizeFcn()

function mibQuestDlg>mibQuestDlg_ResizeFcn ( hObject,
eventdata,
handles )