• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DrawOval help please?

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi.
I'm trying to draw an oval ..and it works.
I can fill it, resize it using a slider to increase it's radius or decrease the radius.
My problem right now is that even though it resizes, and I have it set to the middle of the panel, when I increase the radius past the panels hieght and width the circle stays in the middle, and it goes beyond the panels borders...not good.
I want to be able to shift the circle's position up and to the left if the radius is greater than the panel's hieght and width.
This is my code so far in the model-view approach.
 
Drake Silver
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've changed the forloop to look like this:
But I still et no reaction...
It has occured to me that the forloop is in contradiction with the cModel function.
While the cModel may try to grow larger, the for loop is trying to shrink it...so My for loop is also wrong...
Any ideas on how to get the circle to move the right and left when the circles size is greater than the panels height and width?
[ March 13, 2003: Message edited by: Drake Silver ]
reply
    Bookmark Topic Watch Topic
  • New Topic