Print Page | Close Window

ListCtrl Event

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=23655
Printed Date: 18 April 2024 at 11:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ListCtrl Event
Posted By: GWLee
Subject: ListCtrl Event
Date Posted: 13 June 2018 at 9:28pm
Hello All,

I hope this is the correct forum, my apologies if it is not.

We have recently reveiwed to v18.4 of CodeJock Trial Sample Project.

I would like to create the following list controls through the toolkit.

The project being referenced is GUI _ Eclipse, which refers to the Tasks tab of the Pane control.



However, there are no examples of events here, such as double clicking on the list to modify it and changing themes.



Is there an event sample from the list control on the toolkit?

For example, how can I make samples, such as double clicking on the list and changing the color or inserting images, as in the picture above?


Please help.

Many thanks.

GWLee




Replies:
Posted By: olebed
Date Posted: 15 June 2018 at 6:13am
Hello GWLee,

You can find more extended example of using CXTPListCtrl in Samples\Controls\ListCtrl\ListCtrlDlg.h

CXTPListCtrl is inherited from CListCtrl so you can use common notyfication handling.
I have added next code to Samples\Controls\ListCtrl
    BEGIN_MESSAGE_MAP(CListCtrlDlg, CXTPResizeDialog)
    ....
    ON_NOTIFY(NM_CLICK, IDC_LIST_CTRL, OnListClick)
    END_MESSAGE_MAP()
    
    void CListCtrlDlg::OnListClick(NMHDR* pNMHDR, LRESULT* pResult)
    {
    // add something
    }
However for your purposes will be better ReportControl.

Regards,
 Oleksandr Lebed



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