
Filer Association
By using an extension, you specify the display/hide of the file that has its extension, icons for list display(12x12), icons for icon display(31x21) and the application that uses its file as data

The following structures are stored in B:\system\filer.ini.  You can define the association up to 64.


Associative definition structure

typedef struct {
    char suffix[4];
    short attr;
    unsigned short id;
    unsigned short font;
    unsigned long mmp;
    char file[8];
    char app[PATHSIZE];
} RELATED;

The structure RELATED[0] is used for unknown file.
The structure RELATED[1] is used for directory.
The structure RELATED[2] is used for "Return" icon of the icon display.
The structure RELATED[3] is used for an executable program.
If there is no file extension, you should use RELATED[0] as the associative information.


suffix[] consists of upper case strings including ".".  Example, .SCH.

attr is specified by the following values.  This is different from PsDOS system attribute specification.  This is the judgment feature by using onHand/Ruputer specific extension.

 0 = Usual file
 1 = Hide file
 2 = System file
 3 = HideSystem file

id is specified by the following value.  id also specifies valid/invalid (ICO file data display) of the icons for SII Pictograph list display(12x12) and for SII Monomap icon display(31x21).  If it is invalid, it is displayed from the icon data for list display and icon data for icon display that are stored in ICO file (extension ".ICO") in B:\SYSTEM directory.  For information about ICO, refer to the end of this file. 

 0 = SII Pictograph and SII Monomap are valid.
 1 = SII Pictograph and icon for icon display of ICO file that is specified in file[] are valid.
 2 = icon for list display of ICO file that is specified in file[] are valid and SII Monomap.
 3 = icon for list display of ICO file and icon for icon display that are specified in file[] are valid.

suffix[] and file[] do not include NULL so that you should be careful when you handle these with strings  In addition, the application specified app[] is set by ASCIIZ with the extension ".EXF" (a small case can be used).

file[] specifies the ICO file in B:\SYSTEM directory.  The application specified file[] is set by ASCIIZ without the extension ".ICO".


 As an example, the setting method is shown in <filerini.c>.




Weekly alarm
This is the area definition that stores the contents of B:\system\weekly.ini file.

Four types of WEEKLYTABLE structure from the beginning of the file are defined as follows.

Weekly alarm definition structure

typedef struct {
    unsigned short week;
    unsigned short hour;
    unsigned short min;
    char snd[SNDFILENAMESIZE];
} WEEKLYTABLE;


snd[] is the specification of the sound file that sounds the weekly alarm.  If the file name extension is ".SND" and contain 8 characters, NULL is not included.




Icon of an execution format file (EXF file)
Any icon of an execution format file (EXF file) can be specified by embedded the icon data to the program.

From the beginning of the EXF file,
 +16h ~ font data for list display (12x12)
 +2Eh ~ mono map data for icon display (31x21)
 +96h ~ program body

When this +16h - +95h area is NULL data, the default icon is displayed.

[Use icon pasting tool]
 You can set the icon by setico.exe in ..\RupSDK\Bin.

(1)Create black/white bmp for Filer list display.
  The size should be W 12 x H 12.

(2)Create black/white bmp for Filer icon display.
  The size should be W 31 x H 21.

(3)Prepare the execution format file that you want to paste an icon.

(4)You can execute it in DOS prompt by using the following format.

  setico file1.bmp file2.bmp file3.exf 

  Any file name can be used but the order of the argument is fixed.
    file1.bmp --- 12x12 small icon
    file2.bmp --- 31x21 large icon
    file3.exf --- execution format file




ICO file
This is a file that both icon data for list display and icon data for icon display are embedded.  You can specify it by using id=1,2,3 and file[] in B:\system\filer.ini and place it to B:\SYSTEM directory. 

From the beginning of the file,
 +00h ~ font data for list display (12x12)
 +18h ~ mono map data for icon display (31x21)
 up to +79h


are defined.
[Use icon creation tool]
 ..Icons can be set by bm2ico.exe in \RupSDK\Bin.

(1)Create black/white bmp for Filer list display.
  The size should be W 12 x H 12.

(2)Create black/white bmp for Filer icon display.
  The size should be W 31 x H 21.

(3)You can execute it in DOS prompt by using the following format.

  bm2ico file1.bmp file2.bmp file3.ico

  Any file name can be used but the order of argument is fixed.
    file1.bmp --- 12x12 small icon
    file2.bmp --- 31x21 large icon
    file3.exf --- execution format file

===============================================================================
 Copyright (c) 1998-1999.  Seiko Instruments Inc.  All rights reserved. 
===============================================================================
