1,31 → 1,31 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
;; basic macros for EditBox ;; |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
ed_width equ [edi] ; field width |
ed_left equ [edi + 4] ; left border X |
ed_top equ [edi + 8] ; top border Y |
ed_color equ [edi + 12] ; field color |
shift_color equ [edi + 16] ; select color |
ed_focus_border_color equ [edi + 20] ; border color active |
ed_blur_border_color equ [edi + 24] ; border color inactive |
ed_text_color equ [edi + 28] ; color and font (as in sysfunc 4) |
ed_max equ [edi + 32] ; chars max |
ed_text equ [edi + 36] ; buffer pointer |
ed_mouse_variable equ [edi + 40] ; pointer |
ed_flags equ [edi + 44] |
bp_flags equ [ebp + 44] |
ed_size equ [edi + 48] ; chars currently |
bp_size equ [ebp + 48] |
ed_pos equ [edi + 52] ; carret current position |
ed_offset equ [edi + 56] |
cl_curs_x equ [edi + 60] ; previous cursor X |
cl_curs_y equ [edi + 62] ; previous cursor Y |
ed_shift_pos equ [edi + 64] ; selection current position |
ed_shift_pos_old equ [edi + 66] ; selection previous position |
ed_height equ [edi + 68] |
ed_char_width equ [edi + 72] |
ed_width equ [edi] ; field width |
ed_left equ [edi+4] ; left border X |
ed_top equ [edi+8] ; top border Y |
ed_color equ [edi+12] ; field color |
shift_color equ [edi+16] ; select color |
ed_focus_border_color equ [edi+20] ; border color active |
ed_blur_border_color equ [edi+24] ; border color inactive |
ed_text_color equ [edi+28] ; color and font (as in sysfunc 4) |
ed_max equ [edi+32] ; chars max |
ed_text equ [edi+36] ; buffer pointer |
ed_mouse_variable equ [edi+40] ; pointer |
ed_flags equ [edi+44] |
bp_flags equ [ebp+44] |
ed_size equ [edi+48] ; chars currently |
bp_size equ [ebp+48] |
ed_pos equ [edi+52] ; carret current position |
ed_offset equ [edi+56] |
cl_curs_x equ [edi+60] ; previous cursor X |
cl_curs_y equ [edi+64] ; previous cursor Y |
ed_shift_pos equ [edi+68] ; selection current position |
ed_shift_pos_old equ [edi+72] ; selection previous position |
ed_height equ [edi+76] |
ed_char_width equ [edi+80] |
|
ed_struc_size = 76 |
ed_struc_size = 84 |
|
;;;;;;;;;;;;;;;;;;;;;;; |
;; flags for EditBox ;; |
60,27 → 60,27 |
struc edit_box width,left,top,color,shift_color,focus_border_color,\ |
blur_border_color,text_color,max,text,mouse_variable,flags,size,pos |
{ |
.width dd width |
.left dd left |
.top dd top |
.color dd color |
.shift_color dd shift_color |
.focus_border_color dd focus_border_color |
.blur_border_color dd blur_border_color |
.text_color dd text_color |
.max dd max |
.text dd text |
.mouse_variable dd mouse_variable |
.flags dd flags+0 |
.size dd size+0 |
.pos dd pos+0 |
.offset dd 0 |
.cl_curs_x dw 0 |
.cl_curs_y dw 0 |
.shift dw 0 |
.shift_old dw 0 |
.height dd 0 |
.char_width dd 0 |
.width dd width |
.left dd left |
.top dd top |
.color dd color |
.shift_color dd shift_color |
.focus_border_color dd focus_border_color |
.blur_border_color dd blur_border_color |
.text_color dd text_color |
.max dd max |
.text dd text |
.mouse_variable dd mouse_variable |
.flags dd flags+0 |
.size dd size+0 |
.pos dd pos+0 |
.offset dd 0 |
.cl_curs_x dd 0 |
.cl_curs_y dd 0 |
.shift dd 0 |
.shift_old dd 0 |
.height dd 0 |
.char_width dd 0 |
} |
|
macro edit_boxes_set_sys_color start,end,color_table |