全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1725
推到 Plurk!
推到 Facebook!

how to create a small window?

尚未結案
hkd
一般會員


發表:1
回覆:3
積分:0
註冊:2005-03-06

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-03-06 10:30:37 IP:219.137.xxx.xxx 未訂閱
I am using Delphi DirectX to create a small online 3D game. I created a console program using Delphi, and I want to open a small window when the user is playing the game to display his record. Now the problem is that I want to open this small window above the 3D game, and this small window should not keep the 3D game freezed. That is, the user still is able to play the game even when the small window is open. Can anyone tell me how to create this small window? Thanks.
dllee
站務副站長


發表:319
回覆:2516
積分:1710
註冊:2002-04-15

發送簡訊給我
#2 引用回覆 回覆 發表時間:2005-03-07 09:21:34 IP:220.139.xxx.xxx 未訂閱
just Form.Show don't use Form.ShowModal you can also search in this forum for showing a always-on-top window. I don't really know it, may be this small windows should also using DirectX, since when we are playing full-screen games, the general always-on-top window does not show...    吃軟也吃硬 dllee.ktop.com.tw StatPlus 系統資源監測器 @ KTOP OpenPLC - IEC 61131-3 geOShell XP Like 中文版
------
http://blog.yam.com/dllee/
hkd
一般會員


發表:1
回覆:3
積分:0
註冊:2005-03-06

發送簡訊給我
#3 引用回覆 回覆 發表時間:2005-03-07 09:38:52 IP:218.19.xxx.xxx 未訂閱
Thanks for the reply, dllee. But I already tried Form.Show, it did not work. No matter I used Form.Show or Form.ShowModal, the 3D graphics behind the window keep freezed, I could not control it anymore. The worse thing is that after I closed the small window, the 3D graphics interface is still freezed. This problem really drives me nuts
dllee
站務副站長


發表:319
回覆:2516
積分:1710
註冊:2002-04-15

發送簡訊給我
#4 引用回覆 回覆 發表時間:2005-03-07 13:39:48 IP:220.139.xxx.xxx 未訂閱
http://www.gamedev.net/reference/articles/article999.asp Developing a GUI Using C++ and DirectX Part 2 It describes a multi-windows DirectX architecture.    My game experience, when DirectX window is out of focus, it is freezed. I thought it was done by game programming, so it might be the restriction of the DirectX.    relatived link: http://www.gamedev.net/reference/programming/features/gui/ http://www.gamedev.net/reference/programming/features/gui2/ http://www.gamedev.net/reference/programming/features/gui3/ http://www.gamedev.net/reference/programming/features/gui4/    吃軟也吃硬 dllee.ktop.com.tw StatPlus 系統資源監測器 @ KTOP OpenPLC - IEC 61131-3 geOShell XP Like 中文版 發表人 - dllee 於 2005/03/07 13:43:14
------
http://blog.yam.com/dllee/
hkd
一般會員


發表:1
回覆:3
積分:0
註冊:2005-03-06

發送簡訊給我
#5 引用回覆 回覆 發表時間:2005-03-07 15:31:34 IP:218.19.xxx.xxx 未訂閱
Actually I also agree with you that when DirectX window is out of focus, it is freezed. But I want to know whether there are any tricks to make it possible? I did have a program (written by directX using delphi) that can make this possible, but I don't have its source code, so I still don't know how to do.
dllee
站務副站長


發表:319
回覆:2516
積分:1710
註冊:2002-04-15

發送簡訊給我
#6 引用回覆 回覆 發表時間:2005-03-07 21:33:07 IP:211.76.xxx.xxx 未訂閱
If you take a look to my links, 
引言:For example, our game will be drawing the entire GUI system by making a call to the renderall() method of the root window, which will in turn call the renderall() methods of its subwindows, which will call renderall() for their subwindows, and so on.
it is a multi-windows DirectX system, so, if main window is DirectX and the sub window is also DirectX, then all of them can show and paint. Does your sub windows using DirectX, too? or it is just a simple window form? 吃軟也吃硬 dllee.ktop.com.tw StatPlus 系統資源監測器 @ KTOP OpenPLC - IEC 61131-3 geOShell XP Like 中文版
------
http://blog.yam.com/dllee/
hkd
一般會員


發表:1
回覆:3
積分:0
註冊:2005-03-06

發送簡訊給我
#7 引用回覆 回覆 發表時間:2005-03-08 11:16:03 IP:218.19.xxx.xxx 未訂閱
The subwindow is not using directX, basically it is responsible for displaying the user's records that are retrieved from database. Thanks for the links, I will read them again more carefully.
系統時間:2017-12-13 1:46:24
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!