Jump to content

IronFine

Active Members
  • Posts

    20
  • Joined

  • Last visited

Recent Profile Visitors

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

IronFine's Achievements

Seeker

Seeker (1/7)

10

Reputation

  1. You have something like this in mind? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiListView.au3> #include <GuiImageList.au3> Global $mainGUI = GUICreate("Custom Dropdown ListView", 300, 150) Global $btnSelect = GUICtrlCreateButton("Select option", 50, 40, 200, 30) Global $lblSelected = GUICtrlCreateLabel("Selected: None", 50, 90, 200, 20) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $btnSelect ShowCustomDropdown() EndSwitch WEnd Func ShowCustomDropdown() Local $childGUI = GUICreate("", 220, 150, WinGetPos($mainGUI)[0] + 50, WinGetPos($mainGUI)[1] + 70, _ $WS_POPUP, $WS_EX_TOOLWINDOW, $mainGUI) Local $dummyBegin = GUICtrlCreateDummy() Local $lv = GUICtrlCreateListView("Option 0", 0, 0, 220, 150, BitOR($LVS_REPORT, $LVS_SINGLESEL)) GUICtrlSendMsg($lv, $LVM_SETCOLUMNWIDTH, 0, 200) Local $items[6] = ["Option 1", "Option 2", "---", "Option 3", "---", "Option 4"] For $i = 0 To UBound($items) - 1 Local $itemID = GUICtrlCreateListViewItem($items[$i], $lv) If $items[$i] = "---" Then GUICtrlSetColor($itemID, 0x888888) GUICtrlSetBkColor($itemID, 0xF0F0F0) EndIf Next Local $dummyEnd = GUICtrlCreateDummy() GUISetState(@SW_SHOW, $childGUI) While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE GUIDelete($childGUI) ExitLoop Case $dummyBegin To $dummyEnd If GUICtrlRead($msg) <> "---" Then GUICtrlSetData($lblSelected, "Selected: " & GUICtrlRead($msg)) GUIDelete($childGUI) ExitLoop EndIf EndSwitch WEnd EndFunc ;==>ShowCustomDropdown
  2. Yes, you are absolutley right. It is gonna be the next character. And it is more about me being used to the ( not being automatically added in all the other IDE I am working with.
  3. Without subclassing the control you only try to revert to the old entry, when the user selects it: #include <GUIConstantsEx.au3> $hGUI = GUICreate("ComboBox with Fake Separator", 300, 200) $hCombo = GUICtrlCreateCombo("", 50, 50, 200) GUICtrlSetData($hCombo, "Option 1|Option 2|----------|Option 3|Option 4") GUISetState() Local $prevSelection = "Option 1" GUICtrlSetData($hCombo, $prevSelection) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case Else Local $sel = GUICtrlRead($hCombo) If $sel = "----------" Then GUICtrlSetData($hCombo, $prevSelection) Else $prevSelection = $sel EndIf EndSwitch WEnd
  4. Func _Array_HeaderGet($p_arData, $p_arHdr) If Not IsArray($p_arData) Then Return SetError(0x01, 0, Null) If UBound($p_arData, 2) = 0 Then Return SetError(0x01, 1, Null) If Not IsArray($p_arHdr) Then Return SetError(0x02, 0, Null) Local $arHdr[UBound($p_arHdr)] Local $iHdrToDo = UBound($arHdr) For $iCol = 0 To UBound($p_arData, 2) - 1 For $iHdr = 0 To UBound($p_arHdr) - 1 If $p_arData[0][$iCol] <> $p_arHdr[$iHdr] Then ContinueLoop $arHdr[$iHdr] = $iCol $iHdrToDo -= 1 ExitLoop Next If $iHdrToDo = 0 Then Return SetError(0x00, 0, $arHdr) Next Return SetError(0x01, $iHdrToDo, Null) EndFunc ;==>_Array_HeaderGet I use this, when I need to match/find the header by name in an array.
  5. I do love the autocomplete, but every other IDE I am using (be it Visual Studio Code, Visual Studi, etc.) does not add the "(" after pressing TAB for autocompletion. If there is not option to disable the "(" I will just learn to re-train my muscle memory for SciTe
  6. Sorry, I just realized this the wrong forum and it would be better suited in the GUI help area.
  7. I thought that I have seen it somewhere in the forum, but I can't find it. My goal ist to combine a RichEdit with the features of a ComboBox. The RichEdit is currently used show a selected folder. If the folder is already existing the text is colored green etc. I would like to add a ComboBox to the RichEdit, so that the user can select previous folders. Do I need to build it myself (e.g. using a button that displays a dropdown) or such a functionaly be added as a "native" control?
  8. Is it possible to disable the automatic adding of "(" after function autocomplete?
  9. Sorry, when I was testing I was using reg instead of regedit. Didn't see that, when I was commenting. Make sure to put the filename in quotes, in case you have a whitespace in the filename.
  10. According to the help from ConsoleWrite: The @error and @extended are not set on return leaving them as they were before calling. Usefull when debugging with the SciTE debugging output. Change Run with RunWait and it will be okay.
  11. Good morning, I would love to contribute to either of the extensions. As I mentioned, I have been using VSCode with the Damian/Loganch extension for quite some time, and having the "Problems" tab really speeds up development. What do I love about the genius257 extension? IntelliSense is context-aware. So, if I am typing a variable, it lists everything that is valid in the current context. Combining the best features of both extensions would be amazing!
  12. I just looked at the parser.au3 (just out of curiosity) and while scrolling, I discovered many calls of Execute("") Is this just due to obfuscation or does it serve another purpose?
  13. Is it possible to do a silent install and set my preffered options through cmd-line, @Jos? That would be awesome!
  14. That sounds a lot like my first steps with VSCode. I had to "force" myself to use it and nowadays I love AutoIt @ VSCode. The single biggest improvement for my daily work is the problems tab in VSCode. Getting directly feedback where I have an syntax error or whatnot is so amazing. Having someone like Jos supporting the VSCode extension would be a huge benefits. Judging by all the fantastic work he has done over the last decade with SCITe that could really help to improve the extenstion even further.
  15. I started using VSCode with Damien/Loganch extension 3 years ago. It feels like, I picked up the pace when programming, but that is more due VSCodes capabilites (fast search etc.) For some reasons I sometimes still end up using Scite, most likey because I have been using it for about 15+ years. A community driven extension would be really nice.
×
×
  • Create New...