x11 Posted March 30, 2021 Share Posted March 30, 2021 В компоненту uniDBLookupcombobox добавил триггер и для триггера указал всплывающую подсказку (Hint). Проблема в том, что при наведении на кнопку триггера всплывает 2 подсказки, а должна всплывать только одна - для триггера. Quote Link to comment Share on other sites More sharing options...
x11 Posted March 30, 2021 Author Share Posted March 30, 2021 то же касается и TUniEdit Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 Что я делаю не так? procedure SetHintToolTip(FormControl: TUniFormControl; const hint: string); begin FormControl.ClientEvents.UniEvents.Values['afterrender'] := 'function afterrender(sender, eOpts) {Ext.create(''Ext.tip.ToolTip'', {target: sender.getEl(),html: "' + hint + '"});}'; end; SetHintToolTip(lcbResp, 'відповідальний'); навел курсор - всплывающей подсказки нет Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2021 Share Posted March 31, 2021 7 minutes ago, x11 said: SetHintToolTip(lcbResp, 'відповідальний'); Где вызываете? Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 После создания, в процедуре DoAfterCreate; with TfrdParentEditObj.Create(t) do begin Name := 'frdParentEditObj' + T.PageIndex.ToString; Parent := T; fCurrTabSheet := T; EditMode := aEditMode; IDObj := idObject; DoAfterCreate;// вот здесь Show; end; Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 1 hour ago, Sherzod said: Где вызываете? подскажите, где и как надо вызывать правильно? спасибо Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 Пробовал в OnCreate и в OnReady - подсказка не всплывает Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2021 Share Posted March 31, 2021 3 hours ago, x11 said: UniEvents Должен быть ExtEvents, для afterrender. 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted March 31, 2021 Author Share Posted March 31, 2021 ААААААаа точно, извиняюсь, спасибо, что заметили 1 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.