Drawingproblems with ListView |
Post Reply |
Author | |
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
Posted: 04 July 2008 at 1:21pm |
I have a VB6-Form with different PicutureBox's to show on different actions of the user.
So i put a PictureBox first, in the PicTureBox i put your GroupBox and than in the GroupBox i put your ListView-Control.
At runtime now the entries will not be drawn correct.
Also i ahve enabled the CheckBox-Style.
If i click on the CheckBox, the CheckBox appears not be checked, but in code, the ListItem.Checked is true.
Now i scroll the ListView for and back and than the CheckBox appears checked.
Additional, i change the ColumnWidth's of the ColumnHeaders.
After ColumnHeaders(1).Width = NewWidth, also the ColumnHeaders(2).Width has the same width and will not accept any more changes.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Just tried. Works fine for me :-( Please attach sample project with same problem.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
Hello,
i'm sorry, but i can't reproduce this with a small project.
I use a lot of controls in the form and it's so heavy to make a small project until this error occurs.
The only thing you can reproduce is:
If i switch between ListView and ReportView, the width in all ColumnHeaders switch to fix 150.
I switch my application to the standard ListView from CommonControls and it works as expected.
Why will the CheckBox not be skinned to Office2007-Style ?
|
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
Ok, i can reproduce somthing, see the attached project.
The view is initialized with xtpListViewList.
If i fill the listbox, the items are shown in small columns.
If i reset the view-property to xtpListViewList, the view changed to wide columns.
If i switch to xtpListViewReport, the ColumnHeader-Width are lost.
To show the dialog, press the start-button.
To fill the list, press then the fill-button.
You can switch between the two views by the buttons List and Detail.
This point is solved, because spacebar toggle checkbox automaticly:
Also, if you navigate the items with the keyboard in listviewlist on the last visible line, the list is not immediatly scrolled to the selected item, you must select the previous/next item in the same column, than the list will be refreshed. This depends on, if the last visible line is full visible.
The standard control will only show full visible lines. If the visable rectangle is a little bit heigher, the standard control leave this region empty.
VB6-SP6
CJ 12.0.0
XP-SP3
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |