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.

ImageList.Item optimised compiler bug?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-24-2009, 10:47 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default ImageList.Item optimised compiler bug?

Seen this one Erel? http://www.basic4ppc.com/forum/addit...html#post30086
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #2 (permalink)  
Old 11-28-2009, 02:35 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks for pointing it.
However I'm still missing something.
This code seems to work fine when compiled:
Code:
Sub App_Start
    Form1.Show
    a = 
"smiley.gif"
    ImageList1.Add(a)
    a = 
"btnhome.bmp"
    ImageList1.Item(
0) = a
    form1.Image = ImageList1.Item(
0)
End Sub
__________________
Basic4android documentation
Reply With Quote
  #3 (permalink)  
Old 11-28-2009, 02:46 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Code:
Sub App_Start
    Form1.Show
    a = 
"smiley.gif"
    ImageList1.Add(a)
    a = 
"btnhome.bmp"
    ImageList1.Item(
0) = a
    <font color=
"Red">form1.Image </font>= ImageList1.Item(0)
End Sub
That works because Form.Image can convert a string filename to a bitmap using GetBitmapFromString, ImageLib.Drawer.DrawImage1 and ImageLibEx.DrawerEx.DrawImage won't so can't use an ImageList containing strings.

EDIT: Corrected the DrawIMage references.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #4 (permalink)  
Old 11-28-2009, 02:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Ok. Now I see it. The actual string is saved in the ImageList

Will be fixed in the next version.
__________________
Basic4android documentation
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
Optimised compiler omits code with no error! agraham Bug Reports 1 06-22-2009 04:20 PM
ImageList problem AVS Questions (Windows Mobile) 12 02-28-2009 07:10 AM
Selected item to top of ListBox HARRY Questions (Windows Mobile) 4 12-19-2008 09:35 AM
Optimised compiler bug using ^ on control.text agraham Bug Reports 0 07-28-2008 04:29 PM
add menu item at runtime? bob Questions (Windows Mobile) 1 11-20-2007 12:05 PM


All times are GMT. The time now is 03:55 AM.


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