Subversion Repositories Kolibri OS

Rev

Rev 7227 | Rev 7422 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7227 Rev 7254
Line 159... Line 159...
159
	word start_x;                 
159
	word start_x;                 
160
	word size_y;                  
160
	word size_y;                  
161
	word start_y;                
161
	word start_y;                
162
	dword ext_col;            
162
	dword ext_col;            
163
	dword int_col;            
163
	dword int_col;            
164
	dword draw_text_flag;  // 0-not,1-yes
164
	dword flags;  // see FR_FLAGS
165
	dword text_pointer;          
165
	dword text_pointer;          
166
	dword text_position;   //  0-up,1-bottom
166
	dword text_position;   //  0-up,1-bottom
167
	dword font_number;     //  0-monospace,1-variable
167
	dword font_number;     //  0-monospace,1-variable
168
	dword font_size_y;           
168
	dword font_size_y;           
169
	dword font_color;            
169
	dword font_color;            
170
	dword font_backgr_color;
170
	dword font_backgr_color;
171
};
171
};
Line -... Line 172...
-
 
172
 
-
 
173
// FR_FLAGS = [x][yyy][z]
-
 
174
// z        -  Caption
-
 
175
// yyy      -  BorderStyle
-
 
176
// x        -  BackStyle
-
 
177
#define FR_CAPTION 00001b // [z]
-
 
178
#define FR_DOUBLE  00000b // [yyy]
-
 
179
#define FR_RAISED  00010b // [yyy]
-
 
180
#define FR_SUNKEN  00100b // [yyy]
-
 
181
#define FR_ETCHED  00110b // [yyy]
-
 
182
#define FR_RIDGED  01000b // [yyy]
-
 
183
#define FR_FILLED  10000b // [x]
172
 
184
 
173
:frame frame123 = { 0, 260, 10, 60, 16, NULL, 0xFFFfff, 1, NULL, 0, 1, 12, 0x000111, 0xCCCccc };
185
:frame frame123 = { 0, 260, 10, 60, 16, NULL, 0xFFFfff, 1, NULL, 0, 1, 12, 0x000111, 0xCCCccc };
174
:void DrawFrame(dword x,y,w,h,text)
186
:void DrawFrame(dword x,y,w,h,text)
175
{
187
{
176
	frame123.font_color = system.color.work_text;
188
	frame123.font_color = system.color.work_text;
Line 181... Line 193...
181
	frame123.start_x = x;
193
	frame123.start_x = x;
182
	frame123.start_y = y;
194
	frame123.start_y = y;
183
	frame123.size_x = w;
195
	frame123.size_x = w;
184
	frame123.size_y = h;
196
	frame123.size_y = h;
185
	frame123.text_pointer = text;
197
	frame123.text_pointer = text;
-
 
198
	if (!text) frame123.flags=0; else frame123.flags=FR_CAPTION;
186
	frame_draw stdcall (#frame123);
199
	frame_draw stdcall (#frame123);
187
}
200
}
Line 188... Line 201...
188
 
201
 
189
 
202