Lessons
| Inability To Send Messages During Drag Operation Workaround | Posted: 17 Oct 11:58 |
| By: Trevor DeVore |
When performing a drag/drop operation in Revolution you cannot use 'send in time' to trigger handlers. The engine will just queue any messages you send and process them once the drag operation has finished. This can be problematic if you want to perform some operation while the mouse is not be...
| Querying Script Local Variables During Development | Posted: 15 Oct 12:08 |
| By: Trevor DeVore |
When developing custom controls or libraries script locals are often used. One problem when developing with script locals is that you can't look at the current value like you can when you use custom property sets. This lesson will show you how to write a getProp handler that will return the va...
| the defaultFolder Locks Folder on Windows | Posted: 07 Oct 22:54 |
| By: Trevor DeVore |
On Windows Revolution obtains a lock on the folder that 'the defaultFolder' is set to. One implication of this is that you cannot delete the folder that the defaultFolder points to.
| Using shell() on Windows With UNC Paths | Posted: 07 Oct 22:47 |
| By: Trevor DeVore |
When using the shell() function in Revolution on Windows to call a command line executable, cmd.exe will complain if the defaultFolder is a UNC path. This can occur in the following scenario:
1) Launch a Revolution application from a shared network folder.
2) Use shell() to call ...
| Knowing Which Stacks Are In Memory | Posted: 25 Jul 05:55 |
| By: Trevor DeVore |
In Revolution a stack file that is stored on disk contains a single main stack. If the stack file is accessed in your program then the main stack and it's substacks are loaded into memory. There are various ways to access a stack file. The following examples will all load the main stack in a s...
| Quickly Edit a Palette Stack in the IDE | Posted: 27 Jun 12:57 |
| By: Trevor DeVore |
When working in the IDE with the pointer tool you cannot select controls in stacks that have a mode of 3 or 4 (modeless or palette). Learn how to quickly toggle the mode to 1 (toplevel) without having to remember the name of the stack.
| Write A Command That Sets 'the result' And 'it' | Posted: 18 Apr 08:15 |
| By: Trevor DeVore |
Certain Revolution commands, such as 'answer', will set both it and the result:
* it is set to the data returned from the command
* the result contains status such as an error message or the button clicked on.
While it is not readily apparent how to do this when writing you...
| Alternating Line Colors in a List Field | Posted: 15 Apr 11:08 |
| By: Trevor DeVore |
This lesson will demonstrate how to create alternating line colors in a Revolution list field. This technique requires version 2.8.1 or later of Revolution.
| Dropping System Folders on Fields | Posted: 03 Mar 23:45 |
| By: Trevor DeVore |
This lesson demonstrates how to allow a user to drop a system folder onto a field. The folder path is then displayed in the field.
| Adding a Windows Vista Manifest To a Revolution Executable | Posted: 27 Feb 20:54 |
| By: Trevor DeVore |
In Windows Vista an .exe file can have a manifest embedded in it that tells Windows the application should run with administrator privileges. When the user launches the .exe Vista will prompt the user for a username and password. Your application can then write to protected directories. </p...
| Running Revolution as CGI on Debian Linux | Posted: 22 Feb 15:40 |
| By: Trevor DeVore |
Revolution is a great development tool for desktop applications. But it can also be run as a CGI on your server which means you can quickly write scripts for use on the web using the syntax you know and love.
This tutorial shows the steps I went through to install the Revolution Linux ...
| Getting Expected Results When Setting clipboardData["html"] | Posted: 08 Feb 22:11 |
| By: Trevor DeVore |
When setting clipboardData["html"] the textFont of the templateField is used (or the home stack if the textFont is empty). This has implications for OS X applications where Lucida Grande is normally the default font. Lucida Grande does not have an italics style so italics wil...
| Create an ANSI Font Option Menu | Posted: 18 Jan 18:28 |
| By: Trevor DeVore |
| Creating a Color Picker Swatch | Posted: 18 Jan 17:04 |
| By: Trevor DeVore |
Learn how to make a color picker swatch.
| Creating a Toolbar Button | Posted: 18 Jan 13:36 |
| By: Trevor DeVore |
Learn how to create a toolbar button that has an icon with text appearing below it.
| Creating a Password Field | Posted: 11 Jan 00:11 |
| By: Trevor DeVore |
Learn how to create a password entry field using a a custom font and revFontLoad. You can download the PasswordEntry.ttf font <a href="http://www.bluemangolearning.com/developer/revolution/downloads/passwordentry.zip">here</a>.