Sign in to follow this  
Followers 0
i542

A Iconview?

2 posts in this topic

Does anybody know a control to make iconview in GUI, like Control Panel.... Please help, it's urgent.

Thank you,

i542.


I can do signature me.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

i do know how...

I had to compile to get it to work

worked with 3.2.8.1

make sure you have 1.bmp, 2.bmp, and 3.bmp

48x48

Also i didn't write this not sure who i just remebered saving it

It doesnt come out perfect it makes some black marks in the coner...

#include <GUIConstants.au3>

; Picture location
Dim $Picture1 = @ScriptDir & '\1.bmp'
Dim $Picture2 = @ScriptDir & '\2.bmp'
Dim $Picture3 = @ScriptDir & '\3.bmp'
GUICreate("listview pics", 400, 200 )

$XSkin_lst = GuiCtrlCreateListView ("",10,10,120,150)
GUICtrlSetStyle(-1, BitOR($LVS_SHOWSELALWAYS, $LVS_SINGLESEL))
for $x = 1 to 5
GUICtrlCreateListViewItem("Picture Here", $XSkin_lst)
GUICtrlSetImage(-1, $Picture1, 0)

GUICtrlCreateListViewItem("Another Here", $XSkin_lst)
GUICtrlSetImage(-1, $Picture2, 0)

GUICtrlCreateListViewItem("Guess what's Here", $XSkin_lst)
GUICtrlSetImage(-1, $Picture3, 0)
Next
$button = GuiCtrlCreateButton ("Select-a-Pic",10,170,100,20)
GuiSetState()


Do
  $msg = GuiGetMsg ()
     
   If $msg = $button Then MsgBox(0,"listview item",GUICtrlRead(GUICtrlRead($XSkin_lst)),2)
   
Until $msg = $GUI_EVENT_CLOSE
Edited by DBak

[center][/center]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0