Docs @ Psychtoolbox Wiki : TwoStateQuery

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

TwoStateQuery

PsychtoolboxPsychHardwareDaqUtilities

Syntax: UserResponse = TwoStateQuery(TheQuestion,[TheChoices])

Purpose: Create simple dialog box asking user an either/or question

History: 5/5/04 mpr decided whether or not to celebrate cinco de mayo
10/13/04 mpr set Yes Button automatically to be enlarged for large
strings
1/21/05 mpr allowed fontsize to shrink for longer questions
1/27/05 mpr allowed question to break at file separator instead of
just spaces
6/30/05 mpr forced underscores to remain as underscores instead of
indicating subscript
3/27/06 mpr changed returned value to -1 when user deletes window;
note that this is dangerous because how a closed
window affects subsequent program behavior is not
implemented the same way in all code calling this
function...
5/3/06 mpr set menubar to none for Version 2006a
8/25/06 mpr resized No Button as needed; could be done better, but
the plan is to keep the 'Yes' and 'No' strings short
so that the code doesn't need to be pushed hard
9/29/06 mpr repainted buttons in version 7
1/14/07 mpr undid previoius fix because button color bug is almost
fixed




Path   Retrieve current version of TwoStateQuery.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychHardware/Daq/Utilities/TwoStateQuery.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1048 seconds