Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Tab Size in TabControl...
Message
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Titre:
Change Tab Size in TabControl...
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01221846
Message ID:
01221846
Vues:
74
I created an inherited class control from the TabControl.

I have a DrawTab Function that draws the tab, and the text on the tab. The default Tab Boundaries are a bit bigger then I like, so I tried to use the following code to "shrink" the Tab.
        '***************************************
        ' Adjest Tab Size:
        '   Short Width By 10 Pixels
        '***************************************
        objBounds.Width -= 10
        objBounds.Location = New Point(objBounds.Location.X - (intIndex * 10), objBounds.Location.Y)
This works visually, but it doesn't seem to affect the "clickable area" of effect. So even though the tabs draw just right, the area's to click in order to activate a tab, don't move, which causes some funky click effect.

Anyone know how I can fix this?
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services


Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook
Répondre
Fil
Voir

Click here to load this message in the networking platform