Print Page | Close Window

Pane and CXTListCtrl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2135
Printed Date: 07 November 2025 at 10:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pane and CXTListCtrl
Posted By: Atlantis
Subject: Pane and CXTListCtrl
Date Posted: 21 April 2005 at 2:47am

Hi, I'm using your PaneOptions Demo as a skeleton for a new application. I use a

XPTListCtrl , and have the problem that I'am not

able to use the vertical scroller. Its always grayed out, if the content of the Ctrl is

larger as the viewable space.

And i'am add checkboxes to this list. And if  i add imagelist with large icon or bitmaps the checkboxes align to the bottom. How it's align to the middle or center.

Thank you for your help




Replies:
Posted By: jwhagen
Date Posted: 22 April 2005 at 6:41am
I have the same problem with my application. I have found that if I click where the top and bottom arrows aof the scrollbar are supposed to be located, they show up and then stay in view. It's weird... However, I do not have a solution either.


Posted By: jwhagen
Date Posted: 28 April 2005 at 4:19pm

I found that if you initialize the list control with data, the scroll bar appears and works as you would expect. Put the following code at the end of your InitListControl() function.

// Makes the vertical scroll bar display with the arrows.
 int    iItem;
 CString    strItem;
 for (iItem = 0; iItem < 25; ++iItem) {
  strItem.Format(_T(""));
  m_pListCtrl.InsertItem(iItem, strItem, 0);
 }

You may need to change the 25 to a higher value. Represents the number of rows to initialize. If this doesn't work, change 25 to 200 and test it again.

John




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