Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. roadbeer69

    Position TRichEdit Caret Based on right-click

    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...
  2. roadbeer69

    Position TRichEdit Caret Based on right-click

    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"...
  3. roadbeer69

    Position TRichEdit Caret Based on right-click

    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...
  4. roadbeer69

    Application icon not behaving as expected.

    The fact that setting the Application->Icon property at run time doesn't make the icon show up next to the app in explorere makes sense, of course...
  5. roadbeer69

    Application icon not behaving as expected.

    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...
  6. roadbeer69

    Application icon not behaving as expected.

    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...
  7. roadbeer69

    Application icon not behaving as expected.

    Thanks for the response, James. Are you speaking of the projectName.res file?
  8. roadbeer69

    Application icon not behaving as expected.

    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...
  9. roadbeer69

    Bell sounds when pressing enter key.

    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...
  10. roadbeer69

    Bell sounds when pressing enter key.

    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...
  11. roadbeer69

    TListBox: add row seperators and control horizontal scroll bar

    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.
  12. roadbeer69

    TListBox: add row seperators and control horizontal scroll bar

    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
  13. roadbeer69

    TListBox: add row seperators and control horizontal scroll bar

    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...
  14. roadbeer69

    TActionManager included in Turbo C++ Explorer

    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...

Part and Inventory Search

Back
Top