[lazarus] CVS Committed
cwhite at aracnet.com
Sat Dec 30 01:42:07 EST 2000
On the TButtonGlyph, there should be a property that specifies how many images the Glyph contains. It should then be able to use the size of the Glyph to determine where the start of the second one is. For example, if the Glyph size is 30 and it contains 2 images,
then it would l get the first image at 0-29 and the second image at 30-59 and the image count property would be 2. Then it would be completely configurable. If we wanted to add more states than just on and off we could. Seems like it should be fairly easy to
implement this. Just an idea if anyone has time.
Shane Miller wrote:
> TStatusBar's Create and Destroy weren't overriding TWInControls so they never got called.
> I fixed this and now you can drop statusbar's onto a form.
> Also, I fixed gtkObject's entry to settext for csStatusbar. We weren't getting a context_id when setting the test.
> I seem to remember that the statusbar was able to display more than one area of text in GTK but it doesn't look like the 1.2 version can. I know the win32 one can but I'd swear that the gtk could too. Anyone back me up on this and explain why it can't anymore?
> Also, I setup TButtonGlyph so when it paints it now checks the STATE and if the image width > 25 it draws from 25 - 50 instead of 0-25. This will allow us to include enable/disable images in one glyph.
> I've only committed the SAVE, SAVEALL and RUN buttons with disable images. They are actually in the resource imags/laz_images.lrs.
More information about the Lazarus