New topic: 

I obly like to draw a oval?

<http://forums.realsoftware.com/viewtopic.php?t=45662>

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        Leffe69          Post subject: I obly like to draw a 
oval?Posted: Sun Oct 21, 2012 9:03 am                         
Joined: Thu Jul 14, 2011 4:30 pm
Posts: 25                Hello,

i like to make the simple thing: To draw an oval to webpage1.

How does this work?

With a simple:
dim g as Graphics
g.DrawOval(10,10,50,50)
in the sub open() it does not work?

Thanks!

Leffe   
                             Top                kermit          Post subject: 
Re: I obly like to draw a oval?Posted: Sun Oct 21, 2012 10:01 am                
         
Joined: Mon May 30, 2011 12:56 am
Posts: 534                Quote:dim g as Graphics
g.DrawOval(10,10,50,50)

Where do we start???

dim g as graphics 

gets you a pointer to a graphics object.
But there isn't one there, so g is nil

g.DrawOval(10,10,50,50)
will therefore fail.



IF this was a desktop app, and the code g.DrawOval(10,10,50,50)  was in the 
paint event of a control, canvas, or page, then you can expect something to 
happen. (No need to dim g, because the Paint event gives you a ready made noe)


In a web app (I'm not so sure about this, as I don't use WE.. Its no use to 
me...)  then you don't yet have a paint event of this kind, and there is no 
canvas control (yet??)
I may be wrong.. (if I am, I'll be buying WE.. the lack of this kind of 
painting is the main reason its no use to me..)   
                             Top                Akiland          Post subject: 
Re: I obly like to draw a oval?Posted: Sun Oct 21, 2012 10:58 am                
                 
Joined: Tue Jan 04, 2011 3:02 am
Posts: 977
Location: Jönköping, Sweden                Do you need to create it in code?
If you don't you can add a Rectange to your WebPage and then create a Style for 
it that makes it round.      
_________________

Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
Using Subversion on a Synology DS409+
REAL.Studio Web Edition 2011r3  
                             Top                Leffe69          Post subject: 
Re: I obly like to draw a oval?Posted: Mon Oct 22, 2012 2:21 am                 
        
Joined: Thu Jul 14, 2011 4:30 pm
Posts: 25                Hi,

i need it in the code.

Is something like self.g.drawoval(x,y,w,h) right?

Leffe   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to