donlego Posted September 8, 2019 Share Posted September 8, 2019 On 7/27/2019 at 1:52 PM, SayeyeZohor said: I when scroll with scrollbar in form, form is moving unigui ver 1506 it's happen to me to , drag scroll bar on unidbgrid or other the form is moving Link to comment Share on other sites More sharing options...
Sherzod Posted September 8, 2019 Share Posted September 8, 2019 1 hour ago, donlego said: it's happen to me to , drag scroll bar on unidbgrid or other the form is moving If it's not difficult for you make a simple testcase... Link to comment Share on other sites More sharing options...
donlego Posted September 9, 2019 Share Posted September 9, 2019 23 hours ago, Sherzod said: If it's not difficult for you make a simple testcase... tes case , hold and move the scroll bar move_form.rar Link to comment Share on other sites More sharing options...
Sherzod Posted September 9, 2019 Share Posted September 9, 2019 2 hours ago, donlego said: hold and move the scroll bar Are you using FireFox? Link to comment Share on other sites More sharing options...
donlego Posted September 9, 2019 Share Posted September 9, 2019 2 minutes ago, Sherzod said: Are you using FireFox? yes , sory on chrome it work, how make both (ff,chrome) work ? Link to comment Share on other sites More sharing options...
Sherzod Posted September 9, 2019 Share Posted September 9, 2019 1 minute ago, donlego said: yes , sory on chrome it work, how make both (ff,chrome) work ? I will check. Link to comment Share on other sites More sharing options...
Sherzod Posted September 9, 2019 Share Posted September 9, 2019 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 More sharing options...
donlego Posted September 10, 2019 Share Posted September 10, 2019 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 More sharing options...
Sherzod Posted September 10, 2019 Share Posted September 10, 2019 12 minutes ago, donlego said: one more can we resize form width , with borderstyle =bsnone, Try this config: function window.beforeInit(sender, config) { config.resizable=true; } Link to comment Share on other sites More sharing options...
donlego Posted September 10, 2019 Share Posted September 10, 2019 11 minutes ago, Sherzod said: Try this config: function window.beforeInit(sender, config) { config.resizable=true; } sory not work Link to comment Share on other sites More sharing options...
Sherzod Posted September 10, 2019 Share Posted September 10, 2019 Just now, donlego said: sory not work You typed wrong! Link to comment Share on other sites More sharing options...
Sherzod Posted September 10, 2019 Share Posted September 10, 2019 config.resizable=true; Link to comment Share on other sites More sharing options...
donlego Posted September 10, 2019 Share Posted September 10, 2019 5 minutes ago, Sherzod said: thanks , it's work Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now