Jump to content

Recommended Posts

Posted

Hi.

 

How can I limit the drag of a form to his parent area?

 

When drag a form, the user can drag out the parent, then he/she can't see the form border.

 

Thanks.

Posted

Ok.

 

Open any demo of unigui, with forms.

 

Drag the form to the top of your screen.

 

You will see that I say. The header of form disappears, and you can't drag again.

Posted

Hi,

 

The following might help you: add into   Your form -> ClientEvents -> UniEvents -> Ext.window.Window -> window.beforeInit  the following line:

 

   sender.constrainHeader = true;

 

Regards,

Posted

Other thing I see in forms, is that I can't minimize them.

 

I see the minimize and maximize buttons. I can maximize but not minimize.

 

Maybe, I've forgotten something?

 

Thanks.

Posted

Hi,

 

Workaround for Minimize-Maximize.

 

form -> ClientEvents -> UniEvents -> Ext.window.Window -> window.beforeInit

  sender.constrainHeader = true;
  config.tools = [{
        type: 'restore',
        handler: function (evt, toolEl, owner, tool) {
                var window = owner.up('window');
                window.setWidth(1182);  //  <-- Your actual form width
                window.expand('', false);
                window.center();
            }
    }];

form -> ClientEvents -> ExtEvents -> Ext.window.Window -> window.minimize

  sender.collapse();
  sender.setWidth(150);
  sender.alignTo(Ext.getBody(), 'bl-bl');

form -> ClientEvents -> UniEvents -> Ext.window.Window -> window.beforeInit

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...