AVAX-software.com Forums: ChangeShapeFill problem - AVAX-software.com Forums

Jump to content

Page 1 of 1

ChangeShapeFill problem

#1 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 31 May 2005 - 10:39 AM

Hi,

I have tested your new version of Avax. It seems there is a problem with it. I put a circle on the screen. I supposed it has the filltype property equal to Avax.AvaxFillType.No_f, but as i have checked it, it's equal to Avax.AvaxFillType.Solid_f.
This is not a problem by itself but when I try to chage its filltype by ChangeShapeFill, it doesn't work. It only works in the case when I use your former Fill command (in which the original handle will be lost) and a filled circle replaces the original one. Then after using ChangeShapeFill, it works fine.
Why doesn't it work with a simple circle or any other simple shapes?
Thank you so much

#2 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 31 May 2005 - 10:52 AM

By the way, I used the code below:
Dim b As Boolean
b = cAvax1.ChangeShapeFill(...)
I checked b and it's equal to False. Could this help?

#3 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 31 May 2005 - 11:25 AM

Hi,

Functions cAvax1.GetShapeFill and cAvax1.ChangeShapeFill applies to shape objects only. Is AVAX handle you are sending to the function for a simple circle? If yes this is the reason that the function returns False.

But, I can upgrade these functions and add to them the feature to change the fill also in regular objects like circle, rectangle etc. This will be ready until the end of this week.
Athanasios Gardos
Avax-Software.com

#4 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 31 May 2005 - 12:11 PM

Thank you so much. I think that's why my code didn't work. I used a simple circle. Anyway I got a question. What's the difference between a simple circle I draw on the screen with a circle whose filltype I change by Fill menu? What makes the second one a SHAPE?
Thanks again

#5 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 31 May 2005 - 12:29 PM

Hi,

All objects added with functions cavax1.Add_ShapeXXXX (e.g. Add_ShapeCircle, Add_ShapeRectangle etc.) are shapes. Shapes have filltype and zOrder. All other objects (e.g. Add_Circle etc.) are regular objects.
Athanasios Gardos
Avax-Software.com

#6 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 01 June 2005 - 06:48 PM

Hi,

Please download the latest version of AVAX v.1.3.35.
You can use ChangeShapeFill also with some regular objects.
Athanasios Gardos
Avax-Software.com

#7 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 01 June 2005 - 08:36 PM

Hi,

Thank you for the updates. I would like to ask you a question. I tried the Changeshapefill method and it works fine, but it seems too slow on a map to change the filltype of multiple objects comparing with the prior Fill command in which you removed the original object. Is it possible to change the method so that it gets a set of handles rather than a single handle and then apply the changes to the shapes with the specified handles at a same time?
something like this:

Call cAvax1.ChangeShapeFill(handles_array, Fill_iType_array, Fill_lHatchIndex_array, ... )

Thanks a lot.

#8 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 02 June 2005 - 08:20 AM

Hi,

I can't change the function now, because I have to break the compatibility.
You can use a simple loop.
Athanasios Gardos
Avax-Software.com

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users