Print Page | Close Window

Toobar Focus Issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=9121
Printed Date: 24 April 2024 at 5:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toobar Focus Issue
Posted By: Makarand
Subject: Toobar Focus Issue
Date Posted: 17 December 2007 at 4:22am
Hi Oleg,

I have created toolbar on a dialog. On Dialog I have grid view.
 
VERIFY(m_ToolBar.CreateToolBar(WS_CHILD | WS_VISIBLE | CBRS_TOP, this));
VERIFY(m_ToolBar.LoadToolBar(IDR_LINKTOOLBAR));

I set the grid view property SetFocus() in OnTimer(..) Function, but focus still on toolbar. when I press the "esc" kay or click on grid view then only toolbar lost the focus.

Logically when I call the grid.SetFocus() toolbar should lost the focus.
I want to set the focus on grid view not on toolbar when dialog is open.

(I am not using CommandBar to create the toolbar)

Waiting for reply.
Thanks.



Replies:
Posted By: Oleg
Date Posted: 17 December 2007 at 1:23pm
Hi,
 
add
 
XTPMouseManage()->SendTrackLost(); after SetFocus.


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



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