User able to resize Dialog (Pop-ups)

Gintoki shared this question 4 years ago
Answered

Hello everyone!


I need some help in solving this question.


Is it able to simulate the resizing of a dialog (pop-up)? I would like to able the user to resize a dilog in the screen (pretty much like Windows' windows do).


I'm using JIM 6.9.1


Thanks in advance!

Comments (12)

photo
1

Hi Gintoki,


You should create an " On Drag / Resize" event and then calculate the increase in the size of the object based on the movement of the cursor.


Best,


Sonia Durán

photo
1

Hello Sonia,


Thank you for your answer! I'll try to do it and I give you a feedback whether I was able or not to simulate this feature.


Thank you very much!


Best Regards,

photo
1

Hello Sonia,


Sorry for the late reply.


I was not able to simulate the resize as you suggested me. When I drag the control responsible for the dialog resize, the dialog automatically gets too big and it does not follow the mouse cursor.


I will post some screenshots below.


I ask for your guidance in solving this issue.


Thank you!


Best Regards,

photo
1

Sonia, this is the screen that I configured the event. Please, tell me if I'm missing anything.


4012136debab3706036d5b241e6f3305

photo
1

Sonia, this is the simulation screen. When I drag the 'resize' icon, the dialog automatically gets too big and is does not follow the mouse cursor.


40c83be502bf1b3c3666320a3740b3ea

photo
2

Hi Gintoki,


that's not correct. You should calculate the cursor movement instead of the position of the cursor. Please check out this example.


https://www.dropbox.com/s/zhc05ke1xwo...


Best,


Sonia Durán

photo
1

Thanks.

photo
1

Hello Sonia, sorry for the late reply.


I tested the file. It works ok! I tried to adapt it for vertical resize too.


When I vertically resize the Data List, the Header gets smashed and it does not resize back to its original height.


See screenshot below.


Also, I was trying to create the same event to Dynamic Panels, but it is not possible. JIM 7 does not allows the 'Set Value' action on Dyamic Panels. This is a a feature that I'm in need, because I'm making my dialogs using Dynamic Panels.


Is there a way to change Dynamic Panel size using this technique?


Thank you!


Best Regards,

photo
1

When I vertically resize the Data List, the Header gets smashed and it does not resize back to its original height.


39654c9fa73d8436cdd2511e4f14d644


Also, I was trying to create the same event to Dynamic Panels, but it is not possible. JIM 7 does not allows the 'Set Value' action on Dyamic Panels. This is a a feature that I'm in need, because I'm making my dialogs using Dynamic Panels.


I was trying to set the DynamicPanel.width to a value.


Is there a way to change Dynamic Panel size using this technique?


Thank you!


Best Regards,

photo
1

Hello Sonia,


Any updates about this feature?


I'm really in need of it ... =/ ...


Thank you!!


Best Regards,

photo
1

Hi Gintoki, you just need to apply the same events into a Dynamic panel. Please check out this new example I've created for you.


Also in order to resize vertically you will need to adapt the events to resize vertically instead of horizontally.


https://www.dropbox.com/s/f8a90nhe7q0...


Best,


Sonia Durán

photo
1

Hello Sonia!


It worked for me. Thank you very much! =]


Thank you for the instructions!


Best Regards,