Multi-Monitor? (truevision 3d game engine)

This is a discussion on Multi-Monitor? (truevision 3d game engine) within the Smalltalk forums in Programming Languages category; Hello. I have recently purchased Dolphin Smalltalk professional and I'd like to thank object arts for making such a great programming environment. I used the COM wizard to make it possible for me to use the truevision 3d game engine. It works beautifully. My question is: Is it possible for me to get new dolphin windows to show up on my second monitor? I am running Tv3d in fullscreen and editing/changing game logic while it is running. It works great (I'm creating a new process for the tv3d engine so I can still use Dolphin's editors). However if I open ...

Go Back   Application Development Forum > Programming Languages > Smalltalk

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-26-2008, 06:35 PM
zenchess
Guest
 
Default Multi-Monitor? (truevision 3d game engine)

Hello. I have recently purchased Dolphin Smalltalk professional and
I'd like to thank object arts for making such a great programming
environment.

I used the COM wizard to make it possible for me to use the
truevision 3d game engine. It works beautifully.

My question is: Is it possible for me to get new dolphin windows to
show up on my second monitor? I am running Tv3d in fullscreen and
editing/changing game logic while it is running. It works great (I'm
creating a new process for the tv3d engine so I can still use
Dolphin's editors). However if I open a window from the main dolphin
menu, the window opens in my main monitor instead of the monitor that
the dolphin menu is in. This makes it impossible (I think) to access
that new window because my main monitor is already in fullscreen for
Tv3d.
Reply With Quote
  #2  
Old 09-01-2008, 03:03 AM
Christoph J. Bachinger
Guest
 
Default Re: Multi-Monitor? (truevision 3d game engine)

Hi zenchess,

> My question is: Is it possible for me to get new dolphin windows to
> show up on my second monitor? I am running Tv3d in fullscreen and
> editing/changing game logic while it is running. It works great (I'm
> creating a new process for the tv3d engine so I can still use
> Dolphin's editors). However if I open a window from the main dolphin
> menu, the window opens in my main monitor instead of the monitor that
> the dolphin menu is in. This makes it impossible (I think) to access
> that new window because my main monitor is already in fullscreen for
> Tv3d.

look for method:

defaultPositionWithin: aParentView forExtent: aPoint

which is implemented in View, DebuggerShellView and ShellView.
Change the methods as you see below. It's a only a hack but works.
good on my two monitor system.

defaultPositionWithin: aParentView forExtent: aPoint
"Private - Answer the default position of the receiver within
aParentView given its intended extent aPoint.
This is used only on creation."

^1300@0

defaultPositionWithin: aParentView forExtent: aPoint
"Private - Answer the default position of the receiver within
aParentView given its intended extent aPoint.
This is used only on creation."

| testWindow defaultPosition |
self assert: [aParentView notNil].
self isInitiallyCentered ifTrue: [^self position: 1300@100"self
centerExtent: aPoint within: aParentView"].


"If not creating on the desktop, create at the origin of the parent's
client area"
aParentView parentView notNil ifTrue: [^1300 @ 0].
(testWindow := ShellView new)
parentView: aParentView;
createAt: CW_USEDEFAULT @ CW_USEDEFAULT extent: aPoint.
defaultPosition := testWindow position.
testWindow destroy.
^1300 @ 0.
^defaultPosition

best regards
cjb



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:08 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.