|
 |
|
|
very, very nice Work...
I have a little Problem... If i delete the last visible RegisterCard, the Background is not be redrawn...
How can i fix the Bug?
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
|
You know how on some websites..say if you're filling out an application that is flash driven or something, that as you go through the different screens (or steps), there are tabs at the top with a label briefly describing what that step is (usually on a website). So like, when you're purchasing something online, and the first step is putting it in your 'shopping cart' or whatever, then when you go to the next screen, the next tab would highlight and say 'payment method', then at the next screen, the following tab would highlight and say 'billing address', etc. Long story short: is there (that you know of) an ActiveX (VB) control that would allow me to utilize this kind of object within MS Access?
- reegan41
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
How can I redraw the navigation arrows appear on the right of the tab control? I want to draw them by myself. Much thank!
|
| Sign In·View Thread·PermaLink | 1.57/5 (4 votes) |
|
|
|
 |
|
|
hi dan.g, This is really a great article . I want to use it in my new project, but dont know how. I created and MDI application whose view is CTabView, derived from CCtrlView. ( Ref : http://msdn.microsoft.com/msdnmag/issues/0600/Wicked/ ). How can i ownerdraw this Tabview ...
Thanks a lot, Abin
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Your tabctrl is really cool,but compare with maxthon browser's tabctrl.yours is too much flat. I tried on your code in order to simulate maxthon's style.but failed. Could you spend some spare time to think about this? Much thanks.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
I have a dialog application but I can not get the int value from the edit control inside the tab. Can you tell me how I can access this value from the OK button?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Thanks for this nice article.
But my problem is that I need to customize the color of the space beetween tabs and spin. I mean the background of the CTabCtrl.
I have tried a lot a things ... ... like ON_WM_CTLCOLOR_REFLECT, ON_WM_CTLCOLOR, ON_WM_ERASEBKGND, ON_WM_PAINT on a CPropertysheet derived class and on a CTabCtrl derived class... with no success. If it's possible I prefer to not use OnDrawItem because I use an XP Manifest...
------------------------------- Le sage cherche la Vérité, L'imbécile l'a déjà trouvé.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Thanks for your frankness But you break my dreams
------------------------------- Le sage cherche la Vérité, L'imbécile l'a déjà trouvé.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
You should never do: VERIFY(GetItemRect(nSel, &dis.rcItem));
This code will be removed from release build. That means this line of code will disappear, And you will get a mass on your hand. Instread do this: BOOL bRetVal = GetItemRect(nSel, &dis.rcItem); VERIFY(bRetVal);
Of course the second line will still disappear from the release build so if you absolutely needs to verify success failure, do: BOOL bRetVal = GetItemRect(nSel, &dis.rcItem); if (bRetVal) { .... } else { .... }
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
this is what afx.h says:
#ifdef _DEBUG
#define VERIFY(f) ASSERT(f)
#else // _DEBUG
#define VERIFY(f) ((void)(f))
#endif // !_DEBUG
from this you should be able to see that the code is not removed in release mode.
.dan.g.
AbstractSpoon Software abstractspoon2_at_optusnet_dot_com_dot_au
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
This is not true at all cases. I tried your code under WinDDK's build environmrnt, Those things (VERIFY/ASSERT/ATLASSERT)are removed during release build. Debug build does not remove these, so it was a hard bug to find.
So for your own safety, you should consider my way to be safer, at least do
retVal = DoSomething() VERIFY(retVal);
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
when not all tabs can be shown, little navigation arrows appear on the right of the tab control. If we turn on "flat" and "color background" styles, navigating through the tabs using these arrows leaves a small space below them, and it is not correctly repainted (compared to common tab control). Moreover, since these arrows are not handled correctly in the code, they sometimes even become invisible (for instance, when they are attached to MDI document and it is being serialized).
Михаил
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Really Excellent work!!
How can i use it in PropertySheet? Do you have any source code sample? Thank you a lot Thomas
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
hi thomas,
have a look at the very bottom of the article. what you have to do is derive your own class from CPropertySheet and then subclass the tabcontrol in OnInitDialog, just as the code snippet does.
if you have any problems just let me know.
.dan.g.
AbstractSpoon Software abstractspoon2_at_optusnet_dot_com_dot_au
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi, is it possible to create the tab buttons as we can see in MSN messenger, I mean the tab options we will get once we login to MSN, with a bitmap loaded in it. Any Suggestions please, How can I achive this?
thanks
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
I have no idea how to do it.
Say I have 4 tabs, 3 of which has pages. The 4th tab does not have a tab page. It function as a button and must look like a command button, can it be done?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
i don't think you can mix and match the tab styles, which was my first first thought.
so the easiest way would be to add a child button to the underlying tab control.
if you are using a standard CTabCtrl then i would suggest deriving your own class from it and then creating and managing the button within it.
where you want the button to be located may complicate things because if you want it on the left side then i've no idea how to offset the tabs to make space. having it on the right is easier since you just need to get the rect of the rightmost tab and position the button after it.
good luck.
.dan.g.
AbstractSpoon Software
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
i have a dialog based app, and 5 tabs, but into the client rect can be placed only 3, so a spin button appears. well, when i scroll tabs and the last one became visible, i got a tail of latters. just like this, for exanple, i have a text in the last tab "Project", and i see Projectttttttt. i tried to overload WM_HSCROLL message and call Invalidate in it, but i have no sucsess. what to do?
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
   I found this very nice article thanks
how can I change tab size? I tried with SetItemSize but it works only in vertical direction and not on Horizontal direction.
I also had problem with using true color icons. Icons were displayed using 16 colors only
Imantha
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
|
hi imantha,
i did a quick check on msdn for the TCM_SETITEMSIZE message (which is wrapped by SetItemSize()) and its comments that this only works for fixed width or owner draw tabs.
so either this is the issue or there's a bug in my code.
try it out and let me know. if its my code then i'll have a look when i get back from the conference i'm currently on.
rgds
.dan.g.
AbstractSpoon Software
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
hello DanG Although SetItemSize() does not work to set width of tab I have succeeded with SetMinTabWidth() to set width of tab. thanks for y'r reply
 Imantha
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
First thanks for your great article!
One question: How can you display bitmaps or icons with a color depth of 256 and higher? When trying it, it seems that MFC always reduces the color depth to 16! Do you have any idea?
Thanks a lot! Ralph
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
hi ralph,
provided you've managed to get the bitmap into your exe file correctly it should be possible to just load it straight into an imagelist.
if this is what you're doing and its not working, perhaps you could post the code that you're using and i'll have a quick look.
rgds
.dan.g.
AbstractSpoon Software
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |