Print Page | Close Window

Shortcut Bar - with multiple views

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=5565
Printed Date: 11 November 2025 at 8:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Shortcut Bar - with multiple views
Posted By: Warren
Subject: Shortcut Bar - with multiple views
Date Posted: 20 November 2006 at 4:49pm
I'm using version ToolkitPro version 10.3.1, and building an MFC SDI app with the Shortcut Bar (it is very much like the Shortcut Bar sample at this point) This is probably an easy question, and I'm just not seeing the solution...

Basically, what I want to do is similar to the Shortcut Bar Sample, but I would like my CView-derived view to be switched when I select a new pane. (e.g. when you select "Mail" or "Contacts" or "Folders" in the sample, a new view would be swapped in place of the old view). I've thought of a more complicate way to get around it, but I imagine there might be a simple way to do this?

Any help would be much appreciated (maybe this could be added to the sample too, if this is a common question???)

Thanks

Warren





Replies:
Posted By: Oleg
Date Posted: 21 November 2006 at 12:47am
Hi,
what did you try ?
All you need create new view pointer, save old, call pFrameWnd->SetActiveView(pView) to activate it 


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


Posted By: Warren
Date Posted: 24 November 2006 at 11:37am
Thanks for your tip, Oleg! I got the view switching going.

What I want to do now is create "hyperlink buttons" with images. In the Shortcut bar sample, the control is a tree control, so the items don't get the "active" underlining when the mouse goes over them.

Basically, I want the buttons to look like the interior of the task panel sample, when the theme is set to "custom". Here is an image of what I want to do:

http://www.iconsreview.com/task_panel_shortcut_bar.PNG - http://www.iconsreview.com/task_panel_shortcut_bar.PNG

What is the best way to go about this? I thought of the following:

1) Get the tree control to draw in the underline style?
2) Insert a task panel in one of the panes of the shortcut bar?

What do you suggest?




Posted By: Oleg
Date Posted: 25 November 2006 at 11:15am

Hi,



-------------
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