|
On my last blog, I wrote about Pesto Garden, Inc., and how to build a bathroom quality control inspection system. I mentioned that I would continue tweaking that app, but I feel like tackling something more interesting today: buttons. Today, I am going to dive into button controls…how to build buttons and assign them actions on an Adesso form. This will be part 1 of 2 (or 3) parts. This first part we will review the button designer and what you can do with it. In part 2 of this blog series, I will show you some real buttons in real applications that I have built, and what actions those buttons perform under the hood. Where are button controls found? Once you select “Button” from this popup menu, your screen will look like the following: While this window appears simple enough, there are quite a few controls here. Notice that there are two tabs: an ‘Action’ tab and an ‘Appearance’ tab. The Action tab is exactly that…specifying the action that a click on this button will perform. The appearance tab specifies what the button will look like. We’ll take a look at the action tab first. Action Tab Type Dropdown * Standard When you first create a button control, it will default to Standard. * Standard buttons are exactly what they sound like…basic buttons with some basic color and appearance settings found on the ‘Appearance’ tab. * Hyperlink buttons are simply links, that when clicked on, navigate to a particular URL or perform some action specified in the Action dropdown. * Image buttons are button controls where you can specify images for two separate states of the button: when inactive, and when a user clicks, or presses on it. Adesso comes with several button images stored in folders, and you can drop additional images in those folders, or navigate to your hard drive to select a specific image. Images can be anything…rectangles, arrows, icons, etc. If you select Image from the Type dropdown, two additional parameters will appear in your window, as illustrated below: The two additional parameters are Regular and Pressed. Regular means what the button looks like in inactive state. Pressed means what the button looks like when a user clicks or taps on it, and remains that way while the button is pressed, then reverts back to Regular once the user releases the button. There is an icon with three dots to the right of each dropdown. If you click on that icon, a navigational window will appear that will allow you to navigate through your hard drive to find and select an image. The dropdown will display recently used images for faster selection. Standard Image Folders in Adesso If you open the ButtonShapes folder and view the items, you will see the following default button images: Now, don’t get me wrong here, these are not just ugly images, they are FUGLY with a capital F. However, what you need to understand here is that these are simply basic button images in folders…yes, folders. What this means is that if you have your own graphic-artist quality images that you want to use for buttons, just copy them into these folders, and presto! they will be available for your app right from here. The ButtonShapesPressed folder includes very similar images, but with slightly different colors/gradients. By using these in pressed mode state, the user will see a slight change in the button when he clicks on it, giving the illusion of a click action. The screenshot below illustrates what the ButtonShapesPressed folder looks like. Action Dropdown When you click on the dropdown, you will see a series of actions that you can select. Your popup menu will look like the screenshot below: Some of these actions are pretty obvious, so I won’t waste my time explaining what Zoom In, or Save Record mean. Ok, just in case, lets go thru some of these. When the user presses the button, the following actions are performed for the following actions listed in the dropdown menu: Zoom In – the form zooms in one level from current level I’m not going to show you each and every single action on this list…too much writing. I will show you a few that are more complex than your typical Save Record action, but I will leave this for another section of this blog, or maybe the next blog (depending on the # of bottles of Guinness in the ‘fridge). Let’s move to the other tab in the button designer. Appearance Tab If you select ‘Standard’ from the Type dropdown in the Action tab, the ‘Appearance’ tab will look like the following screenshot: If you instead select ‘Image’ from the Type dropdown in the Action tab, the ‘Appearance’ tab will look like the following screenshot…notice that there are slight differences…The height and width are displayed in pixels. this is set up that way because we are using images instead of the standard rectangle for your button shape. You will also see a preview of your button in the preview area on the bottom of the window. Disable on Click Shape On my next blog I will show you some real buttons, what they look like on an Adesso application, and what they actually do. One Response to Buttons, Buttons, Buttons! – How to Create Buttons on Adesso FormsLeave a Reply |
Latest Posts
|











Just cause you got the monkey off your back doesn’t mean the circus has left town.