Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Drawingproblems with ListView
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drawingproblems with ListView

 Post Reply Post Reply
Author
Message
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Topic: Drawingproblems with ListView
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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 ?
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
 
 
VB6-SP6
CJ 12.0.0
XP-SP3
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.