|
Yes, I have noticed these. But my project is VB.net and can't add these cs files. So why not bulid these two components into one dll?
|
|
|
|
|
Hi,
Have the same issue, did you find away to do this?
|
|
|
|
|
This is an awesome control. However, after converting to dll's and incorporating into a new vb project I find that the tabs are black. I read that I need to use the setstyle("azure") but I'm not sure how to replicate that in my form (as is in form1 of the demo).
-- modified at 11:42 Wednesday 29th August, 2007
|
|
|
|
|
Hi,
Did you figure out how to fix the color of the tab? I have the same problem.
Thanks for you help.
mv
|
|
|
|
|
Following Code works:
Private Sub Form1_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
SetStyle("Azure")
End Sub
Public Sub SetStyle(ByVal Name As String)
Dim HaloColor As Color = Color.White
Select Case Name
Case "Dark"
'this.BackColor = Color.FromArgb(88,77,69);
HaloColor = Color.FromArgb(200, 200, 200)
SetBase(87,61,53,HaloColor)
Case "Nature"
'this.BackColor = Color.FromArgb(78, 127, 52);
HaloColor = Color.FromArgb(254, 209, 94)
SetBase(73, 118, 46,HaloColor )
Case "Dawn"
'this.BackColor = Color.FromArgb(177, 108, 45);
SetBase(172, 99, 39, Color.FromArgb(254, 209, 94))
Case "Corn"
'this.BackColor = Color.FromArgb(230, 193, 106);
SetBase(225, 184, 100, Color.FromArgb(191, 219, 255))
Case "Chocolate"
'this.BackColor = Color.FromArgb(87, 54, 34);
SetBase(82, 45, 28, Color.FromArgb(232, 80, 90))
Case "Navy"
'this.BackColor = Color.FromArgb(88,121,169);
SetBase(84, 112, 163, Color.FromArgb(254, 209, 94))
Case "Ice"
'this.BackColor = Color.FromArgb(235, 243, 236);
SetBase(228, 234, 230, Color.FromArgb(254, 209, 94))
Case "Vanilla"
'this.BackColor = Color.FromArgb(233, 243, 213);
SetBase(228, 234, 207, Color.FromArgb(254, 209, 94))
Case "Canela"
'this.BackColor = Color.FromArgb(235, 226, 197);
SetBase(228, 217, 191, Color.FromArgb(254, 209, 94))
Case "Cake"
'this.BackColor = Color.FromArgb(235, 213, 197);
SetBase(228, 204, 198, Color.FromArgb(254, 209, 94))
Case "Azure"
'this.BackColor = Color.FromArgb(191, 219, 255);
SetBase(215, 227, 242, Color.FromArgb(254, 209, 94))
End Select
End Sub
Public Sub SetBase(ByVal R As Integer, ByVal G As Integer, ByVal B As Integer, ByVal HaloColor As Color)
Me.SuspendLayout()
For Each control As Control In Me.Panel1.Controls
If TypeOf (control) Is RibbonStyle.TabStrip Then
CType((CType(control, RibbonStyle.TabStrip)).Renderer, RibbonStyle.TabStripProfessionalRenderer).HaloColor = HaloColor
CType((CType(control, RibbonStyle.TabStrip)).Renderer, RibbonStyle.TabStripProfessionalRenderer).BaseColor = Color.FromArgb(R + 4, G + 3, B + 3)
Dim i As Integer
For i = 0 To (CType(control, RibbonStyle.TabStrip)).Items.Count - 1 Step i + 1
Dim _tab As RibbonStyle.Tab = CType((CType(control, RibbonStyle.TabStrip)).Items(i), RibbonStyle.Tab)
If Color.FromArgb(R, G, B).GetBrightness() < 0.5 Then
Try
_tab.ForeColor = Color.FromArgb(R + 76, G + 71, B + 66)
Catch
_tab.ForeColor = Color.FromArgb(250, 250, 250)
End Try
Else
Try
_tab.ForeColor = Color.FromArgb(R - 96, G - 91, B - 86)
Catch
_tab.ForeColor = Color.FromArgb(10, 10, 10)
End Try
End If
Next
control.BackColor = Color.FromArgb(R - 24, G - 8, B + 12)
End If
If TypeOf (control) Is RibbonStyle.TabPageSwitcher Then
control.BackColor = Color.FromArgb(R - 24, G - 8, B + 12)
For Each _control As Control In control.Controls
If TypeOf (_control) Is RibbonStyle.TabStripPage Then
CType(_control, RibbonStyle.TabStripPage).BaseColor = Color.FromArgb(R, G, B)
CType(_control, RibbonStyle.TabStripPage).BaseColorOn = Color.FromArgb(R, G, B)
For Each __control As Control In _control.Controls
If TypeOf (__control) Is RibbonStyle.TabPanel Then
If Color.FromArgb(R, G, B).GetBrightness() < 0.5 Then
Try
__control.ForeColor = Color.FromArgb(R + 76, G + 71, B + 66)
Catch
__control.ForeColor = Color.FromArgb(250, 250, 250)
End Try
Else
Try
__control.ForeColor = Color.FromArgb(R - 96, G - 91, B - 86)
Catch
__control.ForeColor = Color.FromArgb(10, 10, 10)
End Try
End If
CType(__control, RibbonStyle.TabPanel).BaseColor = Color.FromArgb(R, G, B)
CType(__control, RibbonStyle.TabPanel).BaseColorOn = Color.FromArgb(R + 16, G + 11, B + 6)
For Each ___control As Control In __control.Controls
If TypeOf (___control) Is RibbonStyle.RibbonButton Then
CType(___control, RibbonStyle.RibbonButton).InfoColor = Color.FromArgb(R, G, B)
Dim _but As RibbonStyle.RibbonButton = CType(___control, RibbonStyle.RibbonButton)
If Color.FromArgb(R, G, B).GetBrightness() < 0.5 Then
Try
_but.ForeColor = Color.FromArgb(R + 76, G + 71, B + 66)
Catch
_but.ForeColor = Color.FromArgb(250, 250, 250)
End Try
Else
Try
_but.ForeColor = Color.FromArgb(R - 96, G - 91, B - 86)
Catch
_but.ForeColor = Color.FromArgb(10, 10, 10)
End Try
End If
End If
Next
End If
Next
End If
Next
End If
Next
Me.ResumeLayout(False)
End Sub
|
|
|
|
|
Hi,
Please tell me, how to add a child form for this MDI form.
|
|
|
|
|
I added the following to RibbonPanel and called to it versus calling Color.FromArgb direct:
protected static int FromArgbBindComponent( int inComponent )
{
inComponent = (inComponent >= 0 ? inComponent : 0);
inComponent = (inComponent <= 255 ? inComponent : 255);
return( inComponent );
}
protected static Color FromArgb( int inRed, int inGreen, int inBlue )
{
return( Color.FromArgb( RibbonPanel.FromArgbBindComponent( inRed ),
RibbonPanel.FromArgbBindComponent( inGreen ), RibbonPanel.FromArgbBindComponent( inBlue ) ) );
}
protected static Color FromArgb( int inAlpha, int inRed, int inGreen, int inBlue )
{
return( Color.FromArgb( inAlpha, RibbonPanel.FromArgbBindComponent( inRed ),
RibbonPanel.FromArgbBindComponent( inGreen ), RibbonPanel.FromArgbBindComponent( inBlue ) ) );
}
TripNTango
|
|
|
|
|
I used the Ribbon Panel Office 2007 in a project and works very well, but then I read the document where you inherit your control, and for some reasons I will use a tabControl, so I look the TabStripControl Base class on the example from the document and I'd like to use this control at the same time that your control.
I noticed one problem, both have the same project name, I tried to change the property at design time to make the Panel looks like the base class but with no result.
what can I do to use both control in the same project ?
do you have any idea?
|
|
|
|
|
Hello there,
do you know how to manage the Ribbon Control into a User Control (not FormView)?
Thanks, L.
|
|
|
|
|
It would be a really useful feature, anyone tried?
|
|
|
|
|
When tab strip has large number of tab, it will hide some tabs in the right, but when click a tab that hired (in the rigth), content of that tab is displayed, but none of tab displayed on tabStrip.
Please help me.
Thanks in advance.
thachvv
|
|
|
|
|
Hi,
I have tested this component using C#. I have faced one problem which is displaying unicode character with RibbonButton and TabPanel. How could I over come this problem?
Dina So
|
|
|
|
|
Does someone try to use the dll in a WPF Appliacation? I can't see any controls of the library in my toolbox :-/
If i click "See All" in my toolbox i can see the controls, but they are disabled. Does the library only works with .Net 2.0?
greets Mariusz
|
|
|
|
|
It doesn't work for me in VB.Net OR C#. Here's the error message I get:
Unable to find assembly 'TabStripControlLibrary, Version=1.0.2764.37942, culture=neutral, PublicKeyToken=null'
This is awesome and I can't use it!
|
|
|
|
|
Choose to build without run, then run it. It needs to compile the supporting DLL.
|
|
|
|
|
Is there any way I can put the components into a dll and use them with VB.Net 2005 Express? It looks cool, but I want to use it. Preferably just by loading the components from a dll.
It doesn't really work with VB.Net. Can someone please weave some magic and produce a VB.Net version? I would very much appreciate it!
-- modified at 19:38 Friday 27th July, 2007
|
|
|
|
|
The Problem is, that you first must Add the dll via Referecences-Dialog.
Add a Reference and after that you can add it to the ToolBox.
Try it und tell me if it works.
Alex Moshe
http://www.bilder-schuetzen.ch
|
|
|
|
|
You must first add a Reference. RightClick to your Project, "Add Reference" and select the dll.
And then you can add it to the Toolbox
Alexander Moshe, http://www.wadosoft.ch
|
|
|
|
|
but is it possible to use it in vb.net 2005 ?
|
|
|
|
|
You can compile as a new control and creates a dll, then you can add the reference, build and add from the toolbox in vb (maybe fuzzy?)
|
|
|
|
|
sorry for being a newbie sucks, but your application also has a dll and i tried to reference it to vb.net but it couldn't show the reference how can i do şt , you don't have to answer so simple thing but i''ll be pleased and i want to learn the fundamentals by this way, thanks a lot.
|
|
|
|
|
Hi,
very nice software, congratulations!
One small question: is it ok when I use your demo app as a base for a small (personal, freeware) application including the icons you used? Of course I will give you full credits for your code and the images.
Thanks and best regards
Bastian Hundt
|
|
|
|
|
The code you can use, modify and as you wish, about the icons I used them from a modified theme of gnome. (I think is free)
|
|
|
|
|
Hi,
You have done great job and contribute so good components to us, thanks.
And for TabPanel component, if I use Asia Font, there have an alignment problem,
so I have changed a lit bit code in TabPanel.cs at almost line 160(Method OnPaint):
Original: int ix = 10 + this.Width / 2 - S_TXT.Length * (int)this.Font.Size / 2;
Changed: SizeF Size_TXT = e.Graphics.MeasureString(S_TXT, this.Font);
int ix = (this.Width - (int)Size_TXT.Width) / 2;
For your information!
Thanks again for your contribution!
Rex Lu
2007.7.18
|
|
|
|
|
I saw the need to change some further lines in the OnPaint method (143ff I think):
SizeF Size_TXT = e.Graphics.MeasureString(S_TXT, this.Font);
DrawArc2(YF - ((int)Size_TXT.Height), (int)Size_TXT.Height);
and insted of luyuxun's: int ix = (this.Width - (int)Size_TXT.Width) / 2;
new: PointF P_TXT = new PointF(ix, this.Height - (Size_TXT.Height*1.15f));
|
|
|
|
|