I have create a window which type is "Slider". And I want to this window can't receive any event from mouse cursor. So i use the "setEnabled(false)".
Maybe it make the function true successfully. But I find that the colour of the window become dim.
How to keep the original colour if I want to use the "setEnabled(false)"?
Or can you tell me another way that the window can't receive any mouse course's event?
Thank you very much!
Somethig about setEnabled(false) ?
Moderators: CEGUI MVP, CEGUI Team
Re: Somethig about setEnabled(false) ?
ogre2012 wrote:I have create a window which type is "Slider". And I want to this window can't receive any event from mouse cursor. So i use the "setEnabled(false)".
Maybe it make the function true successfully. But I find that the colour of the window become dim.
How to keep the original colour if I want to use the "setEnabled(false)"?
Or can you tell me another way that the window can't receive any mouse course's event?
Thank you very much!
I have solved this problem.I create another child window which has the same size with the parent window.And the child window is 'blank' image . Such as :
mNoneLabel is StaticImage type.
mNoneLabel->setProperty(_T("UnifiedAreaRect"),_T("{{0.0,0},{0.0,0.0},{1.0,0.0},{1.0,0.0}}"));
mNoneLabel->setProperty(_T("Image"), _T(""));
So the parent window can't receive any event from mouse cursor.
Who is online
Users browsing this forum: No registered users and 2 guests