Subject: | Re: BringToFront vs Visible
| Date: | Tue, 24 Apr 2018 16:26:58 -0400
| From: | "Kevin Baker" <shcsbaker@gmail.com>
| Newsgroups: | pnews.paradox-programming
|
Hi Bob,
Thanks. Yeah I hate dealing with the box picking up other objects, someone
said to make it a group, but I've seen it still pickup other objects. I was
hoping the send-to-back was a better way. Guess not.
Thanks again,
Kevin
"Bob Eccles" wrote in message
news:f1992c0b-c98f-227c-ce8d-1d7ac84ff5ec@gmail.com...
On 25/04/2018 3:12 AM, Kevin Baker wrote:
> I've got a box on my form that I use to display a "Wait Printing"
> message. I'm currently using visible True or False as needed. I was
> thinking about switching to SendToBack() and BringToFront() as this
> would allow me to "bury" the box behind my other objects and allow me to
> work on the form in design mode a little easier. Are there any issues
> with using the SendToBack/BringToFront?
>
> Thanks
> Kevin
Hi Kevin,
I haven’t had any problems with either method.
But one thing you have to watch out for is ‘containership’. As you move
something between front and back, it can unexpectedly pick up other
objects, or be picked up by them, which means you may seem to lose the
object altogether.
I usually use ‘visible’ true/false.
If you want to hide something when you’re in ‘design’ mode, you can use
‘send-to-back/bring-to-front’ automatically by specifying it in the
‘open’ method.
HTH
Regards
Bob Eccles
|