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-24 07:32
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » The Terminator of DOS Interface Development View 94,224 Replies 290
Floor 106 Posted 2006-09-23 06:08 ·  中国 广东 深圳 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
Where can I download this "Chicago" chicago9?
I can't find it in "Baidu" and "Google"? Is it run under "DOS"?
You can send "chicago9" to my email box "szhello8@21cn.net" by email, thanks!
Floor 107 Posted 2006-09-23 06:58 ·  中国 云南 红河哈尼族彝族自治州 个旧市 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
22-year member
UID 6296
Gender Male
Status Offline
Hehe, Chicago? Sort of. :)

I downloaded it once from a foreign website, and now it seems really hard to find when searching again. Fortunately, I've already saved it.

chicago9 runs under DOS, and I compiled it with BC3.1 successfully. There is an executable file chicago.exe in the chicago9 directory.

The compressed file has been sent to your mailbox, please check it.

Glad to see that the wizard class has been added. :)
According to your program, the troublesome wizard is done.

In addition to using loadfile for the multi-line text box, is there any other way to make it display multi-line text? Using setlinetext has no effect.
Thanks

[ Last edited by profree on 2006-9-23 at 22:27 ]
Floor 108 Posted 2006-09-24 08:46 ·  中国 广东 深圳 宝安区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
WinSail V2.0 kernel has been re-uploaded!

Updated:
CKeyboardCtrl----Virtual keyboard class
CRadio-----------Radio button/checkbox class
CGrid------------Table class
CSliderCtrl------Slider class
CComboBox--------ComboBox class
CListBox---------List box class
CVScrollBar------Vertical scroll bar class
CHScrollBar------Horizontal scroll bar class
CWizard ---------Wizard class

MakeDlg.exe -----Executable program for converting VC dialog boxes to WinSail

Added:
CSpinCtrl --------Counting class, and its document name is:
"Interface Control Class_CSpinCtrl Counting Control Detailed Design.doc"

--------------------------------------------------------------------------------------
The "counting" control of WinSail V2.0 is designed to have the same behavior as the "counting" control in Visual C++ dialog boxes, and it needs an "EDIT" edit box as a companion control for display. And the "counting" control of WinSail V2.0 supports keyboard arrow keys "UP" "DOWN" operations.

The demonstration program module of the "counting" class is the third page of the wizard page in the "Wizard2.Cpp" file in the Sail3000 directory. You can view the "Wizard" demonstration on the desktop.
Floor 109 Posted 2006-09-24 09:26 ·  中国 广东 深圳 宝安区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
Suppose you want to write the following "three lines" of content into a multi-line edit box,

First line: "《天龙八布》";
Second line: "《新闻联播》";
Third line: "《我爱我家》";

It should be like this:
------------------------------------------

void Demo_WriteEdit(CMultiEdit* pMultiEdit)
{

DWORD dwLoc;
int nLength;

char* pStr1 = "《天龙八布》";
char* pStr2 = "《新闻联播》";
char* pStr3 = "《我爱我家》";

// Allocate a new line
nLength = _fstrlen(pStr1) + 1; // Calculate the string length
dwLoc = pMultiEdit->m_XmsMemoryData.New (nLength, FALSE); // Allocate memory

// Write the string to memory
if (dwLoc != 0L)
{
pMultiEdit->m_XmsMemoryData.SetText(dwLoc, pStr1, nLength);
}

// Allocate a new line
nLength = _fstrlen(pStr2) + 1; // Calculate the string length
dwLoc = pMultiEdit->m_XmsMemoryData.New (nLength, FALSE); // Allocate memory

// Write the string to memory
if (dwLoc != 0L)
{
pMultiEdit->m_XmsMemoryData.SetText(dwLoc, pStr2, nLength);
}

// Allocate a new line
nLength = _fstrlen(pStr3) + 1; // Calculate the string length
dwLoc = pMultiEdit->m_XmsMemoryData.New (nLength, FALSE); // Allocate memory

// Write the string to memory
if (dwLoc != 0L)
{
pMultiEdit->m_XmsMemoryData.SetText(dwLoc, pStr3, nLength);
}

}
Floor 110 Posted 2006-09-25 13:29 ·  中国 广东 东莞 电信
初级用户
Credits 66
Posts 22
Joined 2006-08-27 00:22
19-year member
UID 61339
Status Offline
Please also give me a copy of the source code of chicago9, thanks.
Email: ArmKing88@163.com
Floor 111 Posted 2006-09-26 00:16 ·  中国 云南 红河哈尼族彝族自治州 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
22-year member
UID 6296
Gender Male
Status Offline
Originally posted by ArmKing at 2006-9-25 01:29 PM:
Please also send me a copy of the source code of chicago9, thanks
Email: ArmKing88@163.com


