Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing the Graphics object

 
sophyan julio
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to change the color properties of the graphics object of one component in another component?
 
Norm Radder
Bartender
Posts: 1526
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, if you pass a reference to it.
If g is a Graphics in this object, then
obj2.changeGraphics(g);
would allow obj2 to change its properties.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic