Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - xtpButtonIcon Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

xtpButtonIcon Problem

 Post Reply Post Reply
Author
Message
douglashogan View Drop Down
Groupie
Groupie


Joined: 02 July 2003
Location: Switzerland
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote douglashogan Quote  Post ReplyReply Direct Link To This Post Topic: xtpButtonIcon Problem
    Posted: 21 February 2004 at 9:02am

A control created with the following styles...

   lpCreateControl->controlType = xtpControlPopup;
   lpCreateControl->buttonStyle = xtpButtonIcon;

should have tooltip and status bar text because it is a button. However, the SetID function which extracts the tooltip and stauts text never gets called. Instead you take the string from the popup menu. Should have option somewhere to set this via string table entry with the same ID.

 

Regards
Douglas Hogan
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2004 at 11:09am

you can use xtpControlButtonPopup

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
douglashogan View Drop Down
Groupie
Groupie


Joined: 02 July 2003
Location: Switzerland
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote douglashogan Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2004 at 7:12pm
Problem is that we lose the downarrow button then.
Regards
Douglas Hogan
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2004 at 9:16pm
I am not sure what you mean by a down arrow.  I am assuming you are adding this control to the active menubar so you don't want an icon on the button.  How about xtpControlSplitButtonPopup without an icon? You would have to click on the arrow to get the menu though.  This gives a down arrown next to the text.  Not sure if that is what you meant.
Back to Top
douglashogan View Drop Down
Groupie
Groupie


Joined: 02 July 2003
Location: Switzerland
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote douglashogan Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2004 at 10:44am

I mean that I want to click on a toolbar button which generates a popup menu. The issue is that I also want the little down arrow next to the button which indicates clearly that it is a toolbar button which displays a menu as opposed to an ordinary toolbar button. xtpControlSplitButtonPopup is OK but it separates the buttton from the downarrow. I want it to work as a unit.

 

Regards
Douglas Hogan
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.172 seconds.