Jump to content

How to move BorderStyle=bsNone Modal form


Freeman35

Recommended Posts

1 hour ago, donlego said:

yes , sory on chrome it work, how make both (ff,chrome) work ?

Can you try this approach?

UniStringGrid1.ClientEvents.ExtEvents -> function mousedown:

function mousedown(sender, x, y, eOpts)
{
    sender.stopDrag =((sender.getView().getEl().dom.clientWidth) < x);
    
    _dd = MainForm.window.dd;
    
    if (_dd){
        if (sender.stopDrag==true) {
            _dd.addInvalidHandleId(sender.getView().getId());
        }
        else {
            _dd.removeInvalidHandleId(sender.getView().getId());
        } 
    } 
}

 

Link to comment
Share on other sites

22 hours ago, Sherzod said:

Can you try this approach?

UniStringGrid1.ClientEvents.ExtEvents -> function mousedown:


function mousedown(sender, x, y, eOpts)
{
    sender.stopDrag =((sender.getView().getEl().dom.clientWidth) < x);
    
    _dd = MainForm.window.dd;
    
    if (_dd){
        if (sender.stopDrag==true) {
            _dd.addInvalidHandleId(sender.getView().getId());
        }
        else {
            _dd.removeInvalidHandleId(sender.getView().getId());
        } 
    } 
}

 

thanks sherzod ,

one more can we resize form width , with borderstyle =bsnone,

 

Link to comment
Share on other sites

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