Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container.SetFocus() issue
Message
From
16/10/2013 12:45:34
 
 
To
15/10/2013 20:34:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01585520
Message ID:
01585650
Views:
72
>Christian --
>
>You said in visual classes you don't have so much control
>
>At least you have some control -- sending a control to the back puts it first and bringing it to the front puts it last.
>

Yep. Control goes to the first object as defined in z-order. Although useful, the thing that gets really annoying is that it may or may not affect tab order the same way as zorder. It becomes very annoying when you've got overlapping controls. Let's say you've placed a shape control on the form to "outline" a group of controls. Let's say you've got a textbox over the shape, and you select "send-to-back" -- it now ends up *behind* the shape object. If the shape interior is opaque now your textbox is *behind* the shape. If the shape interior is transparent, the visual effect is OK, but the behavior might not be OK -- the shape that is "in front" of the textbox now captures mouse events -- so you might not be able to click on the textbox. In many situations the effects of "move-to-front" and "move-to-back" caused enough "side-effects" that it was easier to "fix" the problem by first "hacking" the form (i.e. open form as DBF and editing directly) to get rid of the "zorder" properties, then manually changing the zorder by repeatedly cutting the controls and pasting them back in the order that I wanted them to appear.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform