-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MenuStrip attached to tabcontrol #3
Comments
I managed to attach somehow with the following codes.
|
Can you please explain why you think this would be useful? Locating a MenuStrip in the position you've shown makes it very unclear as to whether the MenuStrip somehow relates to the TabControl as a whole ,,or to a particular TabPage in the TabControl, or to something else. In other words, I think this would be unsatisfactory design. |
Sorry for the delay in getting back to you. I'm in the UK, and it was getting rather late last night. Having had time to think about this a bit, and with your illustrations in mind, I think I see a way forward that would give you what you want, but also be much more flexible. I suggest a new int property, With this arrangement, the application can reserve whatever space it needs for additional controls (eg a I can't guarantee at this stage that I'll be able to make this work properly: initial work shows that fiddling with the tab positions doesn't appear to cause a problem, but it's early days and it might turn out to be problematic. |
I've been doing more work on this and I'm quite pleased with the results so far. But before I go any further, I need some feedback from you as to whether this is going to suit your needs (I'm pretty sure it will!). So here's a screenshot of an example showing two controls, a combo box and a button, in the In this case, the Note that the controls have to be added to the
There's a lot more work to do to make sure this all works nicely with the many formatting capabilities. So before I go any further, please let me have any feedback. |
Hello Richard, What you are doing so far seems quite good and exceeds my expectations :) All I need for now is to have a menustrip next to first tabPage. I am not planning to add any other control yet. With your implementation, I guess I can do it by creating a usercontrol and add to the controlpanel in one shot. How can I check if all these things you made so far really work for me? |
You wouldn't need to create a usercontrol. Just create the menustrip and its menu items, and add it to the This one was created with this code:
|
Oh, in answer to how you can check whether it all works, I just need to do a bit more work and then I can commit the changes I've made so far and you can build it and test it for yourself. This is because although it displays correctly at the moment for the case of horizontal tabs at the top of the control, there are still issues with bottom tabs, vertical tabs, mouse handling, borders around tabs, etc etc. I just don't want you to waste your time discovering bugs that I already know about. If you don't want to build it yourself I could give you a compiled form to try. Let me know which you would prefer. |
I really appreciate your hard work. It is OK to have issues with bottom tabs, vertical tabs since I don't think that I need those styles. I prefer to build it myself. |
Ok, I'll commit the changes in a new branch some time before too long. Probably not till early next week. |
Thank you |
I've just pushed the Note I've had to introduce this restriction: you can only see the At the moment, mouse handling has not been fixed: so clicking on a tab won't necessarily select the right one, and hovering over a tab may highlight a different one. It should be reasonably straightforward to fix these mouse issues, but there may be other side effects that I haven't realised yet. I'll push new commits to this branch fairly regularly, but I can't devote a lot of time to this (and I'm by no means certain at this stage that I can get it all working well enough that I'm happy to release it). |
@albay I'd be grateful if you can try it out and let me have any feedback. |
Any feedback on this yet? I'm actually considering trying an alternative implementation, because there is still one problem with the current version that I'm unable to fix because of the order in which the base TabControl does certain things. I'm planning to try this alternative in yet another branch, which I'll publish if it seems to be an improvement. If I can't find a solution to this problem, I'll probably have to (reluctantly) give up on this enhancement, as I'm not happy to release it in its current form. |
Hello,
Thank you for making such a great control, it is very useful. But I would like to have a menustrip attached to it like below.
Is it possible to implement such thing or not worth to try? Can you give me suggestions please about how to do it?
The text was updated successfully, but these errors were encountered: