![]() |
Possible to hide gripper? |
Post Reply ![]() |
Author | |
sbinder ![]() Groupie ![]() ![]() Joined: 22 November 2004 Location: Austria Status: Offline Points: 76 |
![]() ![]() ![]() ![]() ![]() Posted: 26 November 2004 at 8:49am |
Is it possible to hide the gripper of the commandbars (toolbar and menubar)? How do you make the TOOLBARS (with icons) in the sample "CommandBarIcons"? Edited by sbinder |
|
![]() |
|
Maye Johnson ![]() Groupie ![]() Joined: 16 October 2004 Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
I have an app that has 2 status bars, but the one on top shouldn't have
the resize gripper. After tracing through the status bar creation
code, I came up with the following work-around:
|
|
![]() |
|
sbinder ![]() Groupie ![]() ![]() Joined: 22 November 2004 Location: Austria Status: Offline Points: 76 |
![]() ![]() ![]() ![]() ![]() |
Thanks! I used pToolBar->ModifyBarStyle(CBRS_GRIPPER,0); for my Toolbar. But I can't hide the gripper of the MenuBar. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
it must work same: pMenuBar->ModifyBarStyle(CBRS_GRIPPER,0); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
sbinder ![]() Groupie ![]() ![]() Joined: 22 November 2004 Location: Austria Status: Offline Points: 76 |
![]() ![]() ![]() ![]() ![]() |
ModifyBarStyle() is a memberfunction of CXTPToolbar, not of CXTPCommand. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
pMenuBar must be CXTPMenuBar*; CXTPMenuBar* pMenuBar = pCommandBars->SetMenu....
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
franji1 ![]() Groupie ![]() ![]() Joined: 28 June 2005 Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
In XTPro, the XTPToolbar::ModifyBarStyle signature appears to have a bug - here it is: ModifyBarStyle(WORD dwRemove, DWORD dwAdd); note that the hungarian notation is "dwRemove", but the actual type in the signature is WORD, not DWORD, hence any style that is beyond 0x10000 will NOT WORK (basically the same as dwRemove = 0x0000). Guess what the value for CBRS_GRIPPER is - see XTPIncludes.h #define CBRS_GRIPPER 0x00400000Lwhich is the same as a (WORD)0x0000. we are building the .DLL under a different name so we CAN tweak the source (and not break anyone else). |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, It was fixed in previous versions. Update your sources. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |