Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 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 by Valik, 14 years ago

Resolution: No Bug
Status: newclosed

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 by anonymous, 14 years ago

$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))


in reply to:  2 comment:3 by J-Paul Mesnage, 14 years ago

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 by Valik, 14 years ago

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.

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.