Resizable panel

thread: 8 messages  |  last: about 5 years ago  |  started: saturday, may 20, 2006, 3:22 pm pdt


#1  |  Kristof Meirlaen (Belgium) Belgium Qcodo Core Contributor
Saturday, May 20, 2006, 3:22 PM PDT

Hi Mike,

Any plans on making a QPanel resizable?  Somthing like <http://www.aypwip.org/webnote/Sample%252520Workspace>.
And if possible (I know I'm pushing it), some events to catch the resize?

Kind regards,
Kristof Meirlaen

#2  |  Martin Kronstad (Mjoendalen) Norway Qcodo Core Contributor
Sunday, May 21, 2006, 11:33 AM PDT

This would be a cool feature, nice to have a possibility for an ajax-action for the resize event.

(Maybe the resize event could be applied to images aswell? , then it would be easy to create an image resizer for webpages.)

#3  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Wednesday, May 24, 2006, 1:46 AM PDT

Heheh... well, it's not something that we're working on at core right now... =)  But it's definitely a good idea.  I'd love to see if anyone can come up with something that we could incorporate in.

As an aside, we've had some pretty strict quality requirements when it comes to the RIA-AJAXy features of qcodo.  For example, with the drag and drop, notice how the drag and drop features allow for the mouse to leave the browser window completely while dragging and dropping (the example at <http://examples.qcodo.com/examples/advanced_ajax/scrolling.php> illustrates this the best), and that this is supported in all three major browsers (IE, Firefox and Safari).  We looked at incorporating many of the good js/ajax frameworks out there, but b/c of very minute but still quite significant quality issues (like what happesn to the scrolling or the dragging and dropping if/when you're mouse goes of the browser window, or better yet, when you let go of hte mouse button while the mouse is no longer over the window, but then bring the mouse back onto the window).  Note that if you tried to do something like that with Yahoo!, Open Rico, scriptaculous, etc., the drag/drop would just stop working.  Note that this isn't the case in real desktop gui apps, like word, etc.

Basically, the entire way we've incorporated object wrappers in the DOM through the HTML renders in each QControl is what allows for true GUI-like RIA mousing capabilities that we have now.  It does take a *lot* longer to build it out with this quality, but we think in the end it's worth it.

So in short, it's probably not too difficult to simply add resizable panels and such.  But to do it in a way that makes it truly like a desktop GUI app will take a lot longer ;^)  it's not the 80/20 rule, it's more the 95/5 rule -- where that last 5% of functionality will really take 95% of the time.

So with that in mind, yes -- it is something we'd like to see.  And if people have contributions for it, we'd love to chat.  But in terms of something like that in core, we would have just as strict quality requirements... and eventually (maybe months down the road), if no one steps up, we might take a crack at it.

But in terms of JS-AJAX functionality to add, the shiftable controls functionality is something that is likely higher on the list for us.

#4  |  Kristof Meirlaen (Belgium) Belgium Qcodo Core Contributor
Wednesday, May 24, 2006, 9:34 AM PDT

Hey Mike,

Just to let you know that I understand your point and in fact, this is the reason why QCodo is so comfortable to work with: as PHP developers using QCodo, we don't have to worry about cross-browser comptability when using any of the available AJAX features.  So thanks!!

And for the example: too bad that panel is not resizable ;-)

Regards,
Kristof Meirlaen

#5  |  Kristof Meirlaen (Belgium) Belgium Qcodo Core Contributor
Tuesday, June 13, 2006, 9:33 AM PDT

Hi all,

Toay, I have been working on this thing: a resizable panel.
You can see the current result in <http://qpaneltest.kri-soft.be>.

Known issues:
- the size of the panel is not “remembered” between Posts (FIXED)
- in FireFox, you can resize the label to almost nothing, IE does not allow a resize smaller then the content (I added QLabel to test) (edit: this seems also the case using 0.2.12: if you set the size of a panel smaller then it's contents, it also does not render properly)
- when using right-click, the context menu from the browser is still displayed

To all:
- Please let me know if the resize and move are working for your browser/OS
- anybody has any code that creates a panel using QAjaxAction? This would smoothen the creation of new windows

To All/Mike:
- any tips on how to handle the known issues are welcome.


Hope you like it !

Kristof

#6  |  dgeheniau (Amsterdam, Holland) Netherlands (Holland, Europe)
Sunday, December 10, 2006, 1:15 PM PST

Kristof,

Do You have the source code?

maybe i can help you.

Regards,

Didier

#7  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Sunday, December 10, 2006, 9:09 PM PST

Actually, as a FYI, we've implemented a Panel resizing functionality into the qcodo core for QPanel - it's a different approach than Kristof's - but I just wanted to give you that head's up.

You can view the example about it here: <http://examples.qcodo.com/examples/advanced_ajax/resize.php>

And of course, the source code is in the qcodo core itself.

#8  |  dgeheniau (Amsterdam, Holland) Netherlands (Holland, Europe)
Thursday, December 14, 2006, 8:08 AM PST

thks that helps



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.