我最近在做点东西,不知道用什么版本好,请大家提点意见,intraweb5版本太低了,但是我测试7。1。12又不稳定,不知道哪个版本比较稳定且好用。我在5.0 D7自带的那个版本,这段代码都没问题,运行正常,升级到7.1.12版本下,同样的代码怎么运行没一点反应,编译没问题.不知道怎么回事?真的对intraweb有点怀疑了!请各位经验丰富的大哥帮帮忙.var edit_temp:tiwedit;
begin
edit_temp := tiwedit.creat(self);
edit_temp.top:=140;
edit_temp.left:140;end;

解决方案 »

  1.   

    edit_temp.left:140; 这一句有问题吗?如果没有的话:看一下你的IW库文件是否被包含在你的LIBRARY路径当中了! 
      

  2.   

    少了个等于号是我少写,编译没有问题,但就是运行的时候没有结果,一片空白。
    jms2812405() 试过没,我下午下了7.2.36试了不行的啊,编译是没问题,但要有输出结果才行啊。
      

  3.   

    jms2812405:我是在delphi盒子里下的
      

  4.   

    我现在放弃使用intraweb7,决定使用delphi自带的5.1.36版本
      

  5.   

    var
      edit_temp:tiwedit;
    begin
      edit_temp := tiwedit.create(self);
      edit_temp.top:=140;
      edit_temp.left:=140;
      edit_temp.Text:='100';
      edit_temp.Parent := self;//****这句,它所在的容器控件要设
      

  6.   

    DescriptionUse the Parent property to get or set the parent of this control. The parent of a control is the control that contains the control. For example, if an application includes three radio buttons in a group box, the group box is the parent of the three radio buttons, and the radio buttons are the child controls of the group box.To serve as a parent, a control must be an instance of a descendant of TWidgetControl.When creating a new control at runtime, assign a Parent property value for the new control. Usually, this is a form, panel, group box, or some control that is designed to contain another. Changing the parent of a control moves the control onscreen so that it is displayed within the new parent. When the parent control moves, the child moves with the parent.------