Lazarus在一个窗口中打开另一个窗口

一、窗口1中的代码

procedure TForm1.Button1Click(Sender: TObject);   
  var
  frm2:TForm;
begin
  frm2 :=  TForm2.Create(nil);
  //if frm2=nil then frm2 = Tfrm2.Create(Application);
  frm2.ShowModal;

end;   

 

二、窗口2 中的代码

procedure TForm2.Button1Click(Sender: TObject);
begin
     Close;
end;     

 

写在最后:刚学,以上代码测过好用。具体如何,看以后使用情况而定。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Hardware accelerated graphics on Windows, Mac OS X and Linux 3D and 2D graphical editor integrated in IDE Powerful 3D layer containing items such as Cube, Sphere, Cone, Plane, Mesh, free Camera and Lights Mesh object have WPF mesh data format, DXScene have advanced import tool which support - GLSM,WRL,TIN,STL,SMD,Q3BSP,BSP,PLY,OCT,OBJ,OBJF,NURBS,NMF,MS3D,MDC,MD2,LWO,GTS, GLM,GLX,GLA,B3D,MD5MESH,MD5ANIM,MD3,3DS,PRJ file formats Powerful 2D vector engine like Adobe Flash or Microsoft WPF includes high quality shapes and controls like window, label, button, checkbox, textbox and more Advanced GUI engine - window, button, textbox, numberbox, memo, anglebox, list box and much much more Advanced skinning engine based on vector graphics styles. Cool exists styles - Dark, Modern, Vista. DXScene can be used to create hardware accelerated 2D applications with cool animation like CoverFlow, layer and more Easy to use time-based animation and transition effects Layered windows, Jpeg, Png, Tiff and Gif format read/write support, fast thumbnail creation Realtime mode for games and realtime simulations DXScene can be used as development tools for SCADA, GIS, CAD and KIOSK applications DB-Aware controls - TvxDBNavigator, TvxDBLabel, TvxDBTextBox and more Multilanguage engine, editor and examples Physics simulation using Newton Game Dynamics Cross-platform solution available on Microsoft Windows, Apple Mac OS X and Linux DXScene Features: Skinning Engine DXScene have full skinning engine. Now you can apply styles to all controls very easy. DXScene have cool exists styles - Dark, Modern, Vista, AIR. Design-time inplace Editor WYSIWYG design-time 3D and 2D designer and property editors Power of 3D Powerful 3D layer containing items such as Cube, Sphere, Cone, Plane, Mesh, free Camera and Lights. Mesh object have WPF mesh data format and 3DS, MD3 file export tool. 2D in 3D Powerful 2D vector engine like Adobe Flash or Microsoft WPF includes high quality shapes and controls like window, label, button, checkbox, textbox and more. Advanced GUI engine - window, button, textbox, numberbox, memo, anglebox, list box and much much more. DXScene can be used to create hardware accelerated 2D applications with cool animation like CoverFlow, layer and more. Cool Particle Engine DXScene 3 have new cool particle engine with editor. Now you can add cool effects to your DXScene's applications. Cross-Platform Solution DXScene is a native object pascal components for Delphi/C++Builder and Lazarus. Available for Microsoft Windows, Apple Mac OS X and Linux. Applications: 3D Text A compact, flexible and affordable tool that will help you create custom 3D logos and headers in minutes. Fully configurable text parameters, any output resolution, lightning-fast rendering and instant preview of the changes made to the text model. 3D Image Commander 3D Image Commander a full-featured software that allows you to create advanced thumbnails with cool 3D styles and effects. Protect your copyrights with a copyright notice. Add text comments to any image. Create images with effects like 3D perspective, 3D curving, reflection, glow, shadow, corners and stroke. model2icon model2icon converts 3D models into Windows and Mac OS X icons. You can find many models on the Internet and convert them to icons for use on your desktop, in applications and much more. With model2icon you can convert 3D model to Windows and Mac OS X Icon with a single action. It supports Windows Vista 256x256 icons with alpha channel and new Leopard 256x256 Mac OS X icons. model2icon allow to customize 3D model before converting. Support 3DS, MD3 file format.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值