1. IDE 1.0.3b single column ListView

Hi Judith,

I want to create a ListView with a single column. My attempts to do so via the
IDE keep being thwarted. I'm unsure whether this is a bug or a restriction.

Here's how I've tried to do it:

 1) Create a ListView control
 2) Right click on it -> List View Styles Explorer
 3) Click on "To Column Data"
 4) Click on the default "ListView2" Title and change it to "Name"
 5) Click Change
 6) Click Ok
 7) Click "Transfer To Properties"

    NOTE: The Caption now shows as "Name",""

 8) If I press F5 to run the code there are two columns, it's not
    immediately obvious because of the horizontal scroll bar.

 9) I can change the Caption to "Name" and get the result I want but if
    I revisit the List View Styles Explorer then the Caption is changed
    again to "Name",""

I also wanted the single column to be the width of the ListView. I found that
the ListView explorer appeared to let me set it by setting "Specific Width" and
196. However that setting didn't take until I also chose "Specific Width" in the
"Override Column Width" group in the Visual List View Styles window. That may not
be a bug, that might just be my misunderstanding of how to drive the IDE.

Perhaps you could comment on whether I'm approaching things wrongly or whether
perhaps the IDE could be improved to make this sort of thing more obvious.

All the best,
Cheers,
Mark

new topic     » topic index » view message » categorize

2. Re: IDE 1.0.3b single column ListView

marky1124 wrote:
> Perhaps you could comment on whether I'm approaching things wrongly or whether
> perhaps the IDE could be improved to make this sort of thing more obvious.
> 
> All the best,
> Cheers,
> Mark

ListView Explorer has always been awkward to use. I do not have a lot of
experience with ListView control.

One reason the empty column 2 shows up in IDE Property Caption is simply because
someone wanted a captioned column and an unnamed column. At the time I couldn't
figure out how to accommodate that as well as only the first column caption.
There may need to be an extra checkbox to indicate that.

Further compounding ListView Explorer is that when I originally wrote this
module Win32lib had not added a lot of the routines which make it easier to
create the control. It has been on my todo list, and promptly neglected, to bring
ListView createEx up to par.

Let's see now; have I made all my excuses and "and buts"? 

Seriously I'd be happy to work with you on improving ListView Explorer and the
resultant ListView generated control.

I'll e-mail you,

judith

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu