[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to prevent the user from resizing DIBs in TRxRichEdit?

Posted on 2004-11-15
5
Medium Priority
?
295 Views
Last Modified: 2010-04-05
Please view the PAQ question http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21205364.html to see the problem details. Shortly, I am trying to create a chat client with graphic emoticons using TRxRichEdit Delphi component and DIB emoticons. Everything works fine enough but the user can resize emoticon images simply dragging their borders. How to prevent the user from this?

Many thanks
msa
0
Comment
Question by:msa2003
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
Newt6398 earned 1000 total points
ID: 12589183
just a wild suggestion as am not totally aware of your problem.

Could you not locate the mouse pointer on your form and create a Transparent TImage to the exact size & position of the culprit component and enumerate mouse clicks on the TImage to interact with your emoticon (Or whatever you call it). This way the user won't be able to move the component as interaction is via the TImage and not the component itself.
0
 
LVL 5

Author Comment

by:msa2003
ID: 12591043
New6398: Thank you but I need the user to interact with the text in the Rich Edit, I just want to prevent the user from resizing embedded images.
0
 
LVL 1

Expert Comment

by:Newt6398
ID: 12592148
Try the

OleFormObject.OnResize method.

Dunno how you'll implement it. Good luck
0
 
LVL 5

Author Comment

by:msa2003
ID: 13343111
There is no one acceptable answer so I give grade C to Newt6398. I'm sorry.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month19 days, 19 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question