Changeset 894 for trunk/guitools/shared


Ignore:
Timestamp:
Mar 12, 2016, 2:44:59 PM (9 years ago)
Author:
Alex Taylor
Message:

Various UI tweaks, see changes for details. Enabled detection of Blue Lion system. Added some missing icons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/shared/nlv.vrs

    r703 r894  
    44    /* This subroutine is (c) by Alex Taylor, portions (c) Herwig Bauernfeind
    55     * Sets all UI text from the message file.  Any string that can't be loaded
    6      * will default to the built-in English. 
     6     * will default to the built-in English.
    77     */
    88
     
    1818    say '  NLV srchroot   = "'srchRoot'"'
    1919
    20     filestem = VRParseFileName( execPath, "N")'_'
    21     if translate(filestem) = "EVFSGUI_" then filestem = "evfsi_"
     20    filestem = VRParseFileName( execPath, "N")
     21    if translate(filestem) = "EVFSGUI" then filestem = "evfsi_"
     22    else filestem = SUBSTR( filestem, 1, 6, '_' )
    2223    say '  NLV filestem   = "'filestem'"'
    2324
     
    9091            end
    9192        end
    92     end   
     93    end
    9394    say time()' NLVSearch() done, returning "'NLVFile'"'
    9495return NLVFile
     
    105106
    106107    SELECT
    107         WHEN ARG() == 2 THEN 
     108        WHEN ARG() == 2 THEN
    108109            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2) )
    109         WHEN ARG() == 3 THEN 
     110        WHEN ARG() == 3 THEN
    110111            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3) )
    111         WHEN ARG() == 4 THEN 
     112        WHEN ARG() == 4 THEN
    112113            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4) )
    113         WHEN ARG() == 5 THEN 
     114        WHEN ARG() == 5 THEN
    114115            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5) )
    115         WHEN ARG() == 6 THEN 
     116        WHEN ARG() == 6 THEN
    116117            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5), ARG(6) )
    117         WHEN ARG() == 7 THEN 
     118        WHEN ARG() == 7 THEN
    118119            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5), ARG(6), ARG(7) )
    119         WHEN ARG() == 8 THEN 
     120        WHEN ARG() == 8 THEN
    120121            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8) )
    121         WHEN ARG() == 9 THEN 
     122        WHEN ARG() == 9 THEN
    122123            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8), ARG(9) )
    123         WHEN ARG() == 10 THEN 
     124        WHEN ARG() == 10 THEN
    124125            msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8), ARG(9), ARG(10) )
    125126        OTHERWISE
     
    135136/*:VRX         NLVSetText
    136137*/
    137 /* 
    138  * Sets the specified property of the specified control to the specified 
     138/*
     139 * Sets the specified property of the specified control to the specified
    139140 * message text.
    140141 */
     
    143144
    144145    success = 1
    145     IF substitution == '' THEN     
     146    IF substitution == '' THEN
    146147        text = NLVGetMessage( message )
    147148    ELSE
    148149        text = NLVGetMessage( message, substitution )
    149150
    150     IF text == '' THEN success = 0 
     151    IF text == '' THEN success = 0
    151152    ELSE               CALL VRSet control, property, text
    152153
Note: See TracChangeset for help on using the changeset viewer.