UI/FBMessageBox.py

UI/FBMessageBox.py
1 # Copyright 2009 Autodesk, Inc. All rights reserved.
2 # Use of this software is subject to the terms of the Autodesk license agreement
3 # provided at the time of installation or download, or which otherwise accompanies
4 # this software in either electronic or hard copy form.
5 #
6 # Topic: FBMessageBox
7 #
8 
9 from pyfbsdk import FBMessageBox
10 
11 # Simple message box: just a OK button.
12 FBMessageBox( "TitleString First", "MessageString\nOnly one button:", "OK" )
13 
14 # With 3 buttons this time.
15 FBMessageBox( "TitleString Second", "MessageString\nThree buttons:", "OK", "Maybe", "Cancel" )
16 
17 # Now with a multiline string.
18 FBMessageBox( "TitleString Third", "MessageString\nOne\nTwo\nThree\nFour\nFive\nSix\nSeven", "OK" )
19 
20 # Cleanup.
21 del( FBMessageBox )