Jump to content

htrd

Members
  • Posts

    8
  • Joined

  • Last visited

htrd's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hey, I have an issue with the ResourcesEX include and don't know what I'm doing wrong. My script works fine but as soon as I include ResourcesEX or ResourcesEX_PE I get a lot of error messages when trying to compile the script. Other includes that I use in the script are: #include <Date.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <Misc.au3> #include <String.au3> #include <MsgBoxConstants.au3> #include <Timers.au3> I hope someone can help me to get the functions included in the UDF working because I need to use the _Resource_SetImageToCtrl function in my script. I have AutoIT 3.3.8.1 and Scite 3.2.0.0 running. The whole script would be too much to post here but if you need any more information just let me know. Thanks in advance! Cheers htrd
  2. Well, I thought of using an empty icon myself, I guess that works and it's a nice workaround of course, but I wanted to know if I can completely destroy the icon so that the text of the ListViewItem is left-alligned without a gap. That's just for cosmetical purposes of course. Maybe someone has another solution to it, anyway thanks for your help JLogan3o13! Cheers htrd
  3. $aLabelSender[$i] = GUICtrlCreateListViewItem("", $LVStreams) GUICtrlSetData($aLabelSender[$i], $message & "|" & $statestream & "|" & $remaining & "%") GUICtrlSetFont($aLabelSender[$i], 9, 800) If $aStreaming[$i] = 1 Then If $aColor[$i] = "0x00cc33" Then ; Else GUICtrlSetColor($aLabelSender[$i], 0x00cc33) GUICtrlSetImage($aLabelSender[$i], "shell32.dll", 148) $aColor[$i] = "0x00cc33" EndIf Else If $aColor[$i] = "0x63CC00" Then ; Else GUICtrlSetColor($aLabelSender[$i], 0x63CC00) $aColor[$i] = "0x63CC00" ; HERE I WANT TO REMOVE THE ICON EndIf EndIf Here's a code snippet of what I do and what I want to achieve.
  4. Hi, how can I destroy an icon I created for a control by GUICtrlSetImage() ? I want to create an icon for a ListViewItem created by GUICtrlCreateListViewItem(). This works fine by using the func G'UICtrlSetImage() on the ListViewItem handle. Now I want the ListViewItem to be displayed without an icon. How can I do that? I already tested with GUICtrlSendMsg() but didn't come to a working result. I also tried the function posted in this thread: ...but this function doesn't seem to work either (at least on a ListViewItem). Thanks in advance for your help guys! Cheers htrd
  5. I don't quite understand why but this works like a charm! Thanks for the help Melba
  6. Thanks Melba, I will implement it in my code tommorow and then give you some feedback. Hope it works!
  7. Hey Melba, thanks for your reply! The difference is that after creating the controls in the specific tab, I end the creation with GUICtrlCreateTabItem(""). The AutoIT help says: To create a new control on an existing tabitem use GUISwitch($hWin,$tabitem) to select it and just create your new control. Don't forget to close your tabitem creation with GUICtrlCreateTabItem(""). I understand that I have to to use GUICtrlCreateTabItem("") after every change of the tab controls. If I omit it it works! But I don't know if that's the right way and won't cause other errors/behaviors. Also when using your code, when you first click on tab 1 and then you click on the Action Button, you don't see the change until you switch the tab and switch back to tab 1.
  8. Hi, I have a tab control in my GUI, which I want to create controls in - after creation of the GUI and the tab control. My problem is: To create or edit controls in the desired tab I have to switch to the tab with GUISwitch(...). Now when AutoIT switches to the tab, this is visible in the GUI. I want to be able to edit contols in the tab in the "background" so that the user doesn't see that this happens. I know that I can manually switch back to another tab by using GUISetState(), but I don't want the switching to be noticed at all, can anyone tell me how this is manageable? Thanks in advance PS: I know that I could set the GUI state to @SW_SHOW after all has been done, but that would be just a workaround.
×
×
  • Create New...