import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio form";right=759;bottom=469)
winform.add(
plus={cls="plus";left=208;top=112;right=488;bottom=392;notify=1;z=1}
)
/*}}*/
winform.plus.onDrawBackground = function(graphics,rc,bkColor,foreColor){
import godking.paint
var p = godking.paint.fromGraphics(graphics);
p.drawRoundRect(rc.inflate(-10,-10),10/*圆角半径*/,0xFF0000AA,/*线宽*/,/*线型*/);
rc = ::RECT(rc.left+10,rc.top-8,rc.left+100,rc.top+12);
p.clip.set(rc,0/*半径*/,0/*_GdipCombineMode*/);
p.clear(/*颜色*/);
p.drawText(rc,"我是组合框",::LOGFONT(name="宋体";h=16;color=0xFF000000;brush=null),0/*格式*/,1/*水平*/,0/*垂直*/);
p.clip.set();
p.drawText(rc.offset(0,50),"我是文本1",::LOGFONT(name="宋体";h=16;color=0xFF000000;brush=null),0/*格式*/,1/*水平*/,0/*垂直*/);
p.drawText(rc.offset(0,30),"我是文本2",::LOGFONT(name="宋体";h=16;color=0xFF000000;brush=null),0/*格式*/,1/*水平*/,0/*垂直*/);
p.drawText(rc.offset(0,30),"我是文本3",::LOGFONT(name="宋体";h=16;color=0xFF000000;brush=null),0/*格式*/,1/*水平*/,0/*垂直*/);
}
winform.show();
win.loopMessage();