Let's say first I assign a picture to a menu:

  DIM Pic AS Picture
  Pic = NEW Picture(18, 18)
  Pic.Fill(Color.Black)
  MenuCustomColor.Picture = Pic

When I try to modify a picture assigned to a menu, if I use

  MenuCustomColor.Picture.Fill(Dialog.Color)

it does not do anything.

Instead I have to do:

  DIM Pic AS Picture
  Pic = MenuCustomColor.Picture
  Pic.Fill(Dialog.Color)
  MenuCustomColor.Picture = Pic

Why is that?

And is this the correct way to do this?

Thank you,
David

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to