How to prevent the user from resizing DIBs in TRxRichEdit?

Posted on 2004-11-15
Last Modified: 2010-04-05
Please view the PAQ question 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
Question by:msa2003
    LVL 1

    Accepted Solution

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

    Author Comment

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

    Expert Comment

    Try the

    OleFormObject.OnResize method.

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

    Author Comment

    There is no one acceptable answer so I give grade C to Newt6398. I'm sorry.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video discusses moving either the default database or any database to a new volume.

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now