Eolite 2.0.4: call filemenu from the keyboard

git-svn-id: svn://kolibrios.org@4136 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Serhii Sakhno 2013-10-29 21:50:46 +00:00
parent b2d5324420
commit e2d29bf68d
2 changed files with 13 additions and 4 deletions

View File

@ -79,17 +79,19 @@
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
#define TITLE "Eolite File Manager v2.0.3"
#define ABOUT_TITLE "Eolite v2.0.3"
#define TITLE "Eolite File Manager v2.0.4"
#define ABOUT_TITLE "Eolite v2.0.4"
dword col_padding, col_selec, col_lpanel;
int toolbar_buttons_x[7]={9,46,85,134,167,203};
char tmp_disk_del_param[3]="d0";
struct path_string { char Item[4096]; };
int active_about=0;
byte active_about=0;
word about_window;
byte menu_call_mouse=0;
llist files;
byte
@ -212,6 +214,7 @@ void main()
if (!m.pkm) && (!m.lkm) && (can_show)
{
can_show = 0;
menu_call_mouse = 1;
if (m.y>=files.y)
{
SwitchToAnotherThread();
@ -387,6 +390,11 @@ void main()
IF (rename_active==1) {ReName(true); break;}
Open();
break;
case 074: //menu
menu_call_mouse=0;
SwitchToAnotherThread();
CreateThread(#FileMenu,#menu_stak+4092);
break;
case 173: //Ctrl+Enter
if (!itdir)
{

View File

@ -83,7 +83,8 @@ void FileMenu()
break;
case evReDraw: _MENU_DRAW:
DefineAndDrawWindow(m.x+Form.left+5, m.y+Form.top+GetSkinHeight(),menu.w+3,menu.h+6,0x01, 0, 0, 0x01fffFFF);
if (menu_call_mouse) DefineAndDrawWindow(m.x+Form.left+5, m.y+Form.top+GetSkinHeight(),menu.w+3,menu.h+6,0x01, 0, 0, 0x01fffFFF);
else DefineAndDrawWindow(Form.left+files.x+15, files.line_h*files.current+files.y+Form.top+30,menu.w+3,menu.h+6,0x01, 0, 0, 0x01fffFFF);
GetProcessInfo(#MenuForm, SelfInfo);
DrawRectangle(0,0,menu.w+1,menu.h+2,sc.work_graph);
DrawBar(1,1,menu.w,1,0xFFFfff);