Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Quarter of an icon in File Explorer


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-30-2008, 10:34 PM
Senior Member
 
Join Date: Mar 2008
Posts: 114
Default Quarter of an icon in File Explorer

Just noticed that my icon on my app when listed in File Explorer on my older iPAQ 3970 (Pocket PC o/s v4.20) shows a the top left hand quarter of the full size icon and not a smaller version of it as it should...

Not sure if the above explains the weirdness ... if not, I'll submit a pic.

Dont suppose its a real prob - more a cosmetic really...
Reply With Quote
  #2 (permalink)  
Old 03-31-2008, 02:26 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default

I take it that your 'icon' is actually a small image control.

Did you create the image control in the Designer, or using AddImage? In either case, you might try setting the 'mode' property of the image control to cStretchImage.


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #3 (permalink)  
Old 03-31-2008, 03:09 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 812
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Hi badkarma

A few questions:
How did you add the icon to your program ?
You should add it in the IDE menu File/Choose Icon

What size is your icon ?
On my Qtek 9090 WM2003 even a 16*16 pixel icon is displayed correctly.

There can be several icons in one icon file.

To see what the icons in the file look like you can use either:

Icon4ppc viewer 2nd post
Icon Editor - COMPETITION TIME

Icon Editor:
Icon Editor

Best regards
__________________
Klaus
Switzerland
Reply With Quote
  #4 (permalink)  
Old 03-31-2008, 04:33 PM
Senior Member
 
Join Date: Mar 2008
Posts: 114
Default

Thanks for the reply all,

Its a 32x32 pixel 16 color EGA/VGA icon, added by the ...

IDE Menu Choose file -> Icon

When I get home tonight I will re-save the icon under an alternative icon editor and re-apply it to the project, recompile and retry ... then write back ...

Cheers

Steve
Reply With Quote
  #5 (permalink)  
Old 03-31-2008, 04:39 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 812
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

You should perhaps save it with 256 colors ! ?
__________________
Klaus
Switzerland
Reply With Quote
  #6 (permalink)  
Old 03-31-2008, 09:03 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default

Sorry, I should have read through the problem more carefully...

__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #7 (permalink)  
Old 04-10-2008, 08:43 PM
Senior Member
 
Join Date: Mar 2008
Posts: 114
Default

Hi, sorry for delay in replying with updates.

Have now saved it with 256 colors but the icon still shows as a top left quarter image on the Pocket PC with Windows O/S v4.20.

I think I will put it down to an OS issue as it appears fine on my other PDA (WM5).

Have fun!
Reply With Quote
  #8 (permalink)  
Old 06-04-2008, 01:38 AM
Junior Member
 
Join Date: Aug 2007
Location: México.
Posts: 33
Lightbulb Try this...

Hi badkarma:

I have same problem:

Tested in a QVGA device (Ipaq 2210, Windows 4.20) and one VGA device (Axim X51v, Windows Mobile 6.1).

The icons 32X32, 256 colors, are showed as a quarter of icon in device with Windows 4.20, and in VGA device are displayed correctly.

Icons 16X16, 256 colors, are displayed correctly in both.

I solved it of the following way:

I used IconWorkShop 6 (Axialis Software - Icons, Make Your Own Icons, Vista Icons, XP Icons, Macintosh Icons) free 30 days trial (I suppose that it is possible to do it with another program of similar characteristics, but I have not verified it.

Open the file that you will convert into icon, and if it is necessary, resize the image to 32X32.

Go to: File_Create Windows Icon From Selection, and select 32X32-256 colors and 16X16-256 colors formats, and save.

Use the icon created in the wished application in Basic4ppc, and now the icon will be displayed correctly in both devices, QVGA and VGA.

This problem only happens with optimized compilation, not with nonoptimized compilation or forced QVGA.

Saludos...
__________________
Dell Axim X51v, WM 6.1 + HP Ipaq 2210, PPC 2003.
Reply With Quote
  #9 (permalink)  
Old 06-09-2008, 09:09 PM
Senior Member
 
Join Date: Mar 2008
Posts: 114
Default

Thank you kyto - I will have a go.
Reply With Quote
  #10 (permalink)  
Old 06-09-2008, 09:17 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,462
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by kyto View Post

This problem only happens with optimized compilation, not with nonoptimized compilation or forced QVGA.

Saludos...
Wile the NEW optimized compile was not available, all icons were 16x16, no exceptions..
Now with the Opti-complile it would be expectable this kind of behavior...
Still, nice workaraound you found there...
I would suggest AWIcon as it is a freeware Icon Editor...
Or Even, our OWN Icon editor from klaus, wich can create 16x16,256color AND 32x32,256Color icons, in the same file...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a image/icon to the Setup file ? mozaharul Questions & Help Needed 1 09-16-2008 05:33 PM
Exe embedded data file and, Icon personalisation. dan kabestan Questions & Help Needed 3 01-15-2008 12:08 PM
Image Explorer dlfallen Share Your Creations 12 11-22-2007 09:56 AM
Objects are not sorted in project explorer windows agraham Bug Reports 0 11-18-2007 04:43 PM
Struggling with the Icon File format. RandomCoder Questions & Help Needed 2 08-04-2007 08:05 PM


All times are GMT. The time now is 01:25 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0