1. Invisible ListView Columns
- Posted by "Bill" <behaviorself at netzero.net> Mar 06, 2004
- 501 views
Does anyone know if it is possible to have an invisible column in a ListView? I want to be able to keep data for each entry I have in a ListView, but I don't want it to show. I've tried using setColumn() and setting the width to 0, but the column still shows. Also, the heading text for the column shows garbage initially. If I click the column heading, it displays the heading for the previous column. Any help would be much appreciated. Thanks, Virtual B ---
2. Re: Invisible ListView Columns
- Posted by "Greg Haberek" <g.haberek at comcast.net> Mar 06, 2004
- 527 views
Try using EuGrid. It allows you to only display certain elements in the underlying data set. example: constant my_data = { { "1 show 1", "1 show 2", "1 hide 1", "1 show 3" }, { "2 show 1", "2 show 2", "2 hide 1", "2 show 3" } }, myGrid = EGW_CreateGrid( MyWin, 10, 10, 100, 100, True ), -- col_x = EGW_AddColumn( id, name, width, position, type, data_col ) col_1 = EGW_AddColumn( myGrid, "show 1", 100, EGW_LAST, EGW_EDIT, 1 ), col_2 = EGW_AddColumn( myGrid, "show 2", 100, EGW_LAST, EGW_EDIT, 2 ), col_3 = EGW_AddColumn( myGrid, "show 3", 100, EGW_LAST, EGW_EDIT, 4 ) -- note: skipped element 3 -- input my_data VOID = EGW_LoadData( myGrid, my_data, EGW_REPLACE ) now you can use EGW_LoadData() and EGW_UnloadData() to set/retreive your data, edit it, and put it back (using EGW_REPLACE). ~Greg ----- Original Message ----- From: "Virtual B" <behaviorself at netzero.net> To: <EUforum at topica.com> Sent: Saturday, March 06, 2004 1:07 AM Subject: Invisible ListView Columns > > > Does anyone know if it is possible to have an invisible column in a > ListView? I want to be able to keep data for each entry I have in a > ListView, but I don't want it to show. I've tried using setColumn() and > setting the width to 0, but the column still shows. Also, the heading text > for the column shows garbage initially. If I click the column heading, it > displays the heading for the previous column. Any help would be much > appreciated. > > Thanks, > > Virtual B > > > --- > > > > TOPICA - Start your own email discussion group. FREE! > >
3. Re: Invisible ListView Columns
- Posted by "Derek Parnell" <ddparnell at bigpond.com> Mar 06, 2004
- 494 views
----- Original Message ----- From: "Virtual B" <behaviorself at netzero.net> To: <EUforum at topica.com> Subject: Invisible ListView Columns > > > Does anyone know if it is possible to have an invisible column in a > ListView? I want to be able to keep data for each entry I have in a > ListView, but I don't want it to show. I've tried using setColumn() and > setting the width to 0, but the column still shows. Also, the heading text > for the column shows garbage initially. If I click the column heading, it > displays the heading for the previous column. Any help would be much > appreciated. > There is a small bug in the library. In the routine "struct_LVCOLUMN" find the lines ... if lCX > 0 then lMask = or_bits(lMask, LVCF_WIDTH) end if and change them to ... if lCX >= 0 then lMask = or_bits(lMask, LVCF_WIDTH) end if I've now made this change to the next release. However, this doesn't disable column resizing via the mouse. You would be better advised to keep the separate data in an off-screen sequence. -- Derek
4. Re: Invisible ListView Columns
- Posted by "Virtual B" <behaviorself at netzero.net> Mar 08, 2004
- 528 views
Thanks Derek. I'll give that a try. Virtual B ----- Original Message ----- From: Derek Parnell <ddparnell at bigpond.com> To: <EUforum at topica.com> Sent: Saturday, March 06, 2004 12:49 AM Subject: Re: Invisible ListView Columns > > > ----- Original Message ----- > From: "Virtual B" <behaviorself at netzero.net> > To: <EUforum at topica.com> > Sent: Saturday, March 06, 2004 5:07 PM > Subject: Invisible ListView Columns > > > > Does anyone know if it is possible to have an invisible column in a > > ListView? I want to be able to keep data for each entry I have in a > > ListView, but I don't want it to show. I've tried using setColumn() and > > setting the width to 0, but the column still shows. Also, the heading text > > for the column shows garbage initially. If I click the column heading, it > > displays the heading for the previous column. Any help would be much > > appreciated. > > > > There is a small bug in the library. In the routine "struct_LVCOLUMN" find the lines ... > > if lCX > 0 then > lMask = or_bits(lMask, LVCF_WIDTH) > end if > > and change them to ... > > if lCX >= 0 then > lMask = or_bits(lMask, LVCF_WIDTH) > end if > > I've now made this change to the next release. > > However, this doesn't disable column resizing via the mouse. You would be better advised to keep the separate data in an off-screen sequence. > -- > Derek > > > > TOPICA - Start your own email discussion group. FREE! > >
5. Re: Invisible ListView Columns
- Posted by "Virtual B" <behaviorself at netzero.net> Mar 08, 2004
- 508 views
Thanks for the suggestion Greg. At this point I just don't really have the time to make that kind of change. I wanted this for an addition to a prog that I wrote for my brother, and I'm afraid of getting into more than I bargained for by switching a control to one that I'm not familiar with. I will probably look int EuGrid when I have a little more time though. Virtual B ----- Original Message ----- From: Greg Haberek <g.haberek at comcast.net> To: <EUforum at topica.com> Sent: Friday, March 05, 2004 11:47 PM Subject: Re: Invisible ListView Columns > > > Try using EuGrid. It allows you to only display certain elements in the > underlying data set. > > example: > > constant my_data = { > { "1 show 1", "1 show 2", "1 hide 1", "1 show 3" }, > { "2 show 1", "2 show 2", "2 hide 1", "2 show 3" } > }, > > myGrid = EGW_CreateGrid( MyWin, 10, 10, 100, 100, True ), > > -- col_x = EGW_AddColumn( id, name, width, position, type, data_col ) > col_1 = EGW_AddColumn( myGrid, "show 1", 100, EGW_LAST, EGW_EDIT, 1 ), > col_2 = EGW_AddColumn( myGrid, "show 2", 100, EGW_LAST, EGW_EDIT, 2 ), > col_3 = EGW_AddColumn( myGrid, "show 3", 100, EGW_LAST, EGW_EDIT, -- > note: skipped element 3 > > -- input my_data > VOID = EGW_LoadData( myGrid, my_data, EGW_REPLACE ) > > now you can use EGW_LoadData() and EGW_UnloadData() to set/retreive your > data, edit it, and put it back (using EGW_REPLACE). > > ~Greg > > ----- Original Message ----- > From: "Virtual B" <behaviorself at netzero.net> > To: <EUforum at topica.com> > Sent: Saturday, March 06, 2004 1:07 AM > Subject: Invisible ListView Columns > > > > Does anyone know if it is possible to have an invisible column in a > > ListView? I want to be able to keep data for each entry I have in a > > ListView, but I don't want it to show. I've tried using setColumn() and > > setting the width to 0, but the column still shows. Also, the heading > text > > for the column shows garbage initially. If I click the column heading, it > > displays the heading for the previous column. Any help would be much > > appreciated. > > > > Thanks, > > > > Virtual B > > > > > > --- > > > > > > TOPICA - Start your own email discussion group. FREE! > > > > > > > TOPICA - Start your own email discussion group. FREE! > >