At 07:05 PM 7/28/2009, Bill Downall wrote:

I've been trying to find a PROPERTY command or an example that allows
a programmatic change in the form Icon (in the upper left corner, left
of the title bar). No luck so far, but I swear I've seen it done. In
this case, the Icon image would be stored in a VARBIT variable, but I
could also grab it from a disk file if necessary.


Bill,

Here's how:

01. Start one of the following versions of R:BASE, such as:

    . R:BASE 7.6 for Windows (Build: 7.6.7.30803 or higher ...)
    . R:BASE Turbo V-8 for Windows (Build: 8.0.21.30803 or higher ...)
    . R:BASE eXtreme 9.0 for Windows (Build: 9.0.1.10803 or higher ...)

02. Use the following Form PROPERTY to dynamically assign or change
    the R:BASE Form Icon.

    -- Example 01
    PROPERTY RBASE_FORM FormIcon 'filename.ico'
    RETURN

    -- Example 02
    PROPERTY RBASE_FORM FormIcon 'full_path\filename.ico'
    RETURN

That's all there is to it!

Very Best R:egards,

Razzak.


Reply via email to