2 Fragen
Posted: 03 Feb 2007, 17:27
Hi,
erstmal ein großes Lob! Das TabStrip Control ist genau was ich suche: ein TabStrip, das unter Windows XP und Vista korrekt angezeigt wird UND Icons in den Tabs unterstützt.
Jetzt habe ich nur zwei Probleme:
Ich habe die Icons für die Tabs in einer ImageList mit transparentem Hintergrund. Ich weise die Icons so zu:
Dabei wird aber der transparente Teil des Icons weiß dargestellt. Muss ich noch eine MaskColor irgendwo festlegen?
Das andere betrifft Windows XP/Vista Styles:
Auf den Tabs habe ich Picture Boxen in denen ich jeweils ein Frame habe und darin die Controls. Das Frame wird aber mit falschem Hintergrund (unter XP grau) angezeigt. Ich dachte der Trick um das zu verhindern wäre die Verwendung von einer PictureBox als Container. Oder was mache ich falsch?
Gruß,
Flo
[hr]
Translation for visitors not speaking German:
Hi,
at first kudos to you! The TabStrip control is exactly what I'm looking for: a tabstrip that is displayed correctly on XP and Vista AND supports icons within the tabs.
Now I've only two problems:
I've the icons for the tabs in an imagelist with transparent background. I apply the icons this way:
But this makes the transparent part of the icons drawn white. Do I have to set a MaskColor anywhere?
The other one affects Windows XP/Vista styles:
On the tabs I have PictureBoxes each containing a Frame and the controls inside the Frames. But the Frame is drawn with wrong background (on XP opaque gray). I thought the trick to prevent this would be to use a PictureBox as container. What am I doing wrong?
Salute,
Flo
erstmal ein großes Lob! Das TabStrip Control ist genau was ich suche: ein TabStrip, das unter Windows XP und Vista korrekt angezeigt wird UND Icons in den Tabs unterstützt.
Jetzt habe ich nur zwei Probleme:
Ich habe die Icons für die Tabs in einer ImageList mit transparentem Hintergrund. Ich weise die Icons so zu:
Code: Select all
TabStrip1.hImageList = ImageList1.hImageList
TabStrip1.Tabs.Item(0).IconIndex = 0
Das andere betrifft Windows XP/Vista Styles:
Auf den Tabs habe ich Picture Boxen in denen ich jeweils ein Frame habe und darin die Controls. Das Frame wird aber mit falschem Hintergrund (unter XP grau) angezeigt. Ich dachte der Trick um das zu verhindern wäre die Verwendung von einer PictureBox als Container. Oder was mache ich falsch?
Gruß,
Flo
[hr]
Translation for visitors not speaking German:
Hi,
at first kudos to you! The TabStrip control is exactly what I'm looking for: a tabstrip that is displayed correctly on XP and Vista AND supports icons within the tabs.
Now I've only two problems:
I've the icons for the tabs in an imagelist with transparent background. I apply the icons this way:
Code: Select all
TabStrip1.hImageList = ImageList1.hImageList
TabStrip1.Tabs.Item(0).IconIndex = 0
The other one affects Windows XP/Vista styles:
On the tabs I have PictureBoxes each containing a Frame and the controls inside the Frames. But the Frame is drawn with wrong background (on XP opaque gray). I thought the trick to prevent this would be to use a PictureBox as container. What am I doing wrong?
Salute,
Flo