Print Page | Close Window

Drawingproblems with ListView

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=11308
Printed Date: 07 June 2025 at 11:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drawingproblems with ListView
Posted By: Baldur
Subject: Drawingproblems with ListView
Date 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.



Replies:
Posted By: Oleg
Date Posted: 04 July 2008 at 1:35pm
Hi,
 
Just tried. Works fine for me :-(  Please attach sample project with same problem.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Baldur
Date Posted: 05 July 2008 at 5:47am
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 ?


Posted By: Baldur
Date Posted: 15 July 2008 at 7:40am
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: 
Additionally, the Checked-Property can not be set by code.
I try this in the KeyDown-Event, to mark the checkbox also with the spacebar.
 
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.
 
https://forum.codejock.com/uploads/20080715_073915_TestSkins.zip - uploads/20080715_073915_TestSkins.zip
 
VB6-SP6
CJ 12.0.0
XP-SP3



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net