Delphi For PHP Forums       


Go Back   Delphi-PHP Forums > Delphi4PHP NNTP Newsgroups > embarcadero.public.delphiphp.vclforphp.components.using
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

embarcadero.public.delphiphp.vclforphp.components.using This group is for all discussion about the use of VCL for PHP components.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 7th October 2008, 05:14
Graham Wideman
Guest
 
Posts: n/a
Default How to get components to resize on resize window?

Hi folks:

Is there some combination of panels, properties, layout or event handling that would allow controls to resize in response to browser window resize?

As an example -- how would one get a DBGrid to resize to take advantage of the user expanding the browser window?

Thanks,

Graham
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 7th October 2008, 14:01
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,216
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Most of these components are fixed sized as designed. You can do a couple of things like finding out the size of the browser window *before* you create the first instance and change your sizes while still on the server.

You probably could write a js event handler for window resize and then you could calculate and change the grids size with js in the browser.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 7th October 2008, 17:15
Jonathan Benedicto
Guest
 
Posts: n/a
Default Re: How to get components to resize on resize window?

Graham Wideman wrote:
> Is there some combination of panels, properties, layout or event handling
> that would allow controls to resize in response to browser window resize?


Not really.

I will mention that Components For PHP Full (http://www.jomitech.com)
components have this capability.

Jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 7th October 2008, 18:20
Graham Wideman
Guest
 
Posts: n/a
Default Re: How to get components to resize on resize window?

Thanks Jon and 405hp
Graham
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 03:38.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use