For help with general CEGUI usage:- Questions about the usage of CEGUI and its features, if not explained in the documentation.- Problems with the CMAKE configuration or problems occuring during the build process/compilation.- Errors or unexpected behaviour.

Hi there, I was wondering if anybody knows how to make a button unclickable, but without setting it to not enabled, so it looks like an enabled button, but simply cannot be clicked.
I was thinking I could perhaps disable event capture for it, but have had no luck.
Any help would be great, thanks a lot

Yes that should work, but as you stated it doesnt, I would just not subscribe to the onclick event. Other option is, ofcourse, disable it, but you didn't want to do that

Alternatively, you could edit the looknfeel, and create something new, but it requires alot of work if you are not already into Falagard mapping. I wouldnt do this if you only plan to have a 'disabled' button.

Ahh well you see, I want to make it non clickable. So mutedState prevents events?
I was looking for something that has the effect of setEnabled(false), but without dimming the button, so it looks active and pretty, not greyed out.

So effectively, I have something that looks like a normal button, but isn't a button (at least it doesn't behave like one - can't be clicked)

I understand what you want, but not why. You could easily do this with a statictext with a background and a frame. But if you really want the button, you will need to either use setEnabled or change the looknfeel. If you want, I can write the looknfeel entry for you, you just simply paste it in your looknfeel file, and use setLooknFeel on the button (I think that'll work, never tested though).

Ahh. Hmm, well I thought widget reuse would be a good idea. I didn't want to define lots of textures and stuff. If I could simply apply the texture used by the windowslook buttons to a static image that'd be cool, but I have no idea how to do that.

Thats kinda like the same. The looknfeel entry of that button is going to be very simple to do. I could make it for you if you like. It would come out as a normal button, unclickable, and no hover action.