2 Replies - 1426 Views - Last Post: 07 October 2011 - 12:37 PM Rate Topic: -----

#1 The Prodigy  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 34
  • Joined: 03-October 11

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 :bigsmile:

Is This A Good Question/Topic? 0
  • +

Replies To: Draw string on top of rectangle shape?

#2 The Prodigy  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 34
  • Joined: 03-October 11

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...
Was This Post Helpful? 0
  • +
  • -

#3 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1043
  • View blog
  • Posts: 4,053
  • Joined: 02-July 08

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1