navi Messages: 107 Registered: February 2012 Location: Sydney, Australia
Experienced Member
mircerlancerous wrote on Fri, 01 February 2013 17:33
I'm thinking I need a whenleftup event but there isn't one available. There is a virtual void LeftUp but I don't know how I might make that work.
overriding virtual void leftUp of LineEditExtended will only override the virtual void leftUp of LineEdit but not of scroll bar i.e the sb object member. beside even if you do override leftUp for other reasons, you have to remember to return the even to LineEdit via calling the LineEdit::LeftUp(p, keyflags); or else your LineEditExtended will not function properly.
Quote:
Basically I'm looking for exactly what you gave me plus an event on the leftup as well.
Thanks again.
I dont think you can achieve what you trying to get just by extending LineEdit ctrl alone. as the event that you are after belongs to sb member of LineEdit. I personally will try to find a solution in other way. for example, hiding the LineEdit Scrollbars and Implementing my own.