Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textboxes, etc bleed through Zorder(0) container
Message
 
 
To
27/05/2005 19:25:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01018318
Message ID:
01018442
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
Malcolm,

Whenever the textbox gets focus VFP is going to repaint it's inner data input area, that's going to end up over the top of your container.

The only way I could see to deal with this if you want to continue using a container on he same form would be to temporarily clip the controls to the boundaries of the container.

I think you'll be better off using an undocked toolbar. I'm pretty sure you can use the hWND property in a call to a WinAPI function to turn off the Titlebar.

>I'm floating a status message container on top of my form. I float the container to the top via .Zorder(0). Looks great!
>
>But when a user clicks on this container, and an underlying control has focus, it bleeds through the container, i.e. the underlying control actually becomes active and floats back over my Zorder(0) container! I've tried adding shapes and other (nested) containers to my message container to block this behavior, but without success.
>
>Has anyone seen this before?
>
>Is it by design?
>
>Any workarounds besides using a window or form? I'm not using windows/forms for my status messsage because if a user clicks on these items their control will lose focus. A toolbar doesn't have this problem, but just looks ugly in this context.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform