- LiveCode Mobile Development Cookbook
- Dr Edward Lavieri
- 191字
- 2021-08-05 18:04:00
Including glow effects on buttons
Adding glow effects to buttons is a good way of calling attention to them and differentiating them from other buttons on your app's interface.
How to do it...
To include glow effects, perform the following steps:
- Drag a button to your card.
- Right-click on the button and select Property Inspector.
- On the property inspector, select Graphic Effects from the pull-down menu (Basic Properties is the default selection).
- Select the type of glow you desire (inner or outer).
- Set the properties associated with the outer glow as detailed in the following table:
The following screenshot gives you an overview of these properties:
- Set the properties associated with the inner glow as detailed in the following table:
The following screenshot gives you an overview of these properties:
How it works...
By using the Graphic Effects section of the property inspector, we can easily change the outer and inner glow properties for buttons. We can also do this programmatically by directly referencing the property reference name. For example, to change the opacity of a button, we simply use the following code:
set the opacity of btn "myButton" to 119
推薦閱讀
- 電子政務效益的經濟分析與評價
- Force.com Development Blueprints
- JBoss EAP6 High Availability
- Web Application Development with R Using Shiny
- 網絡的琴弦:玩轉IP看監控
- Getting Started with WebRTC
- 計算機網絡工程實用教程(第2版)
- 數字通信同步技術的MATLAB與FPGA實現:Altera/Verilog版(第2版)
- Yii Application Development Cookbook(Second Edition)
- Microsoft Dynamics CRM 2011 Applications(MB2-868) Certification Guide
- VMware NSX網絡虛擬化入門
- 計算機網絡技術及應用
- 紅藍攻防:構建實戰化網絡安全防御體系
- Android UI Design
- 網管第一課:網絡操作系統與配置管理