erich.wanker Posted July 4, 2016 Share Posted July 4, 2016 Hy, how can i move a unipanel in negative left, top, or bigger than Form.width/Form.height - values ? if i move a draggable unipanel in a negative value - it allways jumps to the positive or maximum position of a UniForm I Want to create a big UniPanle (1000 x 1000 pixels) in a small form and move the unipanel around ThanX Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 4, 2016 Share Posted July 4, 2016 Hi, Try: UniPanel1->ClientEvents->UniEvents... beforeInit fn: function beforeInit(sender, config) { config.constrain = false } Best regards. Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted July 6, 2016 Author Share Posted July 6, 2016 Hi Delphi Developer :-) ThanX for help ... The code works half/half ... now the panel is draggable in the form ... but can not leave the screen-area of Main-Form Any idea? Thanx if i mouseDown a panel and dragg it - the content is not visible since i finish dragging... Is it possible to deactivate this behavior ? i want to see the content allways ... if i mousedown a panel that is bigger than his form - the panel -shadow is visible outside his form : What did i want? i have a uniPanel - in the uniPanel i have a uniHTMLFrame ... the frame displays a big visual Tree-Structure of informations ... i want to dragg the big Tree-Structure in his form arround to find the node of my interrest - and click it :-) Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted July 6, 2016 Author Share Posted July 6, 2016 .. or someone has a other idea? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 6, 2016 Share Posted July 6, 2016 if i mouseDown a panel and dragg it - the content is not visible since i finish dragging... Is it possible to deactivate this behavior ? i want to see the content allways ... -> border_less_form_with_panel_and_unihtmlFrame.jpeg Hi, For now try: UniPanel1->ClientEvents->ExtEvents->... afterLayout fn: function afterlayout(sender, layout, eOpts) { sender.dd.startDrag = function(){ var dragEl = Ext.get(this.getDragEl()); var el = Ext.get(this.getEl()); dragEl.update(el.dom.innerHTML); } } Best regards. Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted July 7, 2016 Author Share Posted July 7, 2016 Perfect ... Thank you :-) the panel is movable can leave the Form (can have negative top or left value of Form and bigger values of form max-values)) visible on dragging :-) Now, i have just one thing: The panel can not leave the screen area - it is captured in the screen and can not have a negative top or left value - and can not move over the screen max-values... any Ideas? Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted July 11, 2016 Author Share Posted July 11, 2016 push .. ;-) Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted July 12, 2016 Author Share Posted July 12, 2016 nobody any ideas..? Summary: a draggable uniPanel can now leave his form .. but can not leave the screen area .. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 12, 2016 Share Posted July 12, 2016 Hi Erich, Maybe you need to use another approach ?1. UniScrollbox, UniPanel2. Manipulation to scroll (UniScrollbox) using the mouseDown and mouseMove (UniPanel) events What do you think ?! Best regards. 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.