China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 00:04
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » giCell A Real GUI Window System (Source Code Shared) View 15,184 Replies 35
Floor 16 Posted 2007-07-14 02:49 ·  中国 辽宁 沈阳 联通
高级用户
★★
Credits 739
Posts 111
Joined 2004-11-30 00:00
21-year member
UID 34209
Gender Male
From 辽宁沈阳
Status Offline
The latest source code (Attachment 1) contains TreeView and ListView; the ListView supports title bar panning and zooming, and the Scrollbar supports mouse wheel driving. It can run in full-screen mode in the DOS window of Windows.

Please download it and compile the project files in it: GUI.DSK, GUI.PRJ with Borland C/C++ 3.1.

[ Last edited by taowentao on 2007-7-14 at 03:43 AM ]
Attachments
gui截图.JPG
来自山东,现居沈阳
Floor 17 Posted 2007-08-03 00:35 ·  中国 广东 肇庆 端州区 电信
新手上路
Credits 6
Posts 3
Joined 2007-07-05 00:08
19-year member
UID 93165
Gender Male
Status Offline
I thought there were all the codes..... The key code is missing, which is equivalent to being useless.
Floor 18 Posted 2007-08-03 13:31 ·  中国 山东 青岛 联通
中级用户
★★★
痴迷DOS者
Credits 456
Posts 570
Joined 2004-10-09 00:00
21-year member
UID 32281
Gender Male
Status Offline
1024*768*256 With 4MB display memory, the screen only uses the first 768K. The swap memory (INT15H) can be used to achieve multitasking.
DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png
Floor 19 Posted 2007-08-14 22:32 ·  中国 辽宁 沈阳 联通
高级用户
★★
Credits 739
Posts 111
Joined 2004-11-30 00:00
21-year member
UID 34209
Gender Male
From 辽宁沈阳
Status Offline
Supports 12-dot matrix Chinese characters (requires file hz12.bin), can call DOS file functions (but affects real-time performance). Press the key "SHIFT + ESC" to exit rtCell and return to the DOS system.