Sent
Floor 112 Posted 2006-09-26 00:18 ·  中国 云南 红河哈尼族彝族自治州 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
22-year member
UID 6296
Gender Male
Status Offline
to firstsail:
Is using the multi-line edit box a bit troublesome like this? Hope to improve it.
Floor 113 Posted 2006-09-26 02:09 ·  中国 广东 深圳 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
To Profree:

Misled by you, actually the CMultiEdit->SetWindowText() function can set multi-line content.

pMultiEdit1->SetWindowText("《Tianlong Babu》\n《Xinwen Lianbo》\n《Wo Ai Wo Jia》");

If you call it after pDialog->ShowWindow() in the dialog box, you must call the pMultiEdit1->Paint() function or the pMultiEdit1->Show() function to update the display.

For all controls of WinSail, after changing the content, you must manually call the Paint or Show() function to re-display.
Floor 114 Posted 2006-09-26 02:30 ·  中国 云南 红河哈尼族彝族自治州 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
22-year member
UID 6296
Gender Male
Status Offline
You wrote the programming library yourself, can I mislead you?:)

There is a lag phenomenon when returning to the previous step when calling Show.

[ Last edited by profree on 2006-9-26 at 02:47 ]
Floor 115 Posted 2006-09-26 06:28 ·  中国 广东 深圳 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
WinSail has been re-uploaded!

The display of Bmp images and ICON icons of WinSail has been processed with "dithering", and the display effect for 256-color images is relatively satisfactory!

How to insert pictures in the post?
Floor 116 Posted 2006-09-26 07:04 ·  中国 云南 红河哈尼族彝族自治州 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
22-year member
UID 6296
Gender Male
Status Offline
Brother FirstWail: No way?

Is this stumping a hero? Upload in the form of an attachment or upload to a website first. There is a prompt in the posting area:
"Note: It is strongly recommended to upload files or pictures to the China DOS Union file upload system. The size of a single uploaded file can be up to 50MB."

Additionally: When releasing an update to Winsail, it would be better to note the last update time on the website, for example: [Download: WinSail V2.0 Programming Library] (2006-9-25 19:1:38 Monday)
Floor 117 Posted 2006-09-26 07:13 ·  中国 云南 红河哈尼族彝族自治州 电信
中级用户
★★
Credits 478
Posts 132
Joined 2003-07-02 00:00
22-year member
UID 6296
Gender Male
Status Offline
Here are a few more suggestions:

1. When the content displayed in the multi-line edit box exceeds the size of the control, the scroll bar is automatically triggered.
2. Add a drive selection control.
3. Perfect file selection control.

Now I think winsail is almost practical. Also, there is one more point, that is, for the menu items, there are no separators now, and the positions are too close. That's all I can think of for now.
Floor 118 Posted 2006-09-28 05:45 ·  中国 广东 深圳 宝安区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
WinSail (2006-09-27 15:30) has been re-uploaded!

(1) The original "macro" of VK_MOUSE_LEFT is canceled. For the occasions where this "macro" is used, please replace it with the "macro" of VK_MOUSE_DOWN_LEFT!

(2) The "pop-up menu" has added a menu item for "separator".
The function name is ----CBar:AddSeparator();
It is equivalent to calling --CBar::AddItem(NULL, NULL, NULL, BAR_ATTRIB_SEPRATOR);
Floor 119 Posted 2006-09-28 05:47 ·  中国 广东 深圳 宝安区 电信
高级用户
★★
Credits 668
Posts 295
Joined 2005-07-26 00:00
20-year member
UID 41110
Gender Male
From 广东深圳
Status Offline
写错单词,应是“BAR_ATTRIB_SEPARATOR”
Floor 120 Posted 2006-09-28 21:11 ·  中国 上海 长宁区 电信
新手上路
Credits 2
Posts 1
Joined 2006-09-28 11:07
19-year member
UID 63929
Status Offline
Mr. Guo, I saw your post and am very interested. Where are you? I have a project to do GUI development. Can you contact me (hh_0118@hotmail.com) or leave your contact method so that I can contact you? Thanks first!
‹ Prev 1 6 7 8 9 10 20 Next ›
Forum Jump: