szlbz Posted May 29, 2012 Share Posted May 29, 2012 How to modify the UniDBNavigator hint content? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 29, 2012 Administrators Share Posted May 29, 2012 Hint constants are resourcestring. Link to comment Share on other sites More sharing options...
szlbz Posted May 29, 2012 Author Share Posted May 29, 2012 Hint constants are resourcestring. Can not be modified?I use the tips of the Chinese. Link to comment Share on other sites More sharing options...
NizamUlMulk Posted April 3, 2019 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted April 4, 2019 Share 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; Link to comment Share on other sites More sharing options...
Tokay Posted September 11, 2023 Share Posted September 11, 2023 I think is better to add dependence this hints of ExtLocale var. Link to comment Share on other sites More sharing options...
Tokay Posted October 28, 2023 Share Posted October 28, 2023 Up. Please add this functionality Link to comment Share on other sites More sharing options...
Tokay Posted November 18, 2023 Share Posted November 18, 2023 1576 works as before, please add this functionality Link to comment Share on other sites More sharing options...
Recommended Posts