home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Multimed / Multimed.zip / lbmix04.zip / Source / LBMixLay.h < prev    next >
Text File  |  2000-05-07  |  3KB  |  90 lines

  1. /* 
  2.  
  3. LBMix - A mixer for Crystal Semiconductor IOCTL90 by Lesha Bogdanow
  4. Copyright (C) 1999-2000  Lesha Bogdanow
  5.  
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. */
  21.  
  22. #define MIN_CELLS_IN_LINE 1
  23. #define DEF_CELLS_IN_LINE 8
  24. #define MAX_CELLS_IN_LINE 16
  25.  
  26. #define EMPTY_W    90    // Window width/height when no controls are active
  27. #define EMPTY_H    90
  28.  
  29. #define SLIDER_W_S 24         // slider width - standard
  30. #define SLIDER_W_N640    8     // slider width - narrow (640x480 and below)
  31. #define SLIDER_W_N800    10     // slider width - narrow (800x600)
  32. #define SLIDER_W_N1024    12     // slider width - narrow (1024x768)
  33. #define SLIDER_W_N1152    14     // slider width - narrow (1152x864)
  34. #define SLIDER_W_N1280    16     // slider width - narrow (1280x1024)
  35. #define SLIDER_W_N1600    20     // slider width - narrow (1600x1200 and above)
  36. #define SLIDER_H_N 124   // slider height - normal (1600 - 124 min)
  37. #define SLIDER_H_S 74    // slider height - short (1600 - 74 min)
  38.  
  39. #define BOX_W_O  0    // box minimal width = BOX_W_O + fontw*BOX_W_D/BOX_W_D + (text width)
  40. #define BOX_W_M  1
  41. #define BOX_W_D  1
  42.  
  43. #define LIST_W_O 20    // list width = LIST_W_O + LIST_W_M*fontw
  44. #define LIST_W_M 12
  45.  
  46. #define CHECK_W_O  20   // checkbox width = CHECK_W_O + fontw*CHECK_W_M/CHECK_W_D + (text width)
  47. #define CHECK_W_M  1
  48. #define CHECK_W_D  4
  49.  
  50. #define DESC_W_O  4     // description width = DESC_W_O + fontw*DESC_W_M/DESC_W_D) + (text width)
  51. #define DESC_W_M  0
  52. #define DESC_W_D  3
  53.  
  54. #define CHECK_H_D  5    // checkbox/description height = max(CHECK_H_MIN,fonth*(1+1/CHECK_H_D)
  55. #define CHECK_H_MIN 16
  56.  
  57. #define SPACE_X_O 0 // x spacing = SPACE_X_O + fontw/SPACE_X_D
  58. #define SPACE_X_D 8 
  59.  
  60. #define SPACE_Y_O 2 // y spacing = SPACE_Y_O + fonth/SPACE_Y_D
  61. #define SPACE_Y_D 10
  62.  
  63. #define CELLSP_X_O 0    // x cell spacing = CELLSP_X_O + fontw*CELLSP_X_M/CELLSP_X_D
  64. #define CELLSP_X_M 0
  65. #define CELLSP_X_D 1
  66.  
  67. #define CELLSP_Y_O 0    // y cell spacing = CELLSP_Y_O + fonth*CELLSP_Y_M/CELLSP_Y_D
  68. #define CELLSP_Y_M 1
  69. #define CELLSP_Y_D 3
  70.  
  71. #define FIELD_X_O 0     // left/right fields = FIELD_X_O + fontw*FIELD_X_M/FIELD_X_D
  72. #define FIELD_X_M 1
  73. #define FIELD_X_D 2
  74.  
  75. #define FIELD_Y_O 0     // top/bottom fields = FIELD_Y_O + fontw*FIELD_Y_M/FIELD_Y_D
  76. #define FIELD_Y_M 1
  77. #define FIELD_Y_D 2
  78.  
  79. #define INTER_X_O 2     // interior left/right fields = INTER_X_O + fontw*INTER_X_M/INTER_X_D
  80. #define INTER_X_M 1
  81. #define INTER_X_D 1
  82.  
  83. #define INTER_T_O 0     // interior top field = INTER_T_O + fonth*INTER_T_M/INTER_T_D
  84. #define INTER_T_M 3
  85. #define INTER_T_D 2
  86.  
  87. #define INTER_B_O 0     // interior bottom field = INTER_B_O + fonth*INTER_B_M/INTER_B_D
  88. #define INTER_B_M 1
  89. #define INTER_B_D 4
  90.