![]() |
Possible to hide gripper? |
Post Reply
|
| Author | |
sbinder
Groupie
Joined: 22 November 2004 Location: Austria Status: Offline Points: 76 |
Post Options
Thanks(0)
Quote Reply
Topic: Possible to hide gripper?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 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 November 2004 at 6:11am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 November 2004 at 4:02am |
|
Thanks! I used pToolBar->ModifyBarStyle(CBRS_GRIPPER,0); for my Toolbar. But I can't hide the gripper of the MenuBar. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2004 at 12:46am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2004 at 4:11am |
|
ModifyBarStyle() is a memberfunction of CXTPToolbar, not of CXTPCommand. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2004 at 7:31am |
|
pMenuBar must be CXTPMenuBar*; CXTPMenuBar* pMenuBar = pCommandBars->SetMenu....
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
franji1
Groupie
Joined: 28 June 2005 Status: Offline Points: 70 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 June 2005 at 8:04pm |
|
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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 July 2005 at 11:41pm |
|
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 |