- PictureButton X,Y,width,height,PictureName$,PictureType.Identifier Description Creates a picture button control in a dialog box template. Comments Picture button controls behave very much like a push button controls.
- PictureButton X,Y,width,height,PictureName$,PictureType.Identifier Description Creates a picture button control in a dialog box template. Comments Picture button controls behave very much like a push button controls. Visually, picture buttons are different than push buttons in that they contain a graphic image imported either from a file.
- The PictureButton gives you native look and feel on all platforms. Do you want full keyboard access when turned on on Mac to actually work?
- The award-winning DevExpress WinForms Subscription includes 190+ UI Controls and Libraries, including Data Grid, Reporting, Chart, Spreadsheet, and many more.
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |
Insert Image To Button and Set Alignment C#.
picture-button
Class
The class of a picture-button control
Control
Instance of the picture-button
class. This controlcontains an icon that may be selected by the user. It is capable of anon-momentary pressed-in state.
Picture Button
The image that is to appear on a picture-button
(or on a static-picture
) widgetmay be specified with any one of the following properties (typicallyby passing the equivalent keyword argument such as :pixmap to make-instance when creatingan instance of the widget):
- Specify a pixmap object as the value of the pixmap property.
- Specify an icon handle as the value of the pixmap-icon property.
- Specify the name of a cached pixmap as the value of the pixmap-name property. (Apixmap is cached by calling cache-pixmap.)
- Specify the pathname or path namestring of a .bmp or .ico file as thevalue of the pixmap-source property. When thisoption is specified programmatically, the pixmap will be loaded fromthe file when the widget is created at runtime; but when specifiedinteractively in the inspector for a widget on a form, the pixmap willbe loaded at design time and saved with project source code so that atruntime the .bmp or .ico file is not loaded or otherwise needed. Thisis most often the useful option when interactively building forms.
Further notes
Picture Buttons Definition
If the :stretching option to make-instance is passed as non-nil, thenthe bitmapped image will stretch automatically to fit the size of thewidget. If nil, it will be drawn at the size at which the image wasdefined. The default is t. See stretching.
Grouping picture-buttons in clusters
The :cluster entry on the dialog item plist can be used to grouppicture-button dialog items into clusters. If the user clicks on onebutton in the cluster, that button will be turned on, and all otherbuttons in the cluster turned off. For example, consider thefollowing:
It creates two picture-button clusters each with two picturebuttons. :cluster entries are compared using eql.
Component overhead and clusters of picture-buttons
Using a multi-picture-button
instead ofclusters of picture-buttons will reduce the load on resources andreduce application size/complexity in most situations. Components arewindow-like objects and are relatively costly in terms of systemresources.
Using click-off with picture-button controls
This control supports the click-off property. The:click-off
option to make-instance can have the following values:
nil
: users can only deselect the button byclicking on another button in the same cluster (or by setting thevalue programmatically).t
: users can deselect the button by clickingon it again once it has been selected, i.e., the control will toggleon and off.
Note: :click-off
affects only what happens whenclicking on a button widget while it is selected; the state of thebutton can always be changed programmatically by calling (setfvalue).
See About howto get sample code for creating controls in cgide.htm, which explains how to use theIDE to create such code.
A diagram of window and widget classes is shown in Widget and windowclasses in cgide.htm.
Copyright (c) 1998-2017, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2017.2.15.
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |
Picture Buttons Pins
WinBatch News
WinBatch is now supported, maintained and enhanced by a new company formed by a former member of the WindowWare team.
Enterprise Level Scripting
One Great Way to Save Time...Automation.
elcome to WinBatch.com. The home of WinBatch® an award-winning macro scripting language that provides batch automation for Windows systems, including Windows workstations, servers, network clients and virtual machines. You can find more about our software here, and download a free trial version here.
Automate your PC's with proven results.
With WinBatch® and its WIL language, you get over twenty years of proven business automation technology. Get real-world results with our versatile scripting language, 20-plus extender libraries, and our Web-based Tech Support. You get fast results from over 3,500 practical examples. Advanced networking capabilities include support for the full mix of Windows versions.
WinBatch® is:
- A complete programming language
- A perfect tool for power users and system administrators
- A LAN utility development tool
- An Internet utility development tool
- A business process automator
- A high level programming language that is easy to learn and use, without the learning curve and complexity of traditional programming languages
WinBatch® has:
- A visual dialog editor
- A keystroke/mouse recorder
- A code writing robot
- A complete development studio
- Hundreds of built-in general purpose time-saving functions
- Hundreds of additional special purpose function in free add-on extenders
- Support for Windows XP, Vista, 7, 8, 8.1, 10, 2003, 2008, 2012, 2016, and 2019
Older versions are available for 95, 98, ME, NT, 2000, and even Windows 3.1
WinBatch® can:
- Save time by automating work
- Run Windows PC's unattended
- Standardize data entry by scripting
- Automate PC Management
- Do most any network administration task
- Allow rapid prototyping of software projects
- Allow programming of a vast array of utilities and smaller programs
- And many other possibilities
WinBatch® does not:
- Eliminate programming or scripting
- Allow creation of Word processors, Spreadsheets, or Graphical Editing programs (Although it can control them)
- Run large realtime databases
- Focus on macro recording, although it does include a utility to do that
WinBatch® accommodates users that:
- Enjoy or at least tolerate programming
- Wish to control their computers
- Like fast results
- Need to get more done in less time
- Need to get their computer to learn a new trick
- Are possibly network administrators, consultants, hobbyists, IT/IS department employees, students, and the ever present computer tweakaholics
Use WinBatch® for managing Windows desktops, unattended jobs, scheduled jobs, LAN access and administration, login scripting, serial communications, data access, data filtering, and more.
Is your problem unique?
Need advice? Our WinBatch Tech Support Forum showcases expert assistance and our online database is a great self-help tool.