zoukankan      html  css  js  c++  java
  • 使用 IntraWeb (12)


    TIWGradButton、TIWImageButton 分别是有颜色梯度变化按钮和图像按钮.

    TIWGradButton 所在单元及继承链:
    IWCompGradButton.TIWGradButton < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

    主要成员:
    property Style: TIWGradButtonStyle  //
    


    这个 Style 不大好调配, 可以复制官方示例中的设置:


    效果图:



    TIWImageButton 所在单元及继承链:
    IWCompExtCtrls.TIWImageButton < TIWImageFile < TIWCustomImage < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

    主要成员:
    property ImageFile: TIWFileReference    //图像
    property HotImageFile: TIWFileReference //当鼠标指向时显示的图像
    


    测试代码:
    procedure TIWForm1.IWAppFormCreate(Sender: TObject);
    begin
      IWImageButton1.ImageFile.Filename := 'pic1.png'; //pic1.png、pic2.png 放在 wwwroot 目录下
      IWImageButton1.HotImageFile.Filename := 'pic2.png';
    end;
    
    procedure TIWForm1.IWImageButton1Click(Sender: TObject);
    begin
      WebApplication.GoToURL('http://del.cnblogs.com');
    end;
    


  • 相关阅读:
    (转)深入浅出JWT(JSON Web token)
    Node.js Koa2开发微信小程序服务端
    天翼宽带家庭网关用户:useradmin,nE7jA%5m 这个是中国电信的超级密码
    微信小程序picker重写,精确到时分秒
    Vue props中Object和Array设置默认值
    GreenDao学习
    Android注解支持(Support Annotations) (转)
    异常:Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details.
    精通 Android Data Binding
    Android BroadcastReceiver介绍 (转)
  • 原文地址:https://www.cnblogs.com/del/p/3780801.html
Copyright © 2011-2022 走看看