Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

minimize for dialogbox

Status
Not open for further replies.

Volkmaniac

Technical User
Mar 19, 2003
104
US
I don't really know anything about dialogboxes outside of the few scripts I downloaded from aspectscripting.com. Is there a way to add a minimize button to a dialogbox? I have a dialogbox that's case based and I'd like to be able to minimize the box.

dialogbox 0 120 44 195 195 2 "CAPITAL ONE MONTH END"
pushbutton 141 82 2 100 24 "Seconds"
pushbutton 142 82 34 100 24 "Small Business"
pushbutton 143 82 67 100 24 "Small Business Seconds"
pushbutton 144 82 101 100 24 "Kmart"
pushbutton 145 82 134 100 24 "NBR"
pushbutton 146 82 167 100 24 "Tertiary"

enddialog
while 1
dlgevent 0 Event
switch Event
 
There is not a way to minimize a dialog, but you can change the diaog style so it is modeless and can be moved and the underlying Procomm window accessed. In your script, the dialog style is 2 (the number just before the dialog title), which means it is movable already but is also modal meaning the rest of Procomm outside the dialog is not accessible. To change this to a modeless dialog, add 4 to the dialog style, meaning your dialogbox command should look like this:

dialogbox 0 120 44 195 195 6 "CAPITAL ONE MONTH END"

If you take a look at the discussion of the dialogbox command in the ASPECT help file, you can see the other parameters that can be assigned to a dialog box. Just remember that you need to add the number of that style to the current style(s) you already have defined.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top