Administrators Farshad Mohajeri Posted May 29, 2012 Administrators Posted May 29, 2012 Hint constants are resourcestring.
szlbz Posted May 29, 2012 Author Posted May 29, 2012 Hint constants are resourcestring. Can not be modified?I use the tips of the Chinese.
NizamUlMulk Posted April 3, 2019 Posted April 3, 2019 (edited) I need change the hint, too. Which is the resourcestring file for change the resourcestring value? I take example from http://www.delphibasics.info/home/delphibasicssnippets/changeresourcestringsatruntime And put that procedure HookResourceString(rs: PResStringRec; newStr: PChar); I was tested on ServerModuleCreate, MainModuleCreate and MainFormCreate and nothing .... using Vcl.Consts, Vcl.VDBConsts procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin HookResourceString(@SFirstRecord, 'Primer registro'); HookResourceString(@SPriorRecord, 'Registro anterior'); HookResourceString(@SNextRecord, 'Siguiente registro'); HookResourceString(@SLastRecord, 'Último registro'); HookResourceString(@SInsertRecord, 'Agregar'); HookResourceString(@SDeleteRecord, 'Eliminar'); HookResourceString(@SEditRecord, 'Editar'); HookResourceString(@SPostEdit, 'Grabar'); HookResourceString(@SCancelEdit, 'Cancelar edición'); HookResourceString(@SConfirmCaption, 'Confirmar'); HookResourceString(@SRefreshRecord, 'Refrescar'); HookResourceString(@SDeleteRecordQuestion, 'Eliminar registro?'); end; it still showing in English Edited April 3, 2019 by NizamUlMulk More data
Sherzod Posted April 4, 2019 Posted April 4, 2019 14 hours ago, NizamUlMulk said: I need change the hint, too. Hello, Maybe you can try something like this... // 'FIRST', 'PRIOR', 'NEXT', // 'LAST', 'INSERT', 'DELETE', 'EDIT', 'POST', 'CANCEL', 'REFRESH', 'APPLYUPDATES', 'CANCELUPDATES' procedure TMainForm.UniFormReady(Sender: TObject); var btnName: string; btnHint: string; begin btnName := 'FIRST'; //uni_dbn_xxx btnHint := 'First'; UniSession.AddJS('Ext.ComponentQuery.query("[uname=uni_dbn_'+ btnName +']").forEach(function(el){el.setTooltip("'+ btnHint +'")});'); btnName := 'PRIOR'; //uni_dbn_xxx btnHint := 'Prior'; UniSession.AddJS('Ext.ComponentQuery.query("[uname=uni_dbn_'+ btnName +']").forEach(function(el){el.setTooltip("'+ btnHint +'")});'); //... end;
Tokay Posted September 11, 2023 Posted September 11, 2023 I think is better to add dependence this hints of ExtLocale var.
Tokay Posted November 18, 2023 Posted November 18, 2023 1576 works as before, please add this functionality
Recommended Posts