/programs/cmm/eolite/include/gui.h |
---|
2,10 → 2,11 |
void Scroll() { |
dword i; |
word sc_x = files.x + files.w; |
word sc_y = files.y; |
word sc_h = files.h - 16; |
word sc_slider_y; |
dword sc_x = files.x + files.w; |
dword sc_y = files.y; |
dword sc_h = files.h - 16; |
dword sc_slider_y; |
dword sc_center; |
if (files.count<=0) |
{ |
24,6 → 25,18 |
DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2, system.color.work_light , system.color.work_dark); |
if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[13-i]); |
if (scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[i]); |
sc_center = sc_slider_h / 2 + sc_slider_y; |
DrawBar(sc_x+4, sc_center-3, 8, 1, col.graph); |
DrawBar(sc_x+4+1, sc_center-2, 8, 1, system.color.work_light); |
DrawBar(sc_x+3, sc_center, 10, 1, col.graph); |
DrawBar(sc_x+3+1, sc_center+1, 10, 1, system.color.work_light); |
DrawBar(sc_x+4, sc_center+3, 8, 1, col.graph); |
DrawBar(sc_x+4+1, sc_center+4, 8, 1, system.color.work_light); |
//area before slider |
if (sc_slider_y > sc_y + 1) |
{ |
/programs/testing/genfiles/GenFiles.asm |
---|
53,9 → 53,9 |
pb: |
.value dd 0 |
.left dd 8 |
.top dd 25 |
.top dd 38 |
.width dd 269 |
.height dd 10 |
.height dd 15 |
.style dd 0 |
.min dd 0 |
.max dd 0 |
68,10 → 68,10 |
.left dd 48 |
.top dd 8 |
.color dd 0X00FFFFFF |
.shift_color dd 0 |
.shift_color dd 0x94AECE |
.focus_border_color dd 0 |
.blur_border_color dd 0 |
.text_color dd 0 |
.text_color dd 0x10000000 |
.max dd EDIT1_MAX_LENGTH |
.text dd text_buffer1 |
.mouse_variable dd 0 |
89,10 → 89,10 |
.left dd 216 |
.top dd 8 |
.color dd 0X00FFFFFF |
.shift_color dd 0 |
.shift_color dd 0x94AECE |
.focus_border_color dd 0 |
.blur_border_color dd 0 |
.text_color dd 0 |
.text_color dd 0x10000000 |
.max dd EDIT2_MAX_LENGTH |
.text dd text_buffer2 |
.mouse_variable dd 0 |
282,8 → 282,8 |
; ------------------------------------- ; |
DrawStatus: |
mov eax, 4 |
mov ecx, 0xC0000000 |
mov ebx, (168 << 16) | 38 |
mov ecx, 0xD0000000 |
mov ebx, (297 << 16) | 38 |
mov edx, [status_string] |
mov edi, 0x00FFFFFF |
int 64 |
301,8 → 301,8 |
int 64 |
; DrawWindow |
xor eax, eax |
mov ebx, 360 |
mov ecx, 74 |
mov ebx, (50 << 16) | 360 |
mov ecx, (50 << 16) | 88 |
mov edx, 0x34FFFFFF |
mov edi, sz_caption |
xor esi, esi |
325,23 → 325,21 |
int 64 |
; DrawTexts |
mov eax, 4 |
mov ecx, 0x80000000 |
mov ecx, 0x90000000 |
; Path: |
mov ebx, (8 << 16) | 11 |
mov edx, sz_path |
int 64 |
; Count: |
mov ebx, (176 << 16) | 11 |
mov ebx, (168 << 16) | 11 |
mov edx, sz_count |
int 64 |
; Start: |
mov ebx, (302 << 16) | 18 |
mov ebx, (297 << 16) | 15 |
mov edx, sz_start |
int 64 |
; draw status |
mov ebx, (168 << 16) | 38 |
mov edx, [status_string] |
int 64 |
call DrawStatus |
; RedrawFinish |
mov eax, 12 |
mov ebx, 2 |
/programs/testing/genfiles/make.bat |
---|
1,2 → 1,3 |
@del GenFiles |
nasm -f bin GenFiles.asm -o GenFiles |
pause |