Modify

Opened 13 years ago

Closed 13 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 Changed 13 years ago by Xenobiologist

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 Changed 13 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.