N net_morning Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-30 #1 因为设计的时候是按照800X600设计的,在1024X768的分辨率下,很难看
Y yuzk2005 Unregistered / Unconfirmed GUEST, unregistred user! 2006-03-30 #2 procedure TForm1.FormResize(Sender: TObject); begin if self.Width>800 then self.Width:=800; if self.Height>600 then self.Height:=600; end;
procedure TForm1.FormResize(Sender: TObject); begin if self.Width>800 then self.Width:=800; if self.Height>600 then self.Height:=600; end;
K kxh201 Unregistered / Unconfirmed GUEST, unregistred user! 2006-04-19 #5 以前我试过用yuzk2005的方法做,但是用鼠标拖动时窗口大小是会变化的,虽然释放鼠标后会变成设定好的样子。 你可以设置窗口的constrain属性,使maxheight=minheight=form.height,maxwidth=minwidth=form.width.
以前我试过用yuzk2005的方法做,但是用鼠标拖动时窗口大小是会变化的,虽然释放鼠标后会变成设定好的样子。 你可以设置窗口的constrain属性,使maxheight=minheight=form.height,maxwidth=minwidth=form.width.