|
发表于 2013-10-16 11:29:35
|
显示全部楼层
本帖最后由 5e365 于 2013-10-16 11:31 编辑
- import win.ui;
- /*DSG{{*/
- var winform = ..win.form( bottom=399;parent=...;right=599;text="aardio Form" )
- winform.add(
- button={ bottom=327;right=304;left=198;top=292;z=2;text="删除空行";cls="button" };
- edit={ bottom=258;right=438;left=61;multiline=1;top=61;z=1;edge=1;cls="edit" }
- )
- /*}}*/
- winform.button.oncommand = function(id,event){
- winform.edit.text = string.replace(winform.edit.text, '\r\n\\s*\r\n', '\r\n')
- }
- winform.edit.text =/*
- 第1行非空行
- 第2行非空行
- 第4行非空行
- 第5行非空行
- */
- winform.show();
- win.loopMessage();
复制代码 |
评分
-
查看全部评分
|