Please change ImageGadget and create ...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Franco.

Hi Fred,
please change (if you can for the next version ...):
ImageGadget(#Gadget, x, y, Width, Heigth, ImageID) ;you can set Width and Heigth to 0 ...
to
ImageGadget(#Gadget, x, y, ImageID) ;why Width and Heigth? it's only confusing...
there is a autofit function in it, the Gadget gets the size of the Image!

and create new:
SizedImageGadget(#Gadget, x, y, Width, Heigth, ImageID) ;or another appropriate name
and autofit the Image instead of the Gadget.

and create new:
ChangeImageGadget(#Gadget, ImageID) ;or another appropriate name
to change an Image on an ImageGadget.

What do you think
IMHO this would be very handy. Thanks


Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.

PS - you can also change the autofit function of ImageGadget to autofit the Image instead of the Gadget, and create AutofitImageGadget(#Gadget, x, y, ImageID) with the old autofit function... or whatever.

Edited by - franco on 25 January 2002 18:56:55
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by redacid.

I agree with all your requests!

regards,
Redacid
---
Only Amiga makes it possible!
Post Reply