Re: [Gambas-user] Floodfill / pie chart

2009-03-29 Thread Jussi Lahtinen
Thanks Fabien! It was very useful! Now I got my code to work, and it's even simpler than the original vb6 version; Sub PieChart() Dim Angle As Float Dim prevAngle As Float Dim ii As Long With Draw .Begin(Me.PicPieChart) .ForeColor = Color.Black .LineWidth = 3 .Circle(105, 105, 105) .LineWidth =

Re: [Gambas-user] Floodfill / pie chart

2009-03-29 Thread Fabien Bodard
i think you will better see at my source code in gb.chart. for that download the gambas source and look in ~/gambas/comp/src/gb.chart/_CStylePie.class. you need to use ellipse or circle 2009/3/28 Jussi Lahtinen : > Hi! > > I noticed Start and End options to make sector (also in circle), but > how

Re: [Gambas-user] Floodfill / pie chart

2009-03-29 Thread Fabien Bodard
or simply the component itself if it work... (i'm not sure in v2) 2009/3/28 Jussi Lahtinen : > Hi! > > I noticed Start and End options to make sector (also in circle), but > how to fill them with color? > > Fabien, here it is, but I think it is not very useful. > It is made only for my special cas

Re: [Gambas-user] Floodfill / pie chart

2009-03-28 Thread Jussi Lahtinen
Hi! I noticed Start and End options to make sector (also in circle), but how to fill them with color? Fabien, here it is, but I think it is not very useful. It is made only for my special case. It has fixed sizes, and it is limited to 8 sectors. Notice that Part() array have to sum up 100% to ma

Re: [Gambas-user] Floodfill / pie chart

2009-03-27 Thread Fabien Bodard
hi jussi, can you send me the vb code ? i'm working on gb.chart component... it may interest me just to complete my component (this component work fine only on svn version) thanks Le 27 mars 2009 11:31, Benoît Minisini a écrit : >> Hi! >> >> I need pie chart in my application, and I have old v

Re: [Gambas-user] Floodfill / pie chart

2009-03-27 Thread Benoît Minisini
> Hi! > > I need pie chart in my application, and I have old vb6 code that does > what I need, but it is based on floodfill. > Do Gambas have any equivalent function? Or alternatively, method to > draw filled sectors? > I'm using Gambas3. > Thanks! > > > Jussi > I think that Draw.Ellipse() will dr

[Gambas-user] Floodfill / pie chart

2009-03-26 Thread Jussi Lahtinen
Hi! I need pie chart in my application, and I have old vb6 code that does what I need, but it is based on floodfill. Do Gambas have any equivalent function? Or alternatively, method to draw filled sectors? I'm using Gambas3. Thanks! Jussi