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-06-26 03:21
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » 100KB DOS Graphics Interface Development (Borland/DJGPP Library) DigestI View 41,856 Replies 111
Floor 46 Posted 2007-08-12 12:57 ·  中国 辽宁 大连 沙河口区 联通
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 47 Posted 2007-08-13 18:04 ·  中国 江苏 苏州 联通
中级用户
★★
Credits 298
Posts 118
Joined 2006-03-01 13:30
20-year member
UID 51161
Status Offline
Not bad, but:

1. The DJGPP version is a bit slow...
2. The Borland C version is relatively fast, but I don't like the initial progress bar and the promotional words very much.
3. I have been seeing that you have two versions for Windows, the GUI under Windows. I don't know what the main applications are? Why not just use the Windows window under Windows?
欢迎光临happyBASIC小站:http://yxbasic.51.net
Floor 48 Posted 2007-08-13 18:28 ·  中国 天津 电信
初级用户
★★
Credits 178
Posts 85
Joined 2006-07-06 15:25
19-year member
UID 58125
Status Offline
Hehe, continue to report bugs....

1.
There is a problem with the Set function of efTextBox. It does not copy the #0 at the end of the last string into the new CHAR pointer together. I have to use the following method:
memset(TmpStr,0,4096); //First fill with #0 once...
efTextBox->Text(edtWorkGroup,TmpStr);

2. The Label control can also get the input focus
Normally, the Label control cannot get the input focus, but in this GUI, it can. The following situation occurs:
Create a BUTTON, create a LABEL, repeatedly press the TAB key, and find that the focus switches back and forth between the BUTTON and the LABEL. But when switching to the LABEL, the LABEL does not display a focus box. As a result, the user finds that the input focus is lost, which is easy to cause misunderstanding....

3. Not a bug, but done better
The BUTTON control does not support executing by pressing the Enter key...
Floor 49 Posted 2007-08-13 18:50 ·  中国 辽宁 大连 沙河口区 联通
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
1. The DJGPP version is a bit slow...

There are still relatively slow algorithms in the graphics engine, continue to optimize

2. The Borland C version is relatively fast, but I don't really like the initial progress bar and the advertising words.

Hmm. Kill the ad bar :) Right-click on the background, put an about window, everyone won't object, right? Hehe

3. I've always seen that you have two versions for Windows, the GUI under Windows. I don't know what the main applications are? In Windows, just use the Windows window.


The Windows version is to make application development a bit more convenient. Because of API compatibility, after developing on Windows, you can recompile directly on Borland C 3.1/DJGPP/Linux.

[ Last edited by ecurb2006 on 2007-8-13 at 06:55 PM ]
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 50 Posted 2007-08-13 18:53 ·  中国 辽宁 大连 沙河口区 联通
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Hehe, continue to report bugs...
1.
There is a problem with the Set function of efTextBox. It does not copy the final #0 at the end of the string to the new CHAR pointer together. I have to use the following method:
memset(TmpStr,0,4096); // First fill with #0 once...
efTextBox->Text(edtWorkGroup,TmpStr);


#This bug has been fixed. We will release a new version without the startup screen together tomorrow :)

2. Label controls can also get input focus
From common sense, Label controls cannot get input focus, but in this GUI, it is possible. The following situation occurs:
Create a BUTTON, create a LABEL, repeatedly press the TAB key, and find that the focus switches back and forth between BUTTON and LABEL. But when switching to LABEL, LABEL does not display a focus box. As a result, users find that the input focus is missing, which is easy to cause misunderstanding...


# OK, fix it. A new API SetObjFocus(HAND); has been added to specify the focus object.

3. Not a bug, but made better
BUTTON controls cannot support executing by pressing the Enter key...


#OK. I will do it tonight.

There will be a new version update tomorrow, don't miss it :)

[ Last edited by ecurb2006 on 2007-8-13 at 06:57 PM ]
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 51 Posted 2007-08-13 19:03 ·  中国 辽宁 大连 沙河口区 联通
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Additional message: ecurb2006

ps: Special thanks to netizens zqlcch and happybasic for their enthusiastic attention and support!
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 52 Posted 2007-08-13 20:58 ·  中国 福建 宁德 电信
初级用户
★★
Credits 178
Posts 85
Joined 2006-07-06 15:25
19-year member
UID 58125
Status Offline
The interface of ecurb2006 is relatively beautiful. It only needs a HZKXX, which is simple and compact, so I like it. If it's not difficult, we can consider adding support for 12-dot matrix Chinese characters, such as HZK12 of UCDOS. Then it will completely surpass QBWIN.

Also, the description of the use of sub-dialog boxes in the document is not detailed enough.

