Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Always on top for a Button??
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00887735
Message ID:
00887924
Views:
12
Steve,

If the button has focus it will be above everything else.

What is the exact code in your Click()?

I put an edt on a form, and a cmd below the edt.
*The cmd.Click():
thisform.edit1.SetFocus()

*the edt.GotFocus:
with this
   .Width = .Width * 2
   .Height = .Height * 2
endwith

*the LostFocus:
with this
   .Width = .Width / 2
   .Height = .Height / 2
endwith
click the button, the edt grows and covers the button until I hit tab.

>I have a form with a button and a Editbox. When I click on the Editbox (based on code in getfocus ),
>it becomes larger , covering the button.
>However, the button still appears on top of the Editbox. Within the form designer,
>in properties, I have removed the check from "always on top" for the button.
>Why does it not dissapear when the editbox overlaps and covers it?
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