Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

polygon input parameters

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-27-2010, 09:19 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default polygon input parameters

Polygon should be able to accept the arrays of x and y coordinates either as strings or as numbers, see attached picture.

In the attached program - it doesn't, only strings are accepted.

Also - how can I input arraylists as coordinates arrays ? the program also demonstrates this problem.
Attached Files
File Type: sbp polygon.sbp (761 Bytes, 9 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 08-27-2010 at 09:21 PM.
Reply With Quote
  #2 (permalink)  
Old 08-28-2010, 04:19 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Were did you see those method signatures? .NET 2.0, which is what Basic4ppc compiles to, only supports two variations and only one of those is implemented in the Compact Framework. The array (or ArrayList if it wasn't broken) is converted by Basic4ppc to an array of Points to pass to the method call.

Code:
Graphics.DrawPolygon (Pen, Point[])  Draws a polygon defined by an array of Point structures. 
Supported by the .NET Compact Framework. 
 
Graphics.DrawPolygon (Pen, PointF[])  Draws a polygon defined by an 
array of PointF structures.
The ArrayList problem is a known bug in v6.90 http://www.basic4ppc.com/forum/bug-r...arraylist.html
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #3 (permalink)  
Old 08-28-2010, 04:50 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

You seem to have found another bug in Polygon in the IDE. When compiled it will accept typed arrays (as well as ArrayLists) but the IDE, as well as not accepting ArrayList parameters as reported in the previous bug report, only accepts arrays of Strings and not Numbers as you have found.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #4 (permalink)  
Old 08-28-2010, 06:01 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,714
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks for reporting. Will be fixed.
Reply With Quote
  #5 (permalink)  
Old 08-28-2010, 06:51 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Andrew
the picture is from ceEnhancedForm.cs
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #6 (permalink)  
Old 08-29-2010, 11:19 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Then I guess only Erel knows why he put them in but didn't provide compiler support for them.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Polygon in v6.90 does not accept ArrayList agraham Bug Reports 3 05-27-2010 05:44 PM
Polygon nicolasWhite Questions (Windows Mobile) 1 05-25-2010 01:25 PM
Errormessage since v6.90 with Polygon Stellaferox Questions (Windows Mobile) 7 05-03-2010 08:35 AM
Subs parameters merli Basic4ppc Wishlist 13 01-22-2010 02:38 PM
Polygon Shrek_Old Russian Forum 2 12-30-2008 04:02 PM


All times are GMT. The time now is 04:11 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0