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 Quote 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... Quote 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 Quote 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? Quote 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 ? Quote 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. Quote 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()); } } } Quote 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, Quote 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; } Quote 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 Quote 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! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 10, 2019 Share Posted September 10, 2019 config.resizable=true; Quote 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.