Re: "Icon is corrupt or in the wrong format"



Hi,

What icon extension are you using ?

If you're having problems with ".ICO" extension, try changing it to ".ICON",
or the contrary.

That worked for me in a specific case sometime ago...

Hope this helps

Cesar


"Liska Station" <msnewsJUNKFILTER@xxxxxxxxxxxxxx> escreveu na mensagem
news:Xns990E63FC6956LiskaStation@xxxxxxxxxxxxxxxx
Heheh: Most likely.
It's funny - you'd think a NEWER version would be BETTER about accepting a
wide array of different formats.

Ahh well, as long as I got it to work (which I did. Thanks, everyone) I'm
happy.

I liked having a large format icon so that it looked good in Windows'
thumbnail-icon views but it's not mandatory.

Cheers!

-LS

"Dan Freeman" <spam@xxxxxxxxxxxxx> wrote in news:ewM6aIyeHHA.4636
@TK2MSFTNGP03.phx.gbl:

I'm surprised older versions accepted those formats. VFP has always been
rather finnicky about image files in general, and icons in particular.

I *suspect* the reason they fail now is the switch from GDI to GDI+.
Instead
of using internal routines for handling images, VFP now relies on GDI+.
Why
it would object *now* is anyone's guess, but perhaps it's validating what
it
hands off to the GDI+ library?

Dan

"Liska Station" <msnewsJUNKFILTER@xxxxxxxxxxxxxx> wrote in message
news:Xns990DD9B0AF466LiskaStation@xxxxxxxxxxxxxxxx
That's odd. I've been able to use 32x32, 64x64, and 128x128 icons with
256
colors in vfp5, vfp6, and vfp7. It's only since switching to 9 that
I've
had the problem. I'll try jacking it down to 32, and see what happens.

I'll keep you posted.

-LS


"Fred Taylor" <ftaylor@xxxxxxxx!REMOVE> wrote in news:#$eeF$weHHA.5052
@TK2MSFTNGP06.phx.gbl:

For VFP9, I'm not sure what the limitations are, but the size has
always
been limited to 32x32. I think you can now use the 256 color icons,
but
earlier versions were limited to that size with 16 colors.








.



Relevant Pages

  • [Bug Suspicion] So, <any_gdi_object>.Dispose() does ... what exactly?
    ... I have developed a very small Windows application which creates a new Icon ... using .NET GDI+ every second ... I also dispose all GDI+ objects (Bitmap, ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: [Bug Suspicion] So, <any_gdi_object>.Dispose() does ... what exactly?
    ... I've compiled your app and have it running now. ... GDI objects counter in the task manager increases by 3 per every redraw - ... I've had it running for some 10 minutes now and it already shows 1527 GDI ... >> system tray icon so I can't just paint to a control or something. ...
    (microsoft.public.dotnet.framework.drawing)
  • Kudos too mick
    ... > Bitmap.GetHiconcreates the GDI object which is never released. ... > private void timer1_Tick ... >> system tray icon so I can't just paint to a control or something. ... >> every second or every minute, I dispose of the previous icon. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: [Bug Suspicion] So, <any_gdi_object>.Dispose() does ... what exactly?
    ... Bitmap.GetHiconcreates the GDI object which is never released. ... private void timer1_Tick ... > I have developed a very small Windows application which creates a new Icon ... > unused handles of previous GDI objects (remember that's six per ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: [Bug Suspicion] So, <any_gdi_object>.Dispose() does ... what exactly?
    ... I did not see this when I wrote an article for drawing icons from ... > I have developed a very small Windows application which creates a new Icon ... > using .NET GDI+ every second ... I also dispose all GDI+ objects (Bitmap, ...
    (microsoft.public.dotnet.framework.drawing)

Loading