sergeyWolf Posted July 11, 2011 Posted July 11, 2011 here is example expandcollapse popup#include <GuiConstantsEx.au3> #include <GuiListView.au3> #include <GuiImageList.au3> Opt ('MustDeclareVars', 1) Local $main_gui, $main_action, $main_view Local $hImage $main_gui = GUICreate ("main gui", 400, 300) $main_view = GUICtrlCreateListView ("", 0, 150, 400, 150) ; Enable extended control styles GUISetState(@SW_SHOW) ; Load images $hImage = _GUIImageList_Create() _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($main_view, 0xFFFFFF, 16, 16)) _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($main_view, 0xFF0000, 16, 16)) _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($main_view, 0x00FF00, 16, 16)) _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($main_view, 0x0000FF, 16, 16)) _GUICtrlListView_SetImageList($main_view, $hImage, 1) ; Add columns _GUICtrlListView_AddColumn($main_view, "Time", 100) _GUICtrlListView_AddColumn($main_view, "Action", 100) ; Add items _GUICtrlListView_AddItem ($main_view, "Row 1: Col 1",3) _GUICtrlListView_AddSubItem ($main_view, 0, "Row 1: Col 2", 1, 1) _GUICtrlListView_AddItem ($main_view, "Row 2: Col 1",2) While True $main_action = GUIGetMsg() Switch $main_action Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd part of it is from help docs i can't understand how to set image or icon pls help whith "edited" example - I want program that crack all other programs...- Let's split up, i'll search this program and you'll find crack for it. ^_^'
sergeyWolf Posted July 11, 2011 Author Posted July 11, 2011 sorry founded, my bad _GUIImageList_AddIcon and _GUIImageList_AddBitmap - I want program that crack all other programs...- Let's split up, i'll search this program and you'll find crack for it. ^_^'
sergeyWolf Posted July 11, 2011 Author Posted July 11, 2011 hm, so got another question how to load .png image to _GUIImageList_Create() (need PNG because of background color, under image) ? i tried use icons.au3 UDF but can't understand how to use it what i currently've got expandcollapse popup#include <GuiConstantsEx.au3> #include <GuiListView.au3> #include <GuiImageList.au3> #include <WindowsConstants.au3> #include <D:\Icons.au3> Opt ('MustDeclareVars', 1) Local $main_gui, $main_action, $main_view Local $hImage $main_gui = GUICreate ("main gui", 400, 300) $main_view = GUICtrlCreateListView ("", 0, 150, 400, 150) ; Enable extended control styles GUISetState(@SW_SHOW) ; Load images $hImage = _GUIImageList_Create() _GUIImageList_AddBitmap ($hImage, _SetImage("", "n.PNG", 0)) _GUIImageList_AddBitmap ($hImage, "y.bmp") _GUICtrlListView_SetImageList($main_view, $hImage, 1) _GUICtrlListView_SetBkColor ($main_view, 0x222222) ; Add columns _GUICtrlListView_AddColumn($main_view, "Time", 100) _GUICtrlListView_AddColumn($main_view, "Action", 100) ; Add items _GUICtrlListView_AddItem ($main_view, "Row 1: Col 1", 0) _GUICtrlListView_AddItem ($main_view, "Row 1: Col 1", 2) _GUICtrlListView_AddSubItem ($main_view, 0, "Row 1: Col 2", 1, 1) _GUICtrlListView_AddItem ($main_view, "Row 2: Col 1", 1) While True $main_action = GUIGetMsg() Switch $main_action Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd - I want program that crack all other programs...- Let's split up, i'll search this program and you'll find crack for it. ^_^'
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now