Opened 12 years ago

Closed 12 years ago

#2060 closed Bug (Fixed)

UDFs Documentation issues

Reported by: MrCreatoR <mscreator@…> Owned by: guinness
Milestone: Component: Documentation
Version: Severity: None
Keywords: Doc UDF Cc:


While translating AutoIt help file by the Russian community, we found few issues:

1. In _GUICtrlListView_SetItemSelected:

-1 to set selected state of all items

There should be a remark about the fact that it will not work without $LVS_SINGLESEL style.

2. In _GUICtrlTreeView_SetText and _GUICtrlTreeView_SetState:

item ID/handle to set the icon

How is that related to icon?

3. In _GUICtrlListView_GetOriginY:

Retrieves the current horizontal view origin for the control

Should be vertical instead of horizointal.

4. In _GUICtrlTreeView_SetHeight:

New height of every item in pixels. Heights less than 1 will be set to 1. If not even and the
control does not have the DllStructGetData($TVS_NONEVENHEIGHT style this value will be rounded down to the nearest even value, "")
If -1, the control will revert to using its default item height.

Something wrong here (look at the bold part).

5. In _INetGetSource:

#include <INet.au3>
_INetGetSource ( $s_URL )

There is no second optional parameter in the syntax.

6. In _GUICtrlEdit_InsertText:

#Include <GuiEdit.au3>
_GUICtrlEdit_InsertText($hWnd, $sText, $iIndex = -1)

The third parameter does not marked as optional (without the [, ]).

7. In _GUICtrlComboBox_Destroy:

Restricted to only be used on Listbox created with _GUICtrlComboBox_Create

Should be Combobox, not Listbox.
Also this remark present in few other _GUICtrlComboBox_* functions.

8. In _GUICtrlRichEdit_SetSel:

The first character of the text in a control is at character position 1

Why 1, AFAIK, it's 0.

9. In _GUICtrlRichEdit_GetPasswordChar:

Special case: 0 - there is no password character, so the control displays the characters typed by the user

It returns empty string, not 0.

Attachments (0)

Change History (2)

comment:1 Changed 12 years ago by MrCreatoR <mscreator@…>

Oops, here is a correction for the first issue:

There should be a remark about the fact that it will work only if $LVS_SINGLESEL style not used.

comment:2 Changed 12 years ago by guinness

  • Milestone set to
  • Owner set to guinness
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [6462] in version:

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

as closed The owner will remain guinness.

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

Note: See TracTickets for help on using tickets.