|
Hi!
I've just tried to add the dll (that comes with the source) as a component in Microsoft Visual Studio 2003 and I've received the following message:
MT.Windows.UI is not a .net module
Should it have worked normally? What should I do in order to use the component in vs2003?
Regards
Siufi
|
|
|
|
|
Hi
Maybe MT.WindowsUI.dll is corrupted. Build source code and use new file. If you use in VS2003, some anonymous delagete change normally and generic dict. change normally dict.
|
|
|
|
|
I don't think that the dll is corrupted since I was able to run the NavigateBarTestApp.exe
Anyway, I got a lot of errors when trying to compile in vs2003, does anyone have this component compiled in vs2003?
|
|
|
|
|
Hi
You can't add dll reference to vs2003 project or you can't compile source code on vs2003. If you use source code in vs2003 project
change dictionary -> collection
change anonymous delegates-> normally delegates
|
|
|
|
|
I was tired of trying to compile in vs2003 so I decided to get VS2005 and it works perfectly! congratulations! nice work!
Thanks for your help!
|
|
|
|
|
Hi,
I build navigation bar in design model,but doesn't set "Related Controls" for all buttons. (Because always get error when form load)
So,i add those related controls when form load,as:
-code--
MailTree tree = new MailTree();
tree.BackColor = this.navigateBarButton2.BackColor;
tree.ForeColor = this.navigateBarButton2.ForeColor;
this.navigateBarButton1.RelatedControl = tree;
CommandPanel panel = new CommandPanel();
panel .BackColor = this.navigateBarButton2 .BackColor ;
panel.ForeColor = this.navigateBarButton2.ForeColor;
this.navigateBarButton2.RelatedControl = panel;
---
But when form load,it automaticly select the first button,but no not show collapse screen which should be MailTree control. After click,it shows.
I don't know which property is refered. I tried to refresh bar or button,or, select navigateBarButton2.IsSelected = true.
Still not work.
My develop eviroment:
VS2005 , Windows 2000
control version: 2.6.1.20070528
Thanks,
Kevin
|
|
|
|
|
Hi
Try button.PerformClick() or nbar.ShowCollapseScreen() methods on form HandleCreate.
|
|
|
|
|
The new release takes care of the flicker, but the buttons now jump to different positions when clicked.
Mike Lasseter
|
|
|
|
|
I know, I fixed and send to codeproject but they don't update until this time. I you need fixed code i can send you.
Thanks.
|
|
|
|
|
I love the control -- and I have a few suggestions for the next release:
1) Allow different fonts (sizes, types, forecolors) for:
Caption
CaptionDescription
NavigationBarButton Caption Text
This would match the outlook behavior a little more closely
2) Allow for a different color when you have a MouseOver a SelectedButton. (Right now, the color doesn't change, which is distracting to the user.)
3) Is it possible to add the relatedcontrol at Design-time (in the Form designer)? I tried to do it, and it didn't work -- instead, I have to do it in code.
Thanks again! Chris
|
|
|
|
|
Hi
Firsty thanks.
1) I use system default for font and size but you can change fon and size values in constructor methods
2) You can create custom color table for navigation pane but i don't think custom button colors for now maybe next time.
3) You right. If i have some time i can add full support.
Note : Sorry for my english
|
|
|
|
|
When i design and add relate Control to navigateBarButton,
Exception happened.
An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll
When i debug, it happend at line of code:
if (splitter.SplitPosition != newPos)
splitter.SplitPosition = newPos;
at NavigateBar.cs
Please help me.
Thanks.
thachvv
|
|
|
|
|
Hi
Yes there is a bug. This bug create when fast splitter moving.
I handle it and update on codeproject soon time.
Thanks
|
|
|
|
|
Hi,
If you can tell us how to handle StackOverflowException exception that will be great since it may take some time before you update the control.
Thanks
|
|
|
|
|
Hi,
I just want to say this is a great control but is anybody else experiencing flicker when the control is resized, or is it just me? I know that this can be solved with double buffering in Java and have found, in msdn, that you can turn it on via:
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
but it still flickers. Does anybody have suggestions?
Thanks!
|
|
|
|
|
Hi,
I know and i think unimportant. Flickers reason is ResizeRedraw set true. But you right. I solved and update soon time.
|
|
|
|
|
hi
I use ur control in my application but I have little issue. Let me show u the picture of my application
It is just like outlook with few differences:
1-In right pane u can have multiple forms open at the same time
2- In left pane there are different button and every button is associated with a single tree as user control.On clicking tree us repapulated according to selected button.
Up to this point things are smooth.
When I switch between forms in right form I have to change the selected button and also build tree again.
The problem is some characters from the first node of the tree are trancated. Even the other nodes have text longer than the root node. Second if I resize the left pane it becomes normal.
What I m missing???
Any help will b appriciated.
|
|
|
|
|
Hi
I don't think your problem from navigation pane. I think you must use populate tree when use treeview.BeginUpdate and treeview.EndUpdate methods.
|
|
|
|
|
Hello
I would like to know what is the licence of this control and if I can use it in a commercial project. Anyway, congratulations for your beautiful work!
|
|
|
|
|
completely free. You can use commercial or noncommercial application.
|
|
|
|
|
This is probably something very obvious, but how do I add form controls into the navbar button's content pane?
Let me try to clarify...
I have a windows form that has a panel where I am docking the navigation pane.
I have multiple navbar buttons created.
I want to add form objects into each navbar button's content pane but I can't drag and drop objects into the pane.
I've tried setting the relatedControl to things as well.
Am I missing something?
|
|
|
|
|
Hi
You can't drag drop any control on the pane. Sorry about that. You must set custom control on RelatedControl property.
|
|
|
|
|
When I change the navbar button's relatedControl property item to point to a control I have created, like a listview, it still does not hide that control when switching to a different navbar button.
-- modified at 9:47 Wednesday 6th June, 2007
nevermind, I think I figured it out. I needed to use a UserControl within the project.
|
|
|
|
|
Hi Mohammad
I m using this control but I have face couple of problems. When I call button click event of the control forcefully, it cut some text from related control (I m showing a tree view in the related control of button). But if I click from button to button it works fine.
Second it does not set the caption text as I call the button click forcfuly??
What is the issue??
If I minimize the window and then it shows complete text. I called invalidate , Refresh , bla bla of Navigation Bar but is of no use. What is wrong the way I m doing?
-- modified at 12:22 Monday 28th May, 2007
|
|
|
|
|
You have implemented a ..._Selected-Event. Is it also possible for you to implement a ..._Selecting-Event. This Event should have two parameters (the old button,that looses focus and the new button, that gets focus). I then can decide, to allow changing the button or not.
Thanks Eric
|
|
|
|