Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Drop Down Color Picker
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drop Down Color Picker

 Post Reply Post Reply
Author
Message
Toxick View Drop Down
Newbie
Newbie
Avatar

Joined: 16 June 2005
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Toxick Quote  Post ReplyReply Direct Link To This Post Topic: Drop Down Color Picker
    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
Back to Top
Toxick View Drop Down
Newbie
Newbie
Avatar

Joined: 16 June 2005
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Toxick Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.