Thanks in advance
Draw string on top of rectangle shape?
Page 1 of 12 Replies - 740 Views - Last Post: 07 October 2011 - 12:37 PM
#1
Draw string on top of rectangle shape?
Posted 07 October 2011 - 10:12 AM
I'm using e.graphics in the Me.Paint event to draw a string in the form. There is a rectangle shape with gradient in the form, and the string is supposed to be drawn on top of the rectangle shape. However, when I run the program, the string is drawn under the rectangle shape, and is therefore invisible... How do I fix this??
Thanks in advance
Thanks in advance
Replies To: Draw string on top of rectangle shape?
#2
Re: Draw string on top of rectangle shape?
Posted 07 October 2011 - 10:32 AM
Wait nevermind... If I do it in the rectangle shape's paint event it works... I feel dumb...
#3
Re: Draw string on top of rectangle shape?
Posted 07 October 2011 - 12:37 PM
Drawing occurs in a layering effect. Call the drawString method after the drawRectangle/fillRectangle method.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|