Changeset 139 for trunk/src


Ignore:
Timestamp:
May 22, 2009, 6:10:08 PM (16 years ago)
Author:
lpino
Message:
  • Initial steps to implement Slider control
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/org/eclipse/swt/internal/pm/OS.java

    r137 r139  
    132132//    public static final int WC_SPINBUTTON =     0xffff0020;
    133133//    public static final int WC_CONTAINER =      0xffff0025;
    134 //    public static final int WC_SLIDER =         0xffff0026;
     134    public static final int WC_SLIDER =         0xffff0026;
    135135//    public static final int WC_VALUESET =       0xffff0027;
    136136    public static final int WC_NOTEBOOK =       0xffff0028;
     
    21072107  public static final int SC_WINDOW                  = 0x8029;
    21082108  public static final int SC_HIDE                    = 0x802a;
     2109   /**********************************************************************/
     2110   /*                                                                    */
     2111   /*                            S L I D E R                             */
     2112   /*                                                                    */
     2113   /**********************************************************************/
     2114   
     2115   /**********************************************************************/
     2116   /* Define messages for the slider control                             */
     2117   /**********************************************************************/
     2118   public static final int SLM_ADDDETENT          = 0x0369;    /* Add detent niche          */
     2119   public static final int SLM_QUERYDETENTPOS     = 0x036a;    /* Query position of detent  */
     2120   public static final int SLM_QUERYSCALETEXT     = 0x036b;    /* Query text at tick number */
     2121   public static final int SLM_QUERYSLIDERINFO    = 0x036c;    /* Query slider information  */
     2122   public static final int SLM_QUERYTICKPOS       = 0x036d;    /* Query position of tick    */
     2123   public static final int SLM_QUERYTICKSIZE      = 0x036e;    /* Query size of tick        */
     2124   public static final int SLM_REMOVEDETENT       = 0x036f;    /* Remove detent niche       */
     2125   public static final int SLM_SETSCALETEXT       = 0x0370;    /* Set text above tick       */
     2126   public static final int SLM_SETSLIDERINFO      = 0x0371;    /* Set slider parameters     */
     2127   public static final int SLM_SETTICKSIZE        = 0x0372;    /* Set size of tick          */
     2128   public static final int SLN_CHANGE             = 1;         /* Slider position changed   */
     2129   public static final int SLN_SLIDERTRACK        = 2;         /* Slider dragged by user    */
     2130   public static final int SLN_SETFOCUS           = 3;         /* Slider gaining focus      */
     2131   public static final int SLN_KILLFOCUS          = 4;         /* Slider losing focus       */
     2132   /**********************************************************************/
     2133   /* Slider control style flag definition                               */
     2134   /**********************************************************************/
     2135   public static final int SLS_HORIZONTAL       = 0x00000000; /* Orient slider horizontally*/
     2136   public static final int SLS_VERTICAL         = 0x00000001; /* Orient slider vertically  */
     2137   public static final int SLS_CENTER           = 0x00000000; /* Center shaft in window    */
     2138   public static final int SLS_BOTTOM           = 0x00000002; /* Offset shaft to bottom (H)*/
     2139   public static final int SLS_TOP              = 0x00000004; /* Offset shaft to top (H)   */
     2140   public static final int SLS_LEFT             = 0x00000002; /* Offset shaft to left (V)  */
     2141   public static final int SLS_RIGHT            = 0x00000004; /* Offset shaft to right (V) */
     2142   public static final int SLS_SNAPTOINCREMENT  = 0x00000008; /* Snap to nearest increment */
     2143   public static final int SLS_BUTTONSBOTTOM    = 0x00000010; /* Add buttons at shaft bot. */
     2144   public static final int SLS_BUTTONSTOP       = 0x00000020; /* Add buttons at shaft top  */
     2145   public static final int SLS_BUTTONSLEFT      = 0x00000010; /* Add buttons left of shaft */
     2146   public static final int SLS_BUTTONSRIGHT     = 0x00000020; /* Add buttons right of shaft*/
     2147   public static final int SLS_OWNERDRAW        = 0x00000040; /* Owner draw some fields    */
     2148   public static final int SLS_READONLY         = 0x00000080; /* Provide a read only slider*/
     2149   public static final int SLS_RIBBONSTRIP      = 0x00000100; /* Provide a ribbon strip    */
     2150   public static final int SLS_HOMEBOTTOM       = 0x00000000; /* Set home position at bot. */
     2151   public static final int SLS_HOMETOP          = 0x00000200; /* Set home position at top  */
     2152   public static final int SLS_HOMELEFT         = 0x00000000; /* Set home position at left */
     2153   public static final int SLS_HOMERIGHT        = 0x00000200; /* Set home position at right*/
     2154   public static final int SLS_PRIMARYSCALE1    = 0x00000000; /* Scale 1 is primary scale  */
     2155   public static final int SLS_PRIMARYSCALE2    = 0x00000400; /* Scale 2 is primary scale  */
     2156   
     2157   /**********************************************************************/
     2158   /* Message attributes for setting and querying slider components      */
     2159   /**********************************************************************/
     2160   public static final int SMA_SCALE1               = 0x0001;
     2161   public static final int SMA_SCALE2               = 0x0002;
     2162   public static final int SMA_SHAFTDIMENSIONS      = 0x0000;
     2163   public static final int SMA_SHAFTPOSITION        = 0x0001;
     2164   public static final int SMA_SLIDERARMDIMENSIONS  = 0x0002;
     2165   public static final int SMA_SLIDERARMPOSITION    = 0x0003;
     2166   public static final int SMA_RANGEVALUE           = 0x0000;
     2167   public static final int SMA_INCREMENTVALUE       = 0x0001;
     2168   public static final int SMA_SETALLTICKS          = 0xFFFF;
     2169   
     2170   /**********************************************************************/
     2171   /* Ownerdraw flag definitions                                         */
     2172   /**********************************************************************/
     2173   public static final int SDA_RIBBONSTRIP          = 0x0001;
     2174   public static final int SDA_SLIDERSHAFT          = 0x0002;
     2175   public static final int SDA_BACKGROUND           = 0x0003;
     2176   public static final int SDA_SLIDERARM            = 0x0004;
     2177   
    21092178
    21102179/* PM macros */
Note: See TracChangeset for help on using the changeset viewer.