[ Last edited by zqlcch on 2007-8-13 at 09:00 PM ]
Floor 53 Posted 2007-08-14 12:34 ·  中国 辽宁 大连 沙河口区 联通
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
MessageBox has been made, which is the same as the Win32 interface.
Because the underlying code has been modified, I will carefully debug it myself.
I will upload it in the evening, including example code for each control (with detailed comments).
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 54 Posted 2007-08-14 15:45 ·  中国 江苏 苏州 联通
中级用户
★★
Credits 298
Posts 118
Joined 2006-03-01 13:30
20-year member
UID 51161
Status Offline
呵呵,Original post by ecurb2006 at 2007-8-13 18:50:
Windows version, is to be for application development...

Hehe, so that's it. Then I'll download for DJGPP, for Borland C 16bit. If it's just for development convenience, ah, as long as it's a good thing, I'm not afraid of trouble~
欢迎光临happyBASIC小站:http://yxbasic.51.net
Floor 55 Posted 2007-08-14 15:50 ·  中国 江苏 苏州 联通
中级用户
★★
Credits 298
Posts 118
Joined 2006-03-01 13:30
20-year member
UID 51161
Status Offline
Originally posted by zqlcch at 2007-8-13 20:58:
The ecurb2006 interface is relatively beautiful, only needing one HZKXX, simple and compact, so I like it. If it is not difficult, you can consider adding support for 12-dot matrix Chinese characters, such as HZK12 of UCDOS. In this way, it will completely surpass...


It is suggested to adopt the method of bundling font libraries. QBWIN can bundle font libraries.... The QBCH I originally wrote can also bundle font libraries. QBCH+WIN was written halfway, and it can also bundle font libraries (ex: such as the attachment)

It is suggested to add this function, so that there is no need to carry a HZKxx...
欢迎光临happyBASIC小站:http://yxbasic.51.net
Floor 56 Posted 2007-08-16 18:23 ·  中国 湖北 武汉 电信
新手上路
Credits 9
Posts 5
Joined 2007-08-14 18:53
18-year member
UID 95138
Gender Male
Status Offline
I like it
Floor 57 Posted 2007-08-16 18:23 ·  中国 湖北 武汉 电信
新手上路
Credits 9
Posts 5
Joined 2007-08-14 18:53
18-year member
UID 95138
Gender Male
Status Offline
Support this
Floor 58 Posted 2007-08-19 04:41 ·  中国 辽宁 大连 甘井子区 电信
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Update a large number of examples with detailed comments.

Micro Embedded GUI-DJGPP + DJGPP Compiler Combination Version Download (Recommended!)
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 59 Posted 2007-08-19 04:46 ·  中国 辽宁 大连 甘井子区 电信
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Complete Examples of Micro-Embedded GUI Application Development

Button - Button Example http://www.ecurb2006.com/blog/post/64.html
TextBox - Single-line Text Editing Box Example http://www.ecurb2006.com/blog/post/65.html
EditBox - Multi-line Text Editing Box Example http://www.ecurb2006.com/blog/post/66.html
Label - Text Label Scroll - Scroll Bar Example http://www.ecurb2006.com/blog/post/67.html
Dialog - Dialog Window Example http://www.ecurb2006.com/blog/post/68.html
Menu - (Drop-down, Pop-up) Menu Example http://www.ecurb2006.com/blog/post/69.html
SpeedBar - Progress Bar Example http://www.ecurb2006.com/blog/post/70.html
ChoiceBox - Radio Box Example http://www.ecurb2006.com/blog/post/71.html
CheckBox - Check Box Example http://www.ecurb2006.com/blog/post/72.html
TimeCall - Timer Example http://www.ecurb2006.com/blog/post/73.html
SelBox - List Box Example http://www.ecurb2006.com/blog/post/74.html
ComboBox - Combo Box Example http://www.ecurb2006.com/blog/post/75.html
Image - Image Display Example http://www.ecurb2006.com/blog/post/76.html
MessageBox - Message Window Example http://www.ecurb2006.com/blog/post/77.html

[ Last edited by ecurb2006 on 2007-8-19 at 04:47 AM ]
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Floor 60 Posted 2007-08-19 10:00 ·  中国 辽宁 大连 教育网
中级用户
★★
www.ecgui.com
Credits 272
Posts 123
Joined 2006-09-23 07:38
19-year member
UID 63446
Status Offline
Mini Embedded GUI-DJGPP + DJGPP Compiler Combination Version Download (Recommended!)
Please copy the libgui.a in the gui directory to the lib directory of djgpp
eCGUI-微型嵌入式GUI/ DOS/Linux/uC/OS-II/等 图形界面开发
www.ecgui.com
Forum Jump: