Jump to content

Recommended Posts

Posted

I now use this method, I hope there is a more convenient way

   if Sender is TUniComboBox then
   begin
     y := (Sender as TUniComboBox).Top;
     x := (Sender as TUniComboBox).Left;
     iscolor := (Sender as TUniComboBox).Color;

Posted

Hi,

 

You can also try to use this:

_JSName: string;
  ...
  if (sender is TuniEdit) then
  begin
    if (sender as TuniEdit).Color=rgb(255,240,245) then
    begin
      //x:= (sender as TuniEdit).Left;
      //y:= (sender as TuniEdit).Top;
      errorstr := 'can not black';
      show_tips:= true;
      _JSName := (sender as TuniEdit).JSName;
    end;
  end;
  ...
  ...
  'paddingX: '+_JSName+'.getX(),'+  
  'paddingY: '+_JSName+'.getY(),'+     
  ...

Best regards.

Posted

Hi,

 

can be obtained through ExtEvents->Focus ?

function focus(sender, e, eOpts)
{
    var me = sender;

    Ext.create('widget.uxNotification', {
        manager: 'fullscreen',
        title: 'title',
        html: 'errorstr',
        position: 'tl',
        spacing: 0,
        closable: false,
        paddingX: me.getX(),
        paddingY: me.getY(),
        useXAxis: false,
        stickOnClick: false,
        stickWhileHover: false,
        autoClose: true,
        autoCloseDelay: 5000,
        hideDuration: 0,
        iconCls: 'ux-notification-icon-information',
        slideInDuration: 500,
        slideBackDuration: 500,
        slideInAnimation: 'elasticIn',
        slideBackAnimation: 'bounceOut',
        alwaysOnTop: true
    }).show();
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...