dropdown toolbar |
Post Reply |
Author | |
stupid_baby
Newbie Joined: 08 September 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 08 September 2008 at 9:29am |
I want to know how can realize a dropdown toolbar, which means that there is a small arrow in the main toolbar, if you press the arrow, it will pop up a dropdown toolbar.
Thanks,
wang gang.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Check Samples\CommandBars\TearOffPopups sample.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
admitriev
Newbie Joined: 24 November 2008 Location: Russian Federation Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi,
is there any chance to implement the same functionality with no CommandBars interface involvement. In other words, I'd just like to create CXTPPopupToolBar object and to pop up a dropdown toolbar associated with the created object just as user presses the arrow of main toolbar's button.
thanks in advance
|
|
stupid_baby
Newbie Joined: 08 September 2008 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Hi,
Please check Samples\CommandBars\TearOffPopups sample. I haven't done what you said before, but I think the way is similar.
|
|
admitriev
Newbie Joined: 24 November 2008 Location: Russian Federation Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi,
Thanks for prompt reply, man. Eventually I've managed to get it working the way I'd wanted to...
but now I'm stuck with a bit more specific stuff. I strongly need to change icon of the main toolbar's button to the one user chooses from the associated dropdown toolbar.
If you're familiar with AutoCAD and use flyout toolbars, you may know what I mean...
any help would be really much appreciated!
cheers
|
|
admitriev
Newbie Joined: 24 November 2008 Location: Russian Federation Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi again,
after several hours of digging into XT API, I came to conslusion the functionality mentioned above needs to be done by myself. However, there are still a few pending questions on how to properly deal with CXTPControlPopup... I try to create a main toolbar dynamically and then create a popup toolbar which is also done in run-time. The problem is that I can't set any icon against the main toolbar's button which I connect my popup toolbar too. I've tried several approaches but got no success.
Any ideas on how to get it working?
|
|
admitriev
Newbie Joined: 24 November 2008 Location: Russian Federation Status: Offline Points: 8 |
Post Options
Thanks(0)
|
if anybody cares, the problem's been solved by creating a control popup via the CXTPControlPopup static method CXTPControlPopup::CreateControlPopup. In this case, the very first control button added to the popup toolbar is shown on the main toolbar.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |