Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Sep 16, 2019 11:10 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Simple Cloud Shape
PostPosted: Thu May 16, 2013 12:59 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
I need a simple cloud shape (think text balloon) as a FigureShape using only 1st order Curveshapes (yeah a lot of restrictions I know)

I have tried but cannot come up with a set of points that work... and its a lot of trial and error...

Does someone have a set of points that define such a shape?

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Simple Cloud Shape
PostPosted: Fri May 17, 2013 12:22 am 
Offline

Joined: Tue Mar 05, 2013 2:33 pm
Posts: 64
Location: Greensboro, North Carolina
DaveS wrote:
I need a simple cloud shape (think text balloon) as a FigureShape using only 1st order Curveshapes (yeah a lot of restrictions I know)

I have tried but cannot come up with a set of points that work... and its a lot of trial and error...

Does someone have a set of points that define such a shape?


Dave are you drawing one to use for a WAN cloud in you app? I assume you decided not to use a cloud image with drawpicture for a reason with your app. This is very interesting to me as I am a Visio expert user for the last 12 years. Great job!

_________________
Mike Cotrone - CCIE #8411 R&S, CCIE #8411 Voice
Chief Technology Officer
Onepath Systems, LLC


Real Studio 2012 R2.1 Enterprise, Mac OS, Windows, Ubuntu Linux


Top
 Profile  
Reply with quote  
 Post subject: Re: Simple Cloud Shape
PostPosted: Fri May 17, 2013 1:57 am 
Offline
User avatar

Joined: Thu Sep 10, 2009 2:50 am
Posts: 418
Location: Santa Cruz, CA, USA
Made a real simple editor and traced a cloud image from this page http://www.hanselman.com/blog/ThereIsOnlyOneCloudIconInTheEntireUniverse.aspx

Here's the coords I ended up with and building them into a figureshape

dim pntsX() As integer = Array(113, 270, 439, 511, 525, 532, 465, 468, 373, 247, 184, 133, 94, 67, 76, 19, 28, 40, 113)
dim pntsY() As integer = Array(379, 379, 379, 367, 295, 227, 192, 89, 45, 7, 119, 89, 124, 151, 194, 230, 295, 365, 379)

dim f As new FigureShape
for i As integer = 0 to pntsX.Ubound - 1 step 2
f.AddQuad(pntsX(i), pntsY(i), pntsX(i+2), pntsY(i+2), pntsX(i+1), pntsY(i+1))
next
g.DrawObject(f)


Top
 Profile  
Reply with quote  
 Post subject: Re: Simple Cloud Shape
PostPosted: Fri May 17, 2013 7:01 am 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
mikecotrone wrote:
DaveS wrote:
I Dave are you drawing one to use for a WAN cloud in you app? I assume you decided not to use a cloud image with drawpicture for a reason with your app. This is very interesting to me as I am a Visio expert user for the last 12 years. Great job!



Exactly what I am doing.... by using a Figureshape it is scaleable with minimum loss in precsion ...

sample screen [LOTS of work still to go]
Image


Doofus.... Thanks.... I will see what it takes to adapt that to my shape control class... but it should not be difficult :)

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Simple Cloud Shape
PostPosted: Fri May 17, 2013 7:49 am 
Offline

Joined: Tue Mar 05, 2013 2:33 pm
Posts: 64
Location: Greensboro, North Carolina
DaveS wrote:
mikecotrone wrote:
DaveS wrote:
I Dave are you drawing one to use for a WAN cloud in you app? I assume you decided not to use a cloud image with drawpicture for a reason with your app. This is very interesting to me as I am a Visio expert user for the last 12 years. Great job!



Exactly what I am doing.... by using a Figureshape it is scaleable with minimum loss in precsion ...

sample screen [LOTS of work still to go]
Image


Doofus.... Thanks.... I will see what it takes to adapt that to my shape control class... but it should not be difficult :)


Dave that is majorly impressive there is no doubt! I would love to take it for a spin some time when you are in alpha or beta. :) Great work!

_________________
Mike Cotrone - CCIE #8411 R&S, CCIE #8411 Voice
Chief Technology Officer
Onepath Systems, LLC


Real Studio 2012 R2.1 Enterprise, Mac OS, Windows, Ubuntu Linux


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group