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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...