Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / Process freeze when moving window

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Process freeze when moving window
#4016
Posted by: 2004-05-04 12:44:24
When I'm moving a form window with mouse (or just holding the moesebutton down on the blue title border), all processes in that form freezes.

I am making a game which include keypressings and it's easy to cheat: just move the form window while holding the key you want to cheat with, and then release the mousebutton.

How can I solve this?
Is there a way of "remove" the annoying process freezing?
Message2. Re: Process freeze when moving window
#4050
Posted by: erdemaal 2004-05-06 19:52:44

You ???may have recursive events ! ???
It can happen when you use ??OnShow, ??OnReSize, ???...

Jacques !
Message3. Re: Process freeze when moving window
#4051
Posted by: 2004-05-06 22:29:16
Well, okey I see your point.
But how can I avoid these recursive events, even on a small & simple code?
I believe these recursive events is most necessary, at least to do things on an interactive window.

My question is still;
How do I avoid the process freezing when clicking on the title border?


Try run this simple code.
When clicking on that windows title border, you'll
see the clock freezes for a short time.

 DIM Form AS QFORM
 DIM Label AS QLABEL
 DIM Timer1 AS QTIMER
 DECLARE SUB showTime

 Form.Center
 Form.BorderStyle = 1
 Form.DelBorderIcons(2)
 Form.Width = 200
 Form.Height = 100

 Label.PARENT = Form
 Label.Left = 18
 Label.CAPTION = STR$(TIMER)
 Label.Top = 16
 Label.Visible = 1

 Timer1.Interval = 1
 Timer1.Enabled=1
 Timer1.OnTimer=showTime

 SUB showTime
  Label.CAPTION = STR$(TIMER)
 END SUB

 Form.SHOWMODAL

Message4. Re: Process freeze when moving window
#4096
Posted by: 2004-05-12 09:33:42
I now better understand what you meant by "freezing". Forget about my "recursive events" :)

Maybe it's normal ? Did you try with other compilers ? In example VB ?

It can make sens to stop repaint of a window that is moved ?

Jacques
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2022-10-7  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0