Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2134 closed Bug (No Bug)

Combobox style $CBS_UPPERCASE produces undesired results

Reported by: cannondale Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.0 Severity: None
Keywords: Cc:

Description

Creating a Combobox with style $CBS_UPPERCASE produces undesired results under win2000, winxp and win7 using Autoit v3.3.8.0.

The output of the code below can be found at http://jer826.com/au3/autoit_combo.gif

Global Const $CBS_UPPERCASE = 0x2000
Global Const $GUI_EVENT_CLOSE = -3
Local $msg

GUICreate("My GUI")

GUICtrlCreateCombo("A", 5, 10, 35, 240, $CBS_UPPERCASE)
GUICtrlCreateCombo("A", 55, 10, 35, 240)

GUISetState(@SW_SHOW)

While 1
    $msg = GUIGetMsg()

    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
GUIDelete()

Attachments (0)

Change History (4)

comment:1 Changed 12 years ago by Valik

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

Your code behaves exactly how it should as it is written. If you wish for your code to behave differently then you should tell it to behave differently by writing it to do what you want.

No AutoIt bug here.

comment:2 follow-up: Changed 12 years ago by anonymous

$CBS_UPPERCASE causes the combo box to be a list box instead of forcing uppercase entry. Maybe the documentation needs to be updated?

Work-around is: GUICtrlCreateCombo("A", 5, 10, 35, 240, Bitor(0x0002, 0x2000))


comment:3 in reply to: ↑ 2 Changed 12 years ago by Jpm

Replying to anonymous:

$CBS_UPPERCASE causes the combo box to be a list box instead of forcing uppercase entry. Maybe the documentation needs to be updated?

Work-around is: GUICtrlCreateCombo("A", 5, 10, 35, 240, Bitor(0x0002, 0x2000))


It is not a workaroud as the doc say to use Bitor($GUI_SS_DEFAULT_COMBO, $CBS_UPPERCASE) if you want to add a new style

comment:4 Changed 12 years ago by Valik

Maybe you just need to learn to read the documentation. It clearly states what the default styles are. It also clearly states what the forced styles are. Notice that the drop-down style is not forced which means when you elect to tell AutoIt you know what you're doing you need to know what you're fucking doing. Otherwise you waste my time and JPM's time with stupid bug reports that are 100% your fault.

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.