Game Development Community

guiBitmapCtrl AutoSize

by Xavier "eXoDuS" Amado · 05/30/2002 (5:09 pm) · 6 comments

Download Code File

This code snippet is the same old guiBitmapCtrl you know of, but with a new option, the autoSize. When checked it automatically resizes the guiCtrl to the size of the loaded image data.

Also I made use of a command I didn’t knew before this (though this was coded some time ago) which is the removeField(const char *in_pFieldname) you add this function in the initPersistFields( ); and it will remove fields that you see in the config panel of the gui. In this code I removed command and altCommand.
Enjoy!

#1
05/30/2002 (5:22 pm)
Wow, good thinking.

(that is not sarcastic, so please. don't complain)
#2
05/30/2002 (5:30 pm)
thanks matt :)
It isn't anything fancy dandy, but it might come in handy. Very simple code, I was using it for some time and thought it would be nice to share it :)
Hope anyone give it good use
#3
05/30/2002 (6:42 pm)
Extremely Useful

Thanks!
#4
05/31/2002 (9:15 am)
Oh btw, to use autosize you need to deslect Wrap, you can't use both modes at the same time.. If you choose wrap, autoSize will automatically be disabled.
#5
07/01/2002 (11:20 am)
Call me stupid, but where is the code? :)
#6
07/10/2002 (11:03 am)
It seems it was deleted or lost... or i never uploaded it? :\
Anyway, it's up now