#96138 - 2002-11-27 12:12 AM
Re: Sorry, there are no new posts today.
|
Lee Wilmott
Starting to like KiXtart
Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
|
Ah ha!
I was trying to look on the forums to see if anyone has mentioned the "Stolen Focus" problem using BBChecker!
I guess everyone's aware of it!
No need to say anymore!
Lee
|
|
Top
|
|
|
|
#96140 - 2002-11-27 01:28 AM
Re: Sorry, there are no new posts today.
|
MightyR1
MM club member
   
Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
|
Shawn,
your wish... Oh well here you go:
a.kix code:
;Used bbChecker as a source to test steal focus thingie Break on CLS $m = CreateObject("kixtart.form") $m.caption = "Steal Focus - Main" $m.width = 200 $m.height = 100 $m.Left = ($m.screen.width - $m.width) / 2 $m.top = ($m.screen.height - $m.height) / 2 $fbe = $m.button("Exit",60,50,80,20) $fbe.onclick = "$$m.visible = 0" $Loop = $m.timer(5000) $Loop.ontimer="$$loop.interval=0 update() $$loop.interval=5000" $m.visible=1 ;$m.show While $m.visible $x=Execute($m.doevents) Loop Exit 0 Function update() ;$rc=MessageBox("Update function called","KiXtart message",64,2) Call @scriptdir+"\b.kix" EndFunction
b.kix code:
Break on CLS $p = CreateObject("kixtart.form") $p.caption = "Steal Focus - Child" $p.width = 200 $p.height = 100 $p.Left = ($p.screen.width - $p.width) / 2 + 50 $p.top = ($p.screen.height - $p.height) / 2 + 100 $pfbe = $p.button("Exit",60,50,80,20) $pfbe.onclick = "$$p.visible = 0" $pLoop = $p.timer(2000) $pLoop.ontimer="$$ploop.interval=0 $$p.visible=0" $p.visible=1 ;$p.Show ;$p.ShowInTaskbar = 0 $p.TopMost = 1 While $p.visible $y=Execute($p.doevents) Loop Exit 0
Steps to reproduce: - Start IE
- Start a.kix
- Activate IE; still no stealing...
- Click "Steal Focus - Main" in taskbar
- Focus gets stolen every time child pops up
- Click the taskbar "Steal..." twice again (see main going to taskbar)
- Focus not stolen
Tested with: WinXP NL with SP1, KiXtart 4.12 and KiXforms 2.1.2.36 Going to bed now, will test tomorrow on Win2k US...
_________________________
Greetz, Patrick Rutten
- We'll either find a way or make one... - Knowledge is power; knowing how to find it is more powerful... - Problems don't exist; they are challenges...
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1188 anonymous users online.
|
|
|