Discussion:
hide labelededit
(too old to reply)
shark
2008-07-07 04:41:16 UTC
Permalink
after set labelededit->visible=0, the edit box is hidden, but the label is
still there.


how to hide both the edit box and the label?
--
shark
Paolo Roberto Grassi
2008-07-07 07:43:19 UTC
Permalink
Are you sure you are working with a labeled edit? I've just use your
code and it works correctly.

Nice Day!
Post by shark
after set labelededit->visible=0, the edit box is hidden, but the label is
still there.
how to hide both the edit box and the label?
shark
2008-07-08 02:26:36 UTC
Permalink
I use labeledEdit in a frame at begining, this frame is put into another
frame where I control the visibility of labelededit in constructor. the
second frame is put into a form finally.

After I encounter the problem I descripted previously. I use a label and a
edit separately. I control them well.


Now I want to show you the previous problem, I put a labelededit into the
first frame again and try to control it. But the application throws an
exception:

Project xxx.exe raised exception class EClassNotFound with message 'Class
TLabeledEdit not found'.


How to restore?

I already use some labelededit in other places too.



*/
Are you sure you are working with a labeled edit? I've just use your code
and it works correctly.
Nice Day!
Post by shark
after set labelededit->visible=0, the edit box is hidden, but the label
is still there.
how to hide both the edit box and the label?
shark
2008-07-08 02:47:42 UTC
Permalink
After I delete and re-add frame2 in the form, It works fine.I can control
labeledeidt too.

Frame is a very good thing, but the frame-user always lost synchronization
with the frame after the frame is modified. Maybe thats my fault.

thanks
Post by shark
I use labeledEdit in a frame at begining, this frame is put into another
frame where I control the visibility of labelededit in constructor. the
second frame is put into a form finally.
After I encounter the problem I descripted previously. I use a label and a
edit separately. I control them well.
Now I want to show you the previous problem, I put a labelededit into the
first frame again and try to control it. But the application throws an
Project xxx.exe raised exception class EClassNotFound with message 'Class
TLabeledEdit not found'.
How to restore?
I already use some labelededit in other places too.
*/
Are you sure you are working with a labeled edit? I've just use your code
and it works correctly.
Nice Day!
Post by shark
after set labelededit->visible=0, the edit box is hidden, but the label
is still there.
how to hide both the edit box and the label?
Remy Lebeau (TeamB)
2008-07-07 17:26:33 UTC
Permalink
Post by shark
after set labelededit->visible=0, the edit box is hidden, but
the label is still there.
It should not be. TLabeledEdit handles the Visible property of the TLabel
internally for you. They should both be hiding and showing together.


Gambit
Loading...