RadioGroup text visibility

Posted on 2005-04-17
Last Modified: 2010-04-05
I have a Radiogroup for which visible is initially false.  When I set
visible to true during execution, the Radiogroup box appears, but
the text is missing.  The same thing happens if I use hide and show.
If I set visible initially to true, the text is there.  
Question by:RalphSCoffin
    LVL 11

    Expert Comment

    Hi, is this a standard TRadioGroup , or a third party?
    LVL 11

    Expert Comment

    Is this a standard TRadiogroup or a thirdparty?

    Did you try things such as   RadioGroup1.Invalidate;  or repaint?

    Or something as simple as processing the application messages


    You would do this after each show/hide,   or visibility change


    Author Comment

    Standard RadioGroup.  I have an almost identical RadioGroup on
    another form that works.  So I copied the working RadioGroup from
    the working form and pasted in place of the RadioGroup that
    doesn't work and the problem persists.  I've been careful to put
    the RadioGroup on the form so that it isn't inside some other
    item on the form.  This is insane.  
    LVL 11

    Accepted Solution

    There can be problems with cutting and pasting when it comes to ownership.
    I advice never to cut and past controls onto other controls (nested). It is best to just drop them on and reset the properties to match the previous one.
    I bet, you remove that TRadioGroup, REBUILD/RECOMPILE, then drop one on (do not cut and paste), then REBUILD/RECOMPILE and it will work.....

    LVL 3

    Expert Comment

    Try Radiogroup1.Update

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    754 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

    19 Experts available now in Live!

    Get 1:1 Help Now