Jump to content

Sherzod

Moderators
  • Posts

    19825
  • Joined

  • Last visited

  • Days Won

    644

Everything posted by Sherzod

  1. procedure TUniButtonsSpeedButton.UniFrameReady(Sender: TObject); begin sboxGridBlock.JSInterface.JSCall('getScrollable().getScrollElement().setScrollTop', [0]); end;
  2. Hi, In your case: procedure TMainForm.UniHTMLFrame1UpdateHtml(Sender: TObject); begin UniPanel2.JSInterface.JSCall('body.setScrollTop', [0]); end;
  3. Hello, If I understand you correctly, perhaps you need to use the floating property.
  4. А приложение какое? Мобильное?
  5. Sherzod

    Crop image

    Hello, Also may help you: You can crop the image yourself on the server side knowing the coordinates.
  6. Еще раз уточните пожалуйста.
  7. Какое выравнивание используете?
  8. Я не смог воспроизвести... Или же Вы используете динамические контролы!?
  9. For example: 1. procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniPanel1 do if TitleVisible then begin JSInterface.JSConfig('icon', ['files/truck.ico']); JSInterface.JSConfig('iconCls', ['panelIconCls']); end; end; 2. CustomCSS: .panelIconCls { background-size: 100% auto; }
  10. You can try to use the iconCls config.
  11. procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniPanel5 do if TitleVisible then JSInterface.JSConfig('icon', ['files/filename.ico']) end;
  12. Try this approach: procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniPanel1 do if TitleVisible then JSInterface.JSConfig('icon', [UniImageList1.GetImageIconUrl(0)]) end;
  13. Try this approach for now: ... if llist<>'' then begin //MyTreeMenu.JSInterface.JSAssign('_rtext', [MyTreeMenu.JSControl.JSArray(llist)]); MyTreeMenu.JSInterface.JSAssign('_rtext', [MyTreeMenu.JSInterface.JSStatement('[' + llist + ']')]); MyTreeMenu.JSInterface.JSCode('var me='#1';'+ 'if(me._rtext) me.getStore().each(function(record) {'+ ' if (me._rtext.indexOf(record.get("text")) > -1) {'+ ' record.remove()'+ ' }'+ '});' ); end; ...
  14. Hello, And which image do you want to add? Maybe you want to add an icon?
  15. Здравствуйте, У Вас десктопное приложение? Это для мобильных приложений.
  16. Such codes should be used in the UniFrameReady event.
  17. Hello, Can you make a simple testcase to check?
  18. Hi, Sorry, I will check your testcase.
×
×
  • Create New...