Jump to content

Melba23

Moderators
  • Posts

    31,249
  • Joined

  • Days Won

    313

Melba23 last won the day on May 14

Melba23 had the most liked content!

About Melba23

Profile Information

  • Member Title
    I'm old, what's your excuse?
  • Location
    Where never lark or even eagle flew

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Melba23's Achievements

  1. [New VERSION] - 07/09/25 With release of AutoIt v3.3.18.0 an internal reorganisation of the standard includes requires and additional #include line to the UDF - new version in the zip in the first post. M23
  2. boy15, We are not prepared to help with that - for fairly obvious reasons. Thread locked. M23
  3. boy15, You will need to provide a clearer explanation than that to have any chance of being helped. M23 P.S. Mod team involved - everyone else please stay out.
  4. MoriceGrene, If there was a way to do this, do you not think it would be at the top of every section of the forum? Alas, the answer is "no". M23
  5. ermar, Certainly - how about this: #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> #include "GUIListViewEx.au3" Opt("GUIOnEventMode", 1) ; Create GUI $hGUI = GUICreate("LVEx Example", 320, 320) ; Create ListView $cListView = GUICtrlCreateListView("Tom|Dick|Harry", 10, 10, 300, 300, $LVS_SHOWSELALWAYS) _GUICtrlListView_SetExtendedListViewStyle($cListView, $LVS_EX_FULLROWSELECT) _GUICtrlListView_SetColumnWidth($cListView, 0, 93) _GUICtrlListView_SetColumnWidth($cListView, 1, 93) _GUICtrlListView_SetColumnWidth($cListView, 2, 93) ; Set font GUICtrlSetFont($cListView, 12, Default, Default, "Courier New") ; Note edit control will use same font ; Create array and fill listview Global $aLV_List[20] For $i = 0 To UBound($aLV_List) - 1 If Mod($i, 5) Then $aLV_List[$i] = "Tom " & $i & "|Dick " & $i & "|Harry " & $i Else $aLV_List[$i] = "Tom " & $i & "||Harry " & $i EndIf GUICtrlCreateListViewItem($aLV_List[$i], $cListView) Next ; Initiate LVEx $iLV_Left_Index = _GUIListViewEx_Init($cListView, $aLV_List) ; Column 1 & 2 editable - simple text _GUIListViewEx_SetEditStatus($iLV_Left_Index, "1;2") ; Register for sorting, dragging and editing - but do NOT register WM_Notify _GUIListViewEx_MsgRegister(Default) ; Now register the user WM_NOTIFY handler GUIRegisterMsg(0x004E, "_User_WM_NOTIFY_Handler") GUISetState() GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit_Ex") While 1 Sleep(10) $vRet = _GUIListViewEx_EventMonitor(0) If @error Then MsgBox($MB_SYSTEMMODAL, "Error", "Event error: " & @error) EndIf Switch @extended Case 1 If $vRet = "" Then MsgBox($MB_SYSTEMMODAL, "Edit", "Edit aborted" & @CRLF) Else _ArrayDisplay($vRet, "ListView " & _GUIListViewEx_GetActive() & " content edited", Default, 8) EndIf EndSwitch WEnd Func _Exit_Ex() Exit EndFunc Func _User_WM_NOTIFY_Handler($hWnd, $iMsg, $wParam, $lParam) ; Do whatever the user handler is supposed to do here ; Must be LAST line of the handler Return(_GUIListViewEx_WM_NOTIFY_Handler($hWnd, $iMsg, $wParam, $lParam)) EndFunc Please ask if you have any questions. M23
  6. eltunisie, And what have you tried that has not worked? M23
  7. angel83, Take a look at my GUIListViewEx UDF - the link is in my sig - which allows you to do quite a lot to ListViews! M23
  8. MrCal, Please do not hijack 5 yr old threads - just start a new one as I have done for you. M23
  9. Moved to the appropriate AutoIt General Help and Support forum, as the AutoIt Example Scripts forum very clearly states: Moderation Team
  10. Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states: Moderation Team
  11. Fritterandwaste, No probs - glad you got it working. M23
  12. Fritterandwaste, I am delighted you find my UDFs useful. The $iWidth parameter of _ExtMsgBoxSet determines the maximum width of the ExtMsgBox. So you can define any value over the default 370 pixels up to a maximum of @DesktopWidth - 20 and the ExtMsgBox should expand to display strings with spaces up to that width before adding linebreaks. You are correct in thinking that the $iWidth_Abs parameter is to deal with long unbroken strings. I hope that is clear - if not then please post some examples which do not work as you expect and I will take a look. M23
  13. Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states: Moderation Team
  14. barbarasdecastro, Welcome to the AutoIt forums. Could I suggest reading the Tabs tutorial in the Wiki - that explains how to get controls to appear only on the tab you want. M23
×
×
  • Create New...