Hot Door CORE Forum
Fully resizable panel - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Getting started (http://hotdoorcore.com/forum/forumdisplay.php?fid=6)
+--- Thread: Fully resizable panel (/showthread.php?tid=20)



Fully resizable panel - Gaxx - 05-14-2014

Hello. I'm using HotDoorCore to create my plugin and I need to craete a panel that is resizable - both horizontally and vertically. As of now, when I create a Panel with resizable flag set to true, I can only resize it vertically (even though there is a "dog ear" int low-right corner that implies free resizing). Is it possible to resize panel horizontally? Maybe there is some hack that I can use to do it?


RE: Fully resizable panel - garrett - 05-14-2014

(05-14-2014, 04:50 AM)Gaxx Wrote: As of now, when I create a Panel with resizable flag set to true, I can only resize it vertically (even though there is a "dog ear" int low-right corner that implies free resizing). Is it possible to resize panel horizontally? Maybe there is some hack that I can use to do it?

We simply haven't added this feature to CORE yet, but it's on the to-do list. I'll see what I can do about prioritizing it for the next update or so.

In the meantime, you can setup your project to also compile against the Illustrator SDK headers, and use the Panel::platformPanel() accessor function to get direct access to the internal panel object. From there, you can use Illustrator SDK suites in the normal fashion to set the panel to be resizable horizontally. I can't guarantee that CORE will react well to overriding the horizontal resizability flag, but off the top of my head I think it will be fine.


RE: Fully resizable panel - garrett - 05-19-2014

I just thought I'd let you know that 0.5.3 is now available, and adds this ability! You can see more info in the announcement thread.


RE: Fully resizable panel - Gaxx - 05-20-2014

(05-19-2014, 09:48 PM)garrett Wrote: I just thought I'd let you know that 0.5.3 is now available, and adds this ability! You can see more info in the announcement thread.

Thank you! I will migrate my project to new version tommorow. Also, I will use keypress monitoring and state aquisition functions(I used WinAPI for that before). I will let you know how it all went, when I'm done.