CnPack Forum


 
Subject: 不知道有没有这个功能,选择form1打开窗口
zh2000
新警察
Rank: 1



UID 40766
Digest Posts 0
Credits 6
Posts 2
点点分 6
Reading Access 10
Registered 2008-8-10
Status Offline
Post at 2008-8-10 14:34  Profile | Blog | P.M. 
不知道有没有这个功能,选择form1打开窗口

有个主窗口,里面有很多打开不同 form 的代码  .如

  Form1:=TForm1.Create(Application);
  Form1.ShowModal ;
  Form1.free;

...................

  FormX:=TFormX.Create(Application);
  FormX.ShowModal ;
  FormX.free;


不知道有没有这个功能: 代码界面,鼠标选择 form1 后,可以用 快捷方式 打开这个 form1..或 右键菜单功能"打开选择的代码form"...

现在要打开一个窗口,要 到 "View form" 功能处,点击一下,再输入 form1  才能打开  form1...

Top
skyjacker
版主
Rank: 7Rank: 7Rank: 7
茶农


UID 2239
Digest Posts 9
Credits 617
Posts 269
点点分 617
Reading Access 100
Registered 2006-6-8
Status Offline
Post at 2008-8-10 14:38  Profile | Blog | P.M.  | QQ
按住 ctrl 后点击 Form1

偶通常这样写这种代码,可以参考下
try
  FormX:=TFormX.Create(nil);
  FormX.ShowModal ;
finally
  FreeAndNil(FormX);
end;




一壶清茶煮青春.
Top
zh2000
新警察
Rank: 1



UID 40766
Digest Posts 0
Credits 6
Posts 2
点点分 6
Reading Access 10
Registered 2008-8-10
Status Offline
Post at 2008-8-11 14:31  Profile | Blog | P.M. 
奇怪,..

先谢谢回答..呵呵...
现在改..了..
try
  FormX:=TFormX.Create(nil);
  FormX.ShowModal ;
finally
  FreeAndNil(FormX);
end;
.
另外奇怪:  新建的 工程和form可以  用 按住 ctrl 后点击 Form1 弹出窗口

为什么 安装 cnpack 前建的 旧工程 就不能 用这个打开...

会不会旧工程里面 有太多东西了  冲突了...?
Top
 




All times are GMT++8, the time now is 2024-9-19 08:51

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008147 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP