Drop Down Color Picker
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=2393
Printed Date: 09 November 2025 at 7:36am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Drop Down Color Picker
Posted By: Toxick
Subject: Drop Down Color Picker
Date Posted: 16 June 2005 at 5:03pm
Hi there,
I have a question about the dropdown color picker toolbar item. If I
have a toolbar docked at the bottom of my application window, and my
application window is maximized, the color pallette is dropped off the
bottom of the window. Is there a way already built in for the window to
"drop upwards"?
If not, I don't mind checking it, and repositioning the window myself -
however, I'm having a very hard time making the Message Handlers get
handled. For instance in the CMainFrame class of the sample
ColorPickerToolbar application, I add this:
ON_CPN_XT_DROPDOWN(ID_PICK_COLOR, OnDropDown) |
and this:
void CMainFrame::OnDropDown(void)
{
...
}
|
along with the approprate prototype in the class definition.
But the OnDropDown handler never gets called.
I know I'm a total noob to the XT tools, but a little direction would help a lot!
------------- This signature intentionally left blank
|
Replies:
Posted By: Toxick
Date Posted: 16 June 2005 at 7:49pm
I got around my problem, as explained above.
I derived a class which extends XTToolBar class. Then I override the
CreateNewColorPopup function, and check the rect parameter against the
bottom of the user's screen. If it's too close, offset the rectangle
upwards.
Thanks anyway.
------------- This signature intentionally left blank
|
|