Post by Izy Coder on Jan 26, 2015 20:02:32 GMT 10
As the title say. with dll.
Check Out My Project At VSlang InternetTM. More Project : - Poroxnoss Text Editor 2 - Added soon...
- TAP 2D Game Maker - Coming really soon...
- Easy Desktop - Discontinue..
|
|
Post by Imformas on Jan 26, 2015 22:39:33 GMT 10
No to be a (I LOVE YOU), but to come a good developer you need to nuckle down and figure it out yourself. not asking people to do it for you!!
Programming language'sCSharpC++CObjective-CVBProject'sSharpMediaSharpEditYoutifygithub.com/Stephen-Fox-0
Last Edit: Jan 26, 2015 22:40:11 GMT 10 by Imformas
|
|
Post by Nathan Lecompte on Jan 27, 2015 9:52:27 GMT 10
|
|
Post by Izy Coder on Jan 28, 2015 18:04:09 GMT 10
Imformas, not to be rude but if I know how to make my own tab control why I'm here? why I make an account in this forum ? I make this thread because I don't know how and did I ask you to make it for me? no... I just ask "HOW" not "Please Can Someone Do It For Me"
Check Out My Project At VSlang InternetTM. More Project : - Poroxnoss Text Editor 2 - Added soon...
- TAP 2D Game Maker - Coming really soon...
- Easy Desktop - Discontinue..
|
|
Post by Imformas on Jan 28, 2015 21:24:01 GMT 10
Izy Coder you pretty much did "As the title say. with dll."
Programming language'sCSharpC++CObjective-CVBProject'sSharpMediaSharpEditYoutifygithub.com/Stephen-Fox-0
|
|
Post by Nathan Lecompte on Jan 28, 2015 21:29:50 GMT 10
Imformas He's asking how to custom draw a tabcontrol and export it as a DLL then add it to his project...not for us to do it for him
|
|
Post by Imformas on Jan 28, 2015 21:33:48 GMT 10
Really?. oh okay
Programming language'sCSharpC++CObjective-CVBProject'sSharpMediaSharpEditYoutifygithub.com/Stephen-Fox-0
|
|
Post by Izy Coder on Jan 28, 2015 23:26:53 GMT 10
Imformas, "As the title say. with dll." is >> "How to draw own tab control with dll?" (title + with dll.)
Check Out My Project At VSlang InternetTM. More Project : - Poroxnoss Text Editor 2 - Added soon...
- TAP 2D Game Maker - Coming really soon...
- Easy Desktop - Discontinue..
|
|
Post by Prezence on Jan 29, 2015 12:20:25 GMT 10
Ok basically create a class that inherits from a tabcontrol Public Class CustomTabControl Inherits TabControl
End Class
Then overwrite the OnPaint sub. Public Class CustomTabControl Inherits TabControl
Protected Overrides Sub OnPaint(e as PaintEventArgs)
End Sub
End Class
In the TabControl class, there is a method called GetTabRect(index as Integer) that returns a rectangle based on the a tab at a certain index. So, you can loop through the TabPages and use Graphics to fill a rectangle retrieved by the GetTabRect function. This way you can draw a image or whatever. Basic outline (I'll let you figure the rest out) Public Class CustomTabControl Inherits TabControl
Protected Overrides Sub OnPaint(e as PaintEventArgs) For i=0 to TabPages.Count -1 If SelectedIndex = i Then e.Graphics.FillRectangle(Brushes.White,GetTabRect(i)) Else e.Graphics.FillRectangle(Brushes.WhiteSmoke,GetTabRect(i)) End if Next End Sub
End Class
Then you can use e.graphics.drawrectangle() and e.graphics.drawstring() to draw the tab's text or draw a border.
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
Last Edit: Jan 29, 2015 12:20:51 GMT 10 by Prezence
|
|
Post by altair on Feb 10, 2015 21:57:55 GMT 10
Well, I am not opening in a solved question. But I would like to know can the tab be drawn into any shape other than rectangle.
Thanks, Altair - The Flying one
|
|