Jump to content

Melba23

Moderators
  • Posts

    31,238
  • Joined

  • Days Won

    312

Everything posted by Melba23

  1. Anyone interested can reply via PM. M23
  2. angel83, No need to copy the code - just use an #include directive to get AutoIt to add it automatically. And the code should work for all flavours of OS. M23
  3. angel83, Of course it is possible, just look at the examples for the _GUIScrollbars_* functions. But my UDF is designed to make scrollbars easier to generate, so why do you not wish to use it? M23
  4. Moved to the appropriate AutoIt General Help and Support forum, as the AutoIt Example Scripts forum very clearly states: Moderation Team
  5. benners, In that case you will need to set the smallest font size you want to use and then if you still cannot fit the text into the label, start trimming the text untill it does fit. I will have a think about how my UDF can do this. M23
  6. benners, Indeed so. The _FindMaxSize function uses the label size passed to it and determines the maximum font size that will fit into it - both horizontally and vertically. That is why the font size decreases as the text to fit gets longer while the label stays the same size. M23
  7. benners, This post shows how to determine the largest font size that will fit into a specified label width. Hope it helps. M23
  8. Niceygy, Use Au3Stripper with the /MergeOnly flag to get the full script file as passed to Aut2Exe - then the line numbers will match. See SciTE help for more full details. You will need the full SciTE4AutoIt3 package to do this. But better still - debug the script and prevent the error by adding some form of errorchecking code. M23
  9. Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states: Moderation Team
  10. Moved to the appropriate forum. Moderation Team
  11. elija6266, Welcome to the AutoIt forums. If you have specific proposals for changes to the documentation then the correct place to post is the Technical Discussion section, as indicated by the explanatory text under the forum title. But as you speak of "resolving a query" I have moved your thread to General Help & Support - so go ahead and ask! M23
  12. Felicitas, Glad you like it. Try this Beta version: GUITreeViewEx_Test.au3 Good to go? M23
  13. mr-es335, So, as shown in the example for FileWrite, use FileOpen to open a file before wrtiting to it. And do not forget to FileClose it after you have written the data. M23
  14. mecartron, How about this: #include <GUIConstantsEx.au3> #include "GUIListViewEx.au3" $hGUI = GUICreate("Tool", 500, 400) $cLV_1 = GUICtrlCreateListView("Stt Auto|time|start|End|HD", 10, 30, 485, 330, BitOR($LVS_SINGLESEL, $LVS_SHOWSELALWAYS)) _GUICtrlListView_SetExtendedListViewStyle($cLV_1, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_CHECKBOXES)) _GUICtrlListView_SetColumnWidth($cLV_1, 0, 100) _GUICtrlListView_SetColumnWidth($cLV_1, 1, 90) _GUICtrlListView_SetColumnWidth($cLV_1, 2, 90) _GUICtrlListView_SetColumnWidth($cLV_1, 3, 90) _GUICtrlListView_SetColumnWidth($cLV_1, 4, 90) ; Create array and fill listview Global $aLVArray_1[10][5] For $i = 0 To 9 $sData = "Auto "& $i&"||ht|6" GUICtrlCreateListViewItem($sData, $cLV_1) Next ; Initiate ListView $iLVIndex_1 = _GUIListViewEx_Init($cLV_1, $aLVArray_1) ; Set column edit status _GUIListViewEx_SetEditStatus($iLVIndex_1, 2, 9, _UserFunc) ; 9 = User function _GUIListViewEx_MsgRegister() GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch _GUIListViewEx_EventMonitor() WEnd Func _UserFunc($hHandle, $iIndex, $iRow, $iColumn) MsgBox($MB_SYSTEMMODAL, "Hi!", "You clicked" & @CRLF & "Row: " & $iRow & @CRLF & "Col: " & $iColumn) EndFunc All clear now? M23
  15. mecartron, My name is Melba23 - Moderator is my role here! In answer to your question - I am afraid that you cannot define a different combo for each row in a column. But what you can do is to run a user-defined function when double-clicked ($iMode = 9) which then creates a small dialog within which you can display a combo with data determined by the particular row clicked. Or you can use a single combo with a large data set for the column and then check the returned value and reset the original if the new value is not valid for that row. Give it a go and come back if you run into problems. M23
  16. mecartron, So pleased you found the solution and that the examples were clear enough to allow you to do so. M23 P.S. When you reply in future, please use the "Reply to this topic" button at the top of the thread or the "Reply to this topic" editor at the bottom rather than the "Quote" button - I know what I wrote and it just pads the thread unnecessarily. Thanks in advance for your cooperation.
  17. mecartron, Welcome to the AutoIt forums - and I am delighted that you find my UDF useful. But I am afraid I have no idea what you are trying to do with this code - my crystal ball is usually pretty reliable, but you have me completely baffled You say you have code which "saves and loads the date so that all checkboxes are checked" - but where is it? The code you posted does not do anything like that. "Can I change the array variables to True" - what array? I notice that you are accessing UDF variables ($aGLVEx_Data) directly - is this what you mean? If so, then this is a very bad idea. UDFs should only be accessed using the public functions as accessing internal variables as you are doing can very often lead to tears. "another function is to enter the time into the input? Pressing the all time button will fix all values in the time column". Sorry, not a inkling of what you mean there. Try explaining in more detail what you want to do and I will do my best to help - but at the moment there is nothing I can do. M23
  18. mike1950r, And what has this code to do with my UDF? You do not use it at all! Are you asking if the UDF can help you do as you require? If so, then please provide me with a runnable script showing an example of the treeview you wish to manipulate, including data to fill it. But I must warn you that I do not believe that the UDF can do what you wish. You imply that unchecking a single child will uncheck the parent - normal practice is to keep the parent ticked unless all the children are unchecked. M23
  19. pixelsearch, Nice one! M23
  20. TheAutomator, The trick I have used in the past only works when you to have an initial "normal" menu entry - so how about this: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 615, 437, 192, 124) $mDummymenu = GUICtrlCreateMenu("") $menu1 = GUICtrlCreateMenuItem("click me", -1) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $menu1 MsgBox(64,'yes!','it works') ; does! EndSwitch WEnd M23
  21. Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states: Moderation Team
  22. SpeedyKiwi, The problem is that you are using user-coloured items - so the normal Windows calls made by the _SelectItem function do not affect the row colouring . I will have to take a look at how the deselection can be done in this case. But my home office is being redecorated starting tomorrow so I am not sure how long this might take - do not hold your breath! M23
  23. SpeedyKiwi, Looking into it. To post code you need to use Code tags - see here how to do it. M23
  24. SpeedyKiwi, Welcome to the forum. I have just tested the _SelectItem function on a ListView and it works fine! So please let me have a short reproductor script that shows the problem and I will investigate further. M23
  25. c.haslam, In the full Scite4AutoIt3 package (and if you do not use it you really should) there is a menu item: <Search-Clear All Bookmarks>. M23
×
×
  • Create New...