Virtual machine demonstration (download: http://zhenlove.com.cn/cndos/fileup/files/hz_demo.rar).

Pure DOS demonstration (download: http://zhenlove.com.cn/cndos/fileup/files/GUI_DOS.rar).

C_lib.rar is the latest source code (http://www.cn-dos.net/forum/attachment.php?aid=3809&checkid=cd567&download=1).

[ Last edited by taowentao on 2007-8-19 at 09:55 AM ]
Attachments
demo_zhp.JPG
C_lib.rar (258.4 KiB, Downloads: 198)
来自山东,现居沈阳
Floor 20 Posted 2007-08-23 20:57 ·  中国 辽宁 沈阳 联通
高级用户
★★
Credits 739
Posts 111
Joined 2004-11-30 00:00
21-year member
UID 34209
Gender Male
From 辽宁沈阳
Status Offline
Change the Chinese character font to the standard 9-point Song typeface of Windows XP.

Note that DOS is not reentrant. Before calling DOS functions outside of GUI tasks, a GUI lock should be added, and after calling, it should be unlocked. Also, the task priority of the task calling DOS functions should be lower than 16 (because all DOS hardware interrupts have been taken over in a task with a priority higher than 16). However, DOS function calls are still based on the busy waiting mechanism:

void _cdecl_ GUILock(void); /* Lock the GUI to protect the security of shared data */
void _cdecl_ GUIUnLock(void); /* Unlock the GUI, locks and unlocks should appear in pairs */

In addition, the vector font file: KTDOT.PS is also required in this demonstration. Please download this file from "Vector Chinese Character Display Example - happybasic" (http://www.cn-dos.net/forum/viewthread.php?tid=27441&fpage=3).

[ Last edited by taowentao on 2007-8-24 at 09:09 PM ]
Attachments
C_lib.rar (243.62 KiB, Downloads: 346)
demo_font12.JPG
来自山东,现居沈阳
Floor 21 Posted 2007-09-01 11:47 ·  印度 马哈拉施特拉邦 孟买郊区县 腾讯云
新手上路
Credits 2
Posts 1
Joined 2007-09-01 10:59
18-year member
UID 96318
Gender Male
Status Offline
Source code????Kernel?????
Floor 22 Posted 2007-09-22 13:30 ·  中国 辽宁 沈阳 联通
高级用户
★★
Credits 739
Posts 111
Joined 2004-11-30 00:00
21-year member
UID 34209
Gender Male
From 辽宁沈阳
Status Offline
Supports 1024x768 resolution, 64k colors, DOS file reading and writing is interrupt-driven, and PC operation requires the graphics card to support VBE.

Virtual machine demonstration (download: https://gro.clinux.org/frs/download.php/2083/giCell_1024x768.rar)

[ Last edited by taowentao on 2007-9-22 at 01:55 PM ]
Attachments
gui1024x768.JPG
来自山东,现居沈阳
Floor 23 Posted 2007-09-27 11:53 ·  中国 湖南 长沙 电信
初级用户
Credits 127
Posts 12
Joined 2003-06-20 00:00
23-year member
UID 5576
Gender Male
Status Offline
Source code????Kernel?????
Floor 24 Posted 2007-09-28 11:07 ·  中国 湖南 长沙 电信
初级用户
Credits 127
Posts 12
Joined 2003-06-20 00:00
23-year member
UID 5576
Gender Male
Status Offline
What open source code, it's just a few LIB files!!!
Floor 25 Posted 2007-10-17 16:49 ·  中国 北京 海淀区 联通
新手上路
Credits 8
Posts 4
Joined 2007-05-11 18:57
19-year member
UID 88206
Gender Male
Status Offline
Is this written by lz? How long did it take to write? It's really very good, much better than what I wrote.
Floor 26 Posted 2007-12-14 16:43 ·  中国 广东 深圳 福田区 电信
新手上路
Credits 10
Posts 5
Joined 2006-09-07 10:42
19-year member
UID 62054
Status Offline
Sweat......
I think it's so beautiful after watching the demo
Hurry up to download the source code to study
Result......
It's a LIB, just like nothing
The landlord release the code
Otherwise it's not of great significance, this post will only become a viewing post
Floor 27 Posted 2007-12-14 19:53 ·  中国 辽宁 沈阳 联通
高级用户
★★
Credits 739
Posts 111
Joined 2004-11-30 00:00
21-year member
UID 34209
Gender Male
From 辽宁沈阳
Status Offline
Originally posted by turui at 2007-12-14 04:43 PM:
Sweat...
After watching the demo, I think it's so beautiful
Hurry up to download the source code to study
Result...
It's a LIB, just like nothing
The landlord releases the code
Otherwise, this post will only become an ornamental post


The source code is in the WIN directory, find it yourself...
来自山东,现居沈阳
Floor 28 Posted 2007-12-16 17:21 ·  中国 广东 深圳 天威视讯
新手上路
Credits 10
Posts 5
Joined 2006-09-07 10:42
19-year member
UID 62054
Status Offline
Originally posted by taowentao at 2007-12-14 19:53:

The source code is under the WIN directory, find it yourself...


Mainly want to learn the code of the Engine part, but this part is not visible in the Lib...
If there is no this part of the code, it is impossible to understand your idea...
Floor 29 Posted 2007-12-17 10:48 ·  中国 广东 深圳 电信
新手上路
Credits 10
Posts 5
Joined 2006-09-07 10:42
19-year member
UID 62054
Status Offline
The code style of the landlord is quite good, and the code is very clear. It would be even better if the Engine part of the code is released.
Floor 30 Posted 2008-06-27 12:04 ·  中国 广东 广州 天河区 广电无线集团
新手上路
Credits 2
Posts 1
Joined 2006-02-16 10:03
20-year member
UID 50444
Status Offline
Not bad, learning from you
Forum Jump: