From 80a6eb43557cbf1d5013fbdb0294d47d3348c9ca Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sat, 9 May 2020 20:59:51 +0000 Subject: [PATCH] editbox: remove selection if element was deactivated git-svn-id: svn://kolibrios.org@7904 a494cfbc-eb01-0410-851d-a64ba20cac60 --- data/common/icons16.png | Bin 7894 -> 7893 bytes programs/cmm/lib/obj/box_lib.h | 5 ++-- .../libraries/box_lib/trunk/editbox.asm | 22 ++++++++++++------ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/data/common/icons16.png b/data/common/icons16.png index 745e4d41c707c69b145ba15694681cef5d9e93d0..171fdf9aaa1c8904d82b1ff3d6a22a6cb913416a 100644 GIT binary patch delta 7546 zcmXY0cQ~A1u>RJntF0cr*NEO*mZ;IgD$!QR>LDRI--?>(gxKgJ2%?6F1gre4Bx(@7 zMWTz-t*siXXcOdyz|VwXXdB+xO$oZm}j7^X&F4dolg zpYK;v@t=Ja!p|=u8?C{iX+{Te*4Ea6=xD}8$llPO)Z!6u@Qte@ait)K+##Rp(W_2_WDD=?F|a#+cU=x)Wv{jb;=jsph{S}0VPk|sXx0nB|jR@ghG~xzaRxD zRDGsuJ0lc2v&B-97@>Y1<*-$YGj~W%0&u_M3&IdfRKs!j@g>CXWK50847=?j3SA6O z>44!#8|W8CL;waj#_;n!NJBlU9HgxPYV}<9i9fJ28vLOHl4Boc)k(Jx)0g!1?_wXq z4FD^+4%%eE3$W2-#A3;EG)0OQzF0Pm+(>{Z=&pD)J3HF>6p<-C>RBNf{z$h#(+pr^ zC6GCTdIH3Ca|xdLfU7Yv$zm(l1HjVCik-*F=LN*617)164`E`; z(&{U|6VIcpjQz%FW^WI9SbFn2B5VASKf>7=E80VEW@hFMt0(^bhv~JJI0TCgDT5m# zJUvsCdthlVUwT}dK&emmrPdoUXbTL3{LINBTT9R_Pn##OypycC69g6RWbrqv-G0;! z_!o(1M1Bq`+(tQ!R3jtr7HPQdy!xW0xb=3%r=RQ>x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rMd6F-a z+nBRU;a?-iL%@9U`__}6k^^wRGsvhB!=Z1VKJeZ + jz .draw_cursor_text ; do not draw selection(named shift) call .draw_shift .draw_cursor_text: call .draw_text - test word ed_flags,ed_focus + test word ed_flags,ed_focus ; and dosn`t draw cursor jz .editbox_exit call .draw_cursor ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -167,12 +169,14 @@ edit_box_key: ; restore ascii code rol eax,8 ;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;Заглушка на обработку клавиш вверх и вниз т.е. при обнаружении этих кодов происходит выход из обработчика +;Заглушка на обработку клавиш вверх и вниз т.е. при обнаружении +;этих кодов происходит выход из обработчика ;;;;;;;;;;;;;;;;;;;;;;;;;;;; use_key_no_process up,down,esc,enter,tab,numl,capsl,scrolll,pgup,pgdown ;--- нажата другая клавиша --- ;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;Проверка установлен ли флаг при котором нужно выводить только цифры в нужном боксе +;Проверка установлен ли флаг при котором нужно выводить +;только цифры в нужном боксе ;;;;;;;;;;;;;;;;;;;;;;;;;;;; test word ed_flags,ed_figure_only ; только цифры? jz @f @@ -718,17 +722,21 @@ edit_box_mouse.m_sh: call edit_box.draw_cursor ; процедура установки фокуса jmp edit_box_mouse.drc + +edit_box_mouse._remove_selection: + and word ed_flags,ed_shift_cl + jmp edit_box.draw_bg_cursor_text edit_box_mouse._blur: test word ed_flags,ed_always_focus - jne edit_box.editbox_exit - btr word ed_flags,1 ; если не в фокусе, выходим - jnc edit_box.editbox_exit + jne edit_box_mouse._remove_selection + btr ed_flags, bsf ed_focus ;if focused then remove focus, otherwise exit + jnc edit_box_mouse._remove_selection mov ebp,ed_color call edit_box.clear_cursor edit_box_mouse.drc: call edit_box.draw_border - jmp edit_box.editbox_exit + jmp edit_box_mouse._remove_selection ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Общие функции обработки