godking.message升级完3.8版后,message的模态窗体出现了问题,具体代码如下,
import win.ui;
import godking.message
/*DSG{{*/
var winform = win.form(text="aardio form";right=759;bottom=469)
winform.add()
/*}}*/
import console
var form = /***
/*DSG{{*/
var winform = win.form(text="点按下拉";right=470;bottom=124;border="thin";exmode="none";max=false;min=false;mode="popup")
winform.add(
combobox={cls="combobox";left=0;top=30;right=200;bottom=56;edge=1;items={"下拉不了";"下拉ok"};mode="dropdownlist";z=3}
)
/*}}*/
winform.show();
win.loopMessage();
***/
var msg = godking.message()
msg.showOK = false
//msg.showTitlebar =false; /////就是这代码,如果不设置成false,下拉无反应
msg.round = 12;
msg.borderWidth=2;
msg.borderColor = 0xFFFF0000;
msg.minWidth =500;
msg.btnBgColor =0xFFFF7F00
var r = msg.form("点按下拉",form,true,0,function(winform){
return winform.combobox.selIndex;
})
console.log(r)
winform.show();
win.loopMessage();
没有升级前,不需要设置,就能下拉。现在一定要设置成msg.showTitlebar =false,下拉才正常。