Changes between Initial Version and Version 1 of Documentation/DevelopingForXinha/LargeImage


Ignore:
Timestamp:
02/12/05 10:31:51 (15 years ago)
Author:
gogo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/DevelopingForXinha/LargeImage

    v1 v1  
     1= Notes about Large Image = 
     2 
     3Xinha has an enhanced toolbar image system which allows for combining all the images into one large image.  This makes the initial download much quicker, particularly in Firefox (IE is quicker too, but not so much, at least in my opinion). 
     4 
     5Developers will find in the images directory an image called "ed_buttons_main.gif", this contains the standard toolbar buttons (not currently includng the TableOperations plugin buttons) in a row/col indexed file. 
     6 
     7To use these is quite simple, instead of supplying an image filename for the button, we supply a tuple containing the name, column and row. 
     8 
     9For example, what used to be (in the tool bar) 
     10 
     11{{{ bold:          [ "Bold", "ed_format_bold.gif", false, function(e) {e.execCommand("bold");} ]}}} 
     12 
     13is now written 
     14 
     15{{{bold:          [ "Bold",   ["ed_buttons_main.gif",3,2], false, function(e) {e.execCommand("bold");} ]}}} 
     16 
     17indicating that the button at row 2, column 3 in ed_buttons_main.gif "Bold". 
     18 
     19This should be fully backwards compatabile, standard image filenames are still accepted instead of the tuples. 
     20