Solved Gridlines in VIS-ListView (CTD 1.5)

forum.sourcecode (2000-2005) & (2005-2010)
Walter Moser

Gridlines in VIS-ListView (CTD 1.5)

Post by Walter Moser » 09 Jun 2006, 11:59

 Posted by:  Walter Moser 

Hi there,

is there a possibility, to change the extended Style of a VIS-ListView (CTD
1.5), to show Gridlines at any row?
In VB or VC++, i can set the Properties. How to do it in CTD?

Thanks for any hint and help

Walter Moser
bowi GmbH

Thomas Lauzi

Re: Gridlines in VIS-ListView (CTD 1.5)

Post by Thomas Lauzi » 09 Jun 2006, 13:41

 Posted by:  Thomas Lauzi 

Hi Walter, try this...

Code: Select all

!!CB!! 279
Function: SetExtendedStyle
  Number: p_nStyle
   ! LVS_EX_* contants
  Boolean: p_bOn
 Static Variables
 Local variables
  Return SalSendMsg (GetWindow ( hWndItem, GW_CHILD ), LVM_SETEXTENDEDLISTVIEWSTYLE, p_nStyle, VisNumberChoose ( p_bOn, p_nStyle,0 ) )

Code: Select all

!!CB!! 208
Number: LVS_EX_GRIDLINES        = 0x00000001
Number: LVS_EX_SUBITEMIMAGES    = 0x00000002
Number: LVS_EX_CHECKBOXES       = 0x00000004
Number: LVS_EX_TRACKSELECT      = 0x00000008
Number: LVS_EX_HEADERDRAGDROP   = 0x00000010
Number: LVS_EX_FULLROWSELECT    = 0x00000020 ! - applies to report mode only
Number: LVS_EX_ONECLICKACTIVATE = 0x00000040
Number: LVS_EX_TWOCLICKACTIVATE = 0x00000080
Number: LVS_EX_FLATSB           = 0x00000100
Number: LVS_EX_REGIONAL         = 0x00000200
Number: LVS_EX_INFOTIP          = 0x00000400 ! - listview does InfoTips for you
Number: LVS_EX_UNDERLINEHOT     = 0x00000800
Number: LVS_EX_UNDERLINECOLD    = 0x00001000
Number: LVS_EX_MULTIWORKAREAS   = 0x00002000
Number: LVS_EX_LABELTIP         = 0x00004000 ! - listview unfolds partly hidden labels if it does not have infotip text
Number: LVS_EX_BORDERSELECT     = 0x00008000 ! - border selection style instead of highlight
Number: LVS_EX_DOUBLEBUFFER     = 0x00010000
Number: LVS_EX_HIDELABELS       = 0x00020000
Number: LVS_EX_SINGLEROW        = 0x00040000
Number: LVS_EX_SNAPTOGRID       = 0x00080000  ! - Icons automatically snap to grid.
Number: LVS_EX_SIMPLESELECT     = 0x00100000  ! - Also changes overlay rendering to top right for icon mode.
Thomas L.

Walter Moser

Re: Gridlines in VIS-ListView (CTD 1.5)

Post by Walter Moser » 09 Jun 2006, 14:36

 Posted by:  Walter Moser 

Hi Thomas,

fine! It works pretty good.
Thanks a lot!



Re: Gridlines in VIS-ListView (CTD 1.5)

Post by as » 12 Jun 2006, 13:10

 Posted by:  as 


Walter Moser

Re: Gridlines in VIS-ListView (CTD 1.5)

Post by Walter Moser » 13 Jun 2006, 16:51

 Posted by:  Walter Moser 


Thanks so far!
OK, it works all good

Constant value of LVM_SETEXTENDEDLISTVIEWSTYLE is 0x1036

My next question is how to change the rowheight of the ListView cause the
Icons displayed are too small.
Is there any Message to send or a hidden property to say RowHeight=xxx ??


Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 1 guest