You are here: Symbol Reference > JSDialog Namespace > Classes > TJSButtonBarOptions Class > TJSButtonBarOptions Methods > TJSButtonBarOptions.DetermineDefaults Method
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSButtonBarOptions.DetermineDefaults Method

Use this method to have the dialog determine the best values for the Default and Cancel properties.

Pascal
procedure DetermineDefaults;

This method determines what are the best values for the Default and Cancel properties given the current value of the Buttons property. 

The Default value is determined in the following order: cbYes cbOK cbRetry cbClose cbAll cbYesToAll cbHelp 

The Cancel value is determined in the following order: cbNo cbCancel cbClose cbAbort cbIgnore cbHelp

This method should be called everytime the Buttons property is changed.

Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!