Jump to content

Recommended Posts

Im creating a gui which will be used to hold alot of infomation !

Im using GUICtrlCreateList to create lists with colums and rows.

Heres my problem.... Id like to have the colums and rows drawn !

Heres what my gui looks like !!!

and heres what im trying to do, as u can see the visible grids display infomation more clearly.

Any sugestions on how I can get my List to display a grid ?

Edited by Nova
Link to post
Share on other sites

Global Const $LVS_EX_GRIDLINES = 0x1;

; Note that this is an Extended Styl

GUICtrlCreateListView ("one|two|three",10,10,200,200, -1, $LVS_EX_GRIDLINES)

if you want full row select also

Global Const $LVS_EX_GRIDLINES = 0x1
Global Const $LVS_EX_FULLROWSELECT = 0x20

; Note that this is an Extended Styl
GUICtrlCreateListView ("one|two|three",10,10,200,200, -1, $LVS_EX_GRIDLINES+$LVS_EX_FULLROWSELECT)
Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to post
Share on other sites

Don't know how many of these can be used, but here you go:

Global Const $LVS_ALIGNLEFT = 0x800;

Global Const $LVS_ALIGNMASK = 0xc00;

Global Const $LVS_ALIGNTOP = 0x0;

Global Const $LVS_AUTOARRANGE = 0x100;

Global Const $LVS_EDITLABELS = 0x200;

Global Const $LVS_ICON = 0x0;

Global Const $LVS_LIST = 0x3;

Global Const $LVS_NOCOLUMNHEADER = 0x4000;

Global Const $LVS_NOLABELWRAP = 0x80;

Global Const $LVS_NOSCROLL = 0x2000;

Global Const $LVS_NOSORTHEADER = 0x8000;

Global Const $LVS_OWNERDATA = 0x1000;

Global Const $LVS_OWNERDRAWFIXED = 0x400;

Global Const $LVS_REPORT = 0x1;

Global Const $LVS_SHAREIMAGELISTS = 0x40;

Global Const $LVS_SHOWSELALWAYS = 0x8;

Global Const $LVS_SINGLESEL = 0x4;

Global Const $LVS_SMALLICON = 0x2;

Global Const $LVS_SORTASCENDING = 0x10;

Global Const $LVS_SORTDESCENDING = 0x20;

Global Const $LVS_TYPEMASK = 0x3;

Global Const $LVS_TYPESTYLEMASK = 0xfc00;

Global Const $LVS_EX_BORDERSELECT = 0x8000;

Global Const $LVS_EX_CHECKBOXES = 0x4;

Global Const $LVS_EX_DOUBLEBUFFER = 0x10000;

Global Const $LVS_EX_FLATSB = 0x100;

Global Const $LVS_EX_FULLROWSELECT = 0x20;

Global Const $LVS_EX_GRIDLINES = 0x1;

Global Const $LVS_EX_HEADERDRAGDROP = 0x10;

Global Const $LVS_EX_HIDELABELS = 0x20000;

Global Const $LVS_EX_INFOTIP = 0x400;

Global Const $LVS_EX_LABELTIP = 0x4000;

Global Const $LVS_EX_MULTIWORKAREAS = 0x2000;

Global Const $LVS_EX_ONECLICKACTIVATE = 0x40;

Global Const $LVS_EX_REGIONAL = 0x200;

Global Const $LVS_EX_SINGLEROW = 0x40000;

Global Const $LVS_EX_SNAPTOGRID = 0x80000;

Global Const $LVS_EX_SUBITEMIMAGES = 0x2;

Global Const $LVS_EX_TRACKSELECT = 0x8;

Global Const $LVS_EX_TWOCLICKACTIVATE = 0x80;

Global Const $LVS_EX_UNDERLINECOLD = 0x1000;

Global Const $LVS_EX_UNDERLINEHOT = 0x800;

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to post
Share on other sites

here's a couple more CyberSlug

Global Const $LVM_SETTEXTBKCOLOR = 0x1026
Global Const $LVM_SETTEXTCOLOR = 0x1024 

GUICtrlSendMsg($ListView, $LVM_SETTEXTCOLOR, 0, 0xffffff)
GUICtrlSendMsg($ListView, $LVM_SETTEXTBKCOLOR, 0, 0x000000)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to post
Share on other sites

As far as I could tell the following extended style that are uncommented work:

;~ Global Const $LVS_EX_BORDERSELECT = 0x8000
Global Const $LVS_EX_CHECKBOXES = 0x4
Global Const $LVS_EX_DOUBLEBUFFER = 0x10000
Global Const $LVS_EX_FLATSB = 0x100
Global Const $LVS_EX_FULLROWSELECT = 0x20
Global Const $LVS_EX_GRIDLINES = 0x1
Global Const $LVS_EX_HEADERDRAGDROP = 0x10
;~ Global Const $LVS_EX_HIDELABELS = 0x20000
Global Const $LVS_EX_INFOTIP = 0x400
;~ Global Const $LVS_EX_LABELTIP = 0x4000
Global Const $LVS_EX_LEFTVSCROLL = 0x4000
Global Const $LVS_EX_MULTIWORKAREAS = 0x2000
;~ Global Const $LVS_EX_ONECLICKACTIVATE = 0x40
Global Const $LVS_EX_REGIONAL = 0x200
Global Const $LVS_EX_SINGLEROW = 0x40000
;~ Global Const $LVS_EX_SNAPTOGRID = 0x80000
Global Const $LVS_EX_SUBITEMIMAGES = 0x2
Global Const $LVS_EX_TRACKSELECT = 0x8
;~ Global Const $LVS_EX_TWOCLICKACTIVATE = 0x80
Global Const $LVS_EX_UNDERLINEHOT = 0x80
;~ Global Const $LVS_EX_UNDERLINECOLD = 0x1000
;~ Global Const $LVS_EX_UNDERLINEHOT = 0x800

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to post
Share on other sites

What about the itunes style list effect !

Every second ListItem is a different colour !

If you have used itunes u know the style im talking about !

I dont have a screenshot at the moment because im in school, I can post one later if needed !

Anyone know what I have to do to achieve this style ?

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...