2ffat,
Thanks for the response. Your link led me indirectly to delve into the WIN32 API and come up with a solution.
Here's what I did for future reference:
1. Register a new Windows Procedure for the TRichEdit's underlying window.
2. Catch a right click event in the new Windows Procedure...
I realized that getting the character in the TRichEdit that is under the mouse cursor when it is right-clicked would accomplish what I am trying to do as well - I don't actually need to reposition the cursor.
So, for example, if a TRichEdit has the following text in it:
"The quick brown fox"...
Hi All,
I am trying to position the caret in a TRichEdit based on where a user right clicks, but TRichEdit only seems to position the cursor when a user left clicks.
When a right click occurs, I can get the mouse pointer position in pixels within the control, but I am not sure how to translate...
By setting my app's TApplication object's Icon property at run-time to my icon, I was able to get the icon to show up in the task bar and the alt-tab bar. As I said above, it was already showing up in the application window. However, it is still not showing up next to the app in explorer or on...
Yes, that causes the .res file to recreate - it didn't fix the problem though.
Even after closing Borland, deleting the .res file, and then reopening Borland and the project (I got a message saying it was recreating the .res) my icon was still in the upper corner of the main app. But when I...
Hi All,
I've used the Project->Options->Application dialog to set an application's icon. The icon shows up in the upper-left corner of the main window, but it does not show up in the app's task bar button, next to the program in explorer, on the alt-tab window selection pop-up, or on child...
Thanks for the response, James.
I considered the possibility of it being deeper in the code, and tried to dumb down the OnKeyUpMyLabeledEdit method to just display a message box when it got called. The message box causes a beep, but I hear TWO beeps, meaning that the other beep is still there...
Hi All,
I have a TLabeledEdit object and an OnKeyUp event handler for it. In the event handler, I check to see if the user has pressed enter, and if they have, I enter the text in the TLabeledEdit object into a TListView. My problem is that when this happens, the machine's bell sounds. I...
I should mention, for anyone else who reads this thread, that using TListView combined with 2ffat's suggestion can give a powerful list box that will help do the things I mention in the my original post. For exapmle, TListView gives the ability to do grid lines.
Thanks James. That will help, and also answers a bunch of other questions I had while introducing me to a topic I was figuring I was going to have to dig into sooner or later.
One star for you!
Jeff
Hi All,
I've two questions related to TListBox that I've been unable to find the answer to. I'm hoping someone here can help.
Backgroud: My app has a TListBox into which users can add strings by using a TEditBox.
Questions:
1. I'd like to have the strings in the TListBox separated by some...
Hi,
I recently downloaded Borland Turbo C++ Explorer, and despite extensive help entries on the TActionManager object, I can't seem to find it in Turbo's Tool Palette. Does anyone know if this object is included in the Exporer version of Turbo C++? I'm suspecting it's not and that I'd have to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.