ImageListID : ILCreate(10) Create an ImageList to hold 10 small icons. Here is a working example that demonstrates how to put icons into a ListViews rows: Gui, Add, ListView, h200 w180, Icon & NumberDescription Create a ListView. Expand collapse popup #include #include #include #include #include Global $frame Global $step = 1 Global $steps_min = 1 Global $steps_max = 7 _GDIPlus_Startup ( ) $Form1 = GUICreate ( "Bla Bla Bla", 641, 481, 382, 192 ) $Button1 = GUICtrlCreateButton ( "Previous", 392, 448, 75, 25, 0 ) $Button2 = GUICtrlCreateButton ( "Cancel", 472, 448, 75, 25, 0 ) $Button3 = GUICtrlCreateButton ( "Next", 552, 448, 75, 25, 0 ) Global $hImage1 = _GDIPlus_ImageLoadFromFile ( "Picture1.bmp" ) $Label1 = GUICtrlCreateLabel ( "", 8, 16, 620, 41, $SS_RIGHT ) GUICtrlSetFont ( - 1, 24, 800, 0, "Arial" ) GUICtrlSetColor ( - 1, 0xFFFFFF ) GUICtrlSetBkColor ( - 1, $GUI_BKCOLOR_TRANSPARENT ) $Label2 = GUICtrlCreateLabel ( "Test", 8, 56, 615, 25, $SS_RIGHT ) GUICtrlSetFont ( - 1, 16, 800, 0, "Arial" ) GUICtrlSetColor ( - 1, 0xFFFFFF ) GUICtrlSetBkColor ( - 1, $GUI_BKCOLOR_TRANSPARENT ) Start creating frames $offset_x = 8 $offset_y = 109 Draw PNG image Global $hGraphic = _GDIPlus_GraphicsCreateFromHWND ( $Form1 ) _GDIPlus_GraphicsDrawImage ( $hGraphic, $hImage1, 300, 300 ) Frame 1 $frame = 1 $frame = GUICtrlCreateLabel ( "Step1", $offset_x, $offset_y, 625, 321 ) Frame 2 $frame = 1 $frame = GUICtrlCreateLabel ( "Step2", $offset_x + 8, $offset_y, 350, 100 ) Frame 3 $frame = 1 $frame = GUICtrlCreateLabel ( "Step3", $offset_x + 8, $offset_y, 350, 100 ) ShellExecute ( "File. This is the number to which the script refers to display a particular icon in a row or column header.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |