中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-17 11:22
47,813 主题排行 / 349,904 发帖 / 今日 1 篇 / 48,259 会员排行
DOS疑难解答 & 问题讨论 (解答室) » 問WBaT中checkbox超過九個選項要如何修改
可打印版本  752 / 4
第1楼 dosfroum 发表于 2005-09-25 01:56
初级用户 发帖 54 积分 154
問WBaT中checkbox超過九個選項要如何修改
問 wbat 中使用 checkbox 最多只能有九項選擇
要是我的選項 有20幾個要怎麻半 因為我要把選單寫成 可同時選擇多台電腦
謝謝
第2楼 willsort 发表于 2005-09-25 11:20
元老会员 发帖 1,512 积分 4,432
Re dosfroum:

我个人不曾使用过 wbat ,不过如果它确有此限制,可以考虑不使用 checkbox,而使用 Input field ;或者将 checkbox 分组显示也是可以考虑的折中方案。
第3楼 dosfroum 发表于 2005-09-25 17:08
初级用户 发帖 54 积分 154
Originally posted by willsort at 2005-9-25 11:20:
Re dosfroum:

我个人不曾使用过 wbat ,不过如果它确有此限制,可以考虑不使用 checkbox,而使用 Input field ;或者将 checkbox 分组显示也是可以考虑皠...


對不請 我沒有聽過input field 可以概略訴說一下嗎
以下是 wbat中的checkbox的範例語法

第4楼 willsort 发表于 2005-09-26 01:33
元老会员 发帖 1,512 积分 4,432
Re dosfroum:

对不起,也许是我说得过于含糊,因为我实在对 wbat 很陌生,下面是我从 wbat.txt 中截出来的文字:

:input
# Input field in box layout ^

An input field is denoted by a ~$~-sign followed by the name of the
variable that will return the input string.

Example: ~~

The input length is determined by the space including the brackets.
A different length (longer or shorter) may be specified, as well as
additional options:

~U~ force upper case
~P~ password entry mode
~!~ input required (unless box is closed by ESC)

Example: ~~

If the input length exceeds the visible field size,
the string will be shifted, if necessary.

Note that it is possible to make a box with
an input field only (without buttons).
In this case ENTER will close the box.
::

:input-var
# Input variable ^


To handle input, you must tell WBAT to return variables, using the
construct:
~CALL W.BAT box ....~

For details see ~Control~ section in main menu.

You may assign an initial/default string to the variable, before the
box is displayed. ~Be sure to clear the variable, if you want an empty
input field.~

Note: WBAT will remove trailing spaces from the input string.
::
第5楼 dosfroum 发表于 2005-09-26 22:37
初级用户 发帖 54 积分 154
Originally posted by willsort at 2005-9-26 01:33:
Re dosfroum:
对不起,也许是我说得过于含糊,因为我实在对 wbat 很陌生,下面是我从 wbat.txt 中截出来的文字:


謝謝 我有試出來了 但是必須以打字的方測偵測 且語法會變得很長
資料沒帶回來 明天在貼出我的做法 請您幫忙修正
不然真的太長了 謝謝您耐心的回覆
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023