![]() |
Setting sprite number max - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51) +----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44) +----- Thread: Setting sprite number max (/showthread.php?tid=2248) |
Setting sprite number max - GIAKEN - 15-10-2008 This could be a little useful for handling scroll bars in editors for choosing sprites. To get the total number of sprites this is what I did: Make a picture box 1x1, set it to appearance-flat, border style-none, autosize-true, and visible = false, and name it picGetSize and place it in frmMainMenu or wherever... Code: frmMainMenu.picGetSize.Picture = LoadPicture(App.Path & "/Gfx/Sprites.bmp") |