Eolite, dl: fix editbox when a new text was set

git-svn-id: svn://kolibrios.org@8334 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2020-12-06 21:01:31 +00:00
parent 4e4d10b4e1
commit d644c0e2c8
2 changed files with 5 additions and 4 deletions

View File

@ -43,7 +43,9 @@ void main()
strcpy(#main_url, #param);
}
}
if (main_url[0]) StartDownloading(); else strcpy(#main_url, "http://");
if (main_url[0]) StartDownloading(); else {
edit_box_set_text stdcall (#ed, "http://");
}
@SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER + EVM_STACK);
@SetWindowLayerBehaviour(-1, ZPOS_ALWAYS_TOP);

View File

@ -134,7 +134,7 @@ int status_bar_h = 0;
int icon_size = 16;
edit_box new_file_ed = {200,213,180,0xFFFFFF,0x94AECE,0xFFFFFF,0xFFFFFF,0x10000000,
248,#new_element_name,0,100000000000010b,6,0};
248,#new_element_name,0,ed_focus+ed_always_focus,6,0};
PathShow_data FileShow = {0, 56,215, 8, 100, 1, 0, 0x0, 0xFFFfff, #file_name, #temp, 0};
byte cmd_free=0;
#include "include\translations.h"
@ -1086,8 +1086,7 @@ void NewElement_Form(byte crt, dword strng)
if (!new_element_active)
{
new_element_active = crt;
strcpy(#new_element_name, strng);
EditBox_UpdateText(#new_file_ed, ed_focus+ed_always_focus);
edit_box_set_text stdcall (#new_file_ed, strng);
}
if (new_element_active==3) DrawEolitePopup(T_RENAME, T_CANCEL);
else DrawEolitePopup(T_CREATE, T_CANCEL);