Modify

Opened 18 years ago

Closed 18 years ago

#557 closed Bug (No Bug)

InputBox: Left & Top 'Default' keyword not working.

Reported by: PeteW Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.1 Severity: None
Keywords: InputBox Cc:

Description

Hello,

According to the v3.2.12.1 Help file, the keyword Default should centre an InputBox. For Left & Top, however, -1 is needed...

; AutoIt v3.2.12.1 & beta 3.2.13.5
InputBox("test","test","test","*M","Default","Default"); Centered, as expected.  I want to add a timeout...
InputBox("test","test","test","*M","Default","Default","Default","Default",10); Top-left - contrary to Help:
; left [optional] The left side of the input box. By default, the box is centered. If defined, top must also be defined. Use the keyword Default for this parameter to center the InputBox horizontally. 
; top [optional] The top of the input box. By default, the box is centered. If defined, left must also be defined. Use the keyword Default for this parameter to center the InputBox vertically. 
InputBox("test","test","test","*M","Default","Default",-1,-1,10); Centered

Cheers,
Pete.

Attachments (0)

Change History (2)

comment:1 by Xenobiologist, 18 years ago

Hi Pete,

Default is no String it is a keyword.
Just use this and the box will be centered.
InputBox("test","test","test","*M",Default,Default,Default,Default,10); Centered

Mega

comment:2 by J-Paul Mesnage, 18 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.