Mirage Source
Setfocus - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Programming (https://mirage-engine.uk/forums/forumdisplay.php?fid=24)
+----- Forum: Visual Basic 6 (https://mirage-engine.uk/forums/forumdisplay.php?fid=32)
+----- Thread: Setfocus (/showthread.php?tid=3169)



Setfocus - Matt - 01-10-2009

I have a problem. I moved my party menu to a separate form and anytime it updates, it steals focus. How can I stop it?


Re: Setfocus - GIAKEN - 01-10-2009

Make the game loop handle every input.


Re: Setfocus - Matt - 01-10-2009

There has to be another way. I don't wanna have to rework the gui or any systems for this.. -_-

Isn't there a way to not allow focus to a form?


Re: Setfocus - GIAKEN - 01-10-2009

Private Sub frmwhatever_GotFocus()?

Make it set focus back to frmmaingame.


Re: Setfocus - Matt - 01-10-2009

GIAKEN Wrote:Private Sub frmwhatever_GotFocus()?

Make it set focus back to frmmaingame.

I tried that, it just flickers and makes the game lag, cause every time someone in your party takes a hit or regens, it changes focus. Maybe I'll just fuck with how it's shown in the main screen. *shrugs*