Visual Basic Reactors

Visual Basic Reactors

Anonymous
Not applicable
520 Views
4 Replies
Message 1 of 5

Visual Basic Reactors

Anonymous
Not applicable
I am experimenting with reactors in Visual basic. I am running into a problem if I have two entities linked and one of them moves I have a reactor setup to recalculate information based on the two objects, but if one of the objects (entities) is outside of the viewable area (screen display) it give me incorrect information. It's like if it doesn't see it on the screen it doesn't know what to do. Can anyone help?

Thanks,

Miguel
0 Likes
521 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Zoom Object?
0 Likes
Message 3 of 5

Anonymous
Not applicable
what properties of the object are being returned incorrectly? what types of objects are you interested in? can you post your code? "mloreto" wrote in message news:[email protected]... > I am experimenting with reactors in Visual basic. I am running into a problem if I have two entities linked and one of them moves I have a reactor setup to recalculate information based on the two objects, but if one of the objects (entities) is outside of the viewable area (screen display) it give me incorrect information. It's like if it doesn't see it on the screen it doesn't know what to do. Can anyone help? > > Thanks, > > Miguel
0 Likes
Message 4 of 5

arcticad
Advisor
Advisor
This is a known problem. Some objects can only be processed while visible. Use this code to prevent the screen from updating.
zoom everything then do what you need then reset it.

Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
Sub codeName()
LockWindowUpdate (ThisDrawing.hwnd)
ZoomAll
'process your values
ZoomPrevious
LockWindowUpdate (0)
End Sub
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 5 of 5

fxcastil
Advocate
Advocate
Miguel,

"Reactor" is a lisp term what VBA event are you using to detect the movement. If you provide the code for what you are doing it will be able to help.

Fred C
0 Likes