Link to home
Start Free TrialLog in
Avatar of CodedK
CodedKFlag for Greece

asked on

Un focus

Hi.

Is there a way to unfocus my form with the press of a button ?
ASKER CERTIFIED SOLUTION
Avatar of mokule
mokule
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CodedK

ASKER

Well it is what i asked, unfortunately it isnt what i need .... :/

Thanks.
So what do You need?
Avatar of CodedK

ASKER

OnButtonClick there is a popup message that is unfocused. I thought that if i remove focus from
my form before the popup occur the popup window will have focus... but this doesnt work.

I used it like this :

OnButtonClick
SetActiveWindow(0)
PopupMessage
SetActiveWindow(0)

Not only the popup didnt gain focus but i have to call redraw for the form.
Avatar of CodedK

ASKER

I cant use SetForeGrounwindow for the popup since it is a dialog and doesnt have any handle.