Print Page | Close Window

OutlookBar item selection...

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=10389
Printed Date: 15 November 2025 at 2:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OutlookBar item selection...
Posted By: evoX
Subject: OutlookBar item selection...
Date Posted: 28 April 2008 at 10:48pm

How can I change the current selected item of OutlookBar without user intervention?

 
I use this code, but it does not change the selection focus
 

m_wndOutlookBar.GetAt(6)->SetExpanded(TRUE); // open the folder

m_wndOutlookBar.PostMessage( OBN_XT_ITEMCLICK, CMD_ITEM2 ); // simulate mouse click 



Replies:
Posted By: Oleg
Date Posted: 29 April 2008 at 12:40am
Hi,
OutlookBar is very obsolete control. Use CXTPTaskPanel instead.


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


Posted By: evoX
Date Posted: 29 April 2008 at 8:47am
I used the code from the latest sample from version 11.2.2 
 

CXTPOfficeBorder<CXTPTaskPanel> m_wndOutlookBar;



Posted By: Oleg
Date Posted: 29 April 2008 at 8:54am
oh ok.
 
try this
m_wndOutlookBar.SetFocusedItem(m_wndOutlookBar.GetAt(6));
 
 
 OBN_XT_ITEMCLICK is message of CXTOutBarCtrl - not CXTPTaskPanel.


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


Posted By: evoX
Date Posted: 29 April 2008 at 9:17am
Hi,
  No, it does nothing.
  the item is not highlighted. And I think your code sets the focus to folder 6, I need to set the selection to an item not to folder.
 
 


Posted By: Oleg
Date Posted: 29 April 2008 at 2:34pm
to item:
 
m_wndOutlookBar.SetFocusedItem(m_wndOutlookBar.GetAt(6)->GetAt(0));


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


Posted By: evoX
Date Posted: 29 April 2008 at 7:26pm
thanks, now it works



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