AlbertoVesx Posted October 1, 2015 Share Posted October 1, 2015 Where can I change this text that appears when the size of the file is bigger than allowed? Thank you. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 1, 2015 Share Posted October 1, 2015 Hi, It is resourcestring and it is declared in the module uniFileUploadwhile, maybe, you can try this: procedure HookResourceString(rs: PResStringRec; newStr: PChar); var oldprotect: DWORD; begin VirtualProtect(rs, SizeOf(rs^), PAGE_EXECUTE_READWRITE, @oldProtect); rs^.Identifier := Integer(newStr); VirtualProtect(rs, SizeOf(rs^), oldProtect, @oldProtect); end; procedure TMainForm.UniFormCreate(Sender: TObject); begin HookResourceString(@MAX_SIZE_ERROR, 'Your message'); end; Best regards. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.