M
Martin H.
Hello,
I have this problem:
I want to split the text for a button into 4 quadrants so that I can
define forecolor, font and text for each quadrant. That would look like
this:
Dim B1 As VirtKeyboardKey
B1.Text = "" (ist immer leer)
B1.Quadrant1Text = "ABC"
B1.Quadrant1Font = New Font("Arial",6)
B1.Quadrant1ForeColor = Color.Red
B1.Quadrant2Text="DEF"
B1.Quadrant2Font=New Font("Times New Roman",8)
B1.Quadrant2ForeColor = Color.Green
Quadrants 3 and 4 are handled in the same way.
I created my own class for this, which inherits from button class.
In the paint event I "paint" my values (text, font, forecolor) onto the
button. The problem now is that the buttons don't have a DrawMode
property and so after "painting" my values onto the button it is
overwritten with the empty string of the text property. How can I
prevent that? I use VB2005 Express edition.
Thanks a lot for any suggestion.
Best regards,
Martin
I have this problem:
I want to split the text for a button into 4 quadrants so that I can
define forecolor, font and text for each quadrant. That would look like
this:
Dim B1 As VirtKeyboardKey
B1.Text = "" (ist immer leer)
B1.Quadrant1Text = "ABC"
B1.Quadrant1Font = New Font("Arial",6)
B1.Quadrant1ForeColor = Color.Red
B1.Quadrant2Text="DEF"
B1.Quadrant2Font=New Font("Times New Roman",8)
B1.Quadrant2ForeColor = Color.Green
Quadrants 3 and 4 are handled in the same way.
I created my own class for this, which inherits from button class.
In the paint event I "paint" my values (text, font, forecolor) onto the
button. The problem now is that the buttons don't have a DrawMode
property and so after "painting" my values onto the button it is
overwritten with the empty string of the text property. How can I
prevent that? I use VB2005 Express edition.
Thanks a lot for any suggestion.
Best regards,
Martin