You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Lance, Aldo,
Thanks! It seems both methods can solve my problem. Wouldn't it be a lot easier if
controls had a bit more equal behaviour (Listview DOES return a right-click; why listbox not?)
BTW: The dropdown part of a combobox doesn't seem to generate any event.
Is this already subclassed to the edit box part?
i had a similar problem a few weeks ago. windows uses right mouse button as a getting help command - you'll get a wm_contextmenu message when you right-click on the listbox. look at http://www.powerbasic.com/support/pb...ead.php?t=3514 - fred oxenby posted a very useful sample code.
------------------
[this message has been edited by aldo cavini (edited april 08, 2001).]
those are low-level messages which the control does not reflect/pass back to the parent callback, so you'll need to subclass the control in order to intercpt such messages.
some time back, i posted an example (in the source code forum) which shows how to subclass an edit control - this exact code should work fine for subclassing a listbox.
It seems a listbox with %LBS_NOTIFY doesn't generate right mouse button events or %WM_KEYDOWN.
Is there a way to receive them? (Want to use right mouse and INS/DEL keys...)
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: