CXTPTabClientWnd |
Post Reply |
Author | |
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
Posted: 10 December 2009 at 10:23am |
Hi, I'd like to 1. change the tabs heihgt in my CXTPTabClientWnd. 2.add a contextmenu: when the user right-clicks a tab, a contextmenu is opened for closing the cuurent window or
all opened windows.
Any suggestion/sample can I have a look at?
Thanks a lot
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
Hi;
Showing a context menu is easy: Catch the WM_XTP_PRETRANSLATEMOUSEMSG in your tab owner and in the handler do this:
|
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Thank you very much!
For me it's difficult to find out these message in Codejock.
Now I'll try to see if there are simple command also for closing all opened views.
EDIT: I've tried this.
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
Hi;
I do it this way: Whenever the app creates a new view, I put a pointer to this view into a container by calling a Register function of my main window. When the user closes the view I call a Deregister function of the main window to erase the pointer from this container. So when the user executes a close all command I only have to loop through the container and post a WM_CLOSE message to the view. Deregister is called by the view while closing. Keep this in mind when interating through the container... |
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Ok, thanks. For the tab heights, any suggestion? I always have problem when I try to resize ribbon, tabs etc when my application is skinned :( |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
Sorry, no idea! |
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
Hi,
The height is calculate automatic with the font size. Change font size, than the height will change. Look for m_nButtonHeight in the XTPTabPaintManagerAppearance.cpp. Another way is change the button margin. (Tab Manager Sample). With Copy/Paste you can insert -3 int the top & bottom of Button Margin. Jimmy |
|
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Thank you very much guys!
My work goes on much faster now
I've tried to set button margin, it still remains this problem:
but maybe it's enough to change font height.
BTW... a simple call to SetFont? It doesn't seem to work.
If you have any suggestion about my ribbonbuttons post...
Thank you so much!
|
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
Sorry, have no suggestion about your ribbon button trouble. I don't use ribbin bar. Jimmy |
|
feffe
Groupie Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
|
Changing the font?
... Through the skin builder?
|
|
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
|
I don't know realy. But the Paint Manager has function SetFontIndirect
TabManager->GetPaintManager()->SetFontIndirect Jimmy |
|
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 |