Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Apr 24, 2017 12:23 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Column resize on maximize with Einhugur StyleGrid.
PostPosted: Wed Oct 24, 2012 6:18 pm 
Offline

Joined: Fri Sep 30, 2005 12:05 pm
Posts: 9
I have added a stylegrid to my window and everything is fine as long as the window remains the size it was when created but when maximized the columns remain the same size.

I'd like to resize the columns to fit the control when it is maximized on the window.

Any pointers on how to accomplish this would be helpful.

Thanks for your time,

Troy


Top
 Profile  
 
 Post subject: Re: Column resize on maximize with Einhugur StyleGrid.
PostPosted: Tue Nov 27, 2012 3:27 pm 
Offline

Joined: Wed Aug 05, 2009 6:32 am
Posts: 174
Location: Arkansas - USA
Hopefully this is what you need. It's from the Einhugur website.

Put a code like this in the ControlResized event of the Grid:

me.Column(1).Width = (me.GetMeasure(GridMeasure.ContentAreaWidth)) * 0.5 // 50%
me.Column(2).Width = (me.GetMeasure(GridMeasure.ContentAreaWidth) * 0.3 // 30%
me.Column(3).Width = (me.GetMeasure(GridMeasure.ContentAreaWidth)) * 0.2 // 20%

_________________
Windows 7 (RB Pro 2012R2.1) / Ubuntu 12.10 (RB Pro 2012R2)


Top
 Profile  
 
 Post subject: Re: Column resize on maximize with Einhugur StyleGrid.
PostPosted: Tue Nov 27, 2012 3:56 pm 
Offline

Joined: Fri Sep 30, 2005 12:05 pm
Posts: 9
Thank you, that worked.

Can you possibly tell me where on the website? I read through the documentation before I posted.

Thanks,

Troy


Top
 Profile  
 
 Post subject: Re: Column resize on maximize with Einhugur StyleGrid.
PostPosted: Tue Nov 27, 2012 4:20 pm 
Offline

Joined: Wed Aug 05, 2009 6:32 am
Posts: 174
Location: Arkansas - USA
Top left of the website you should see a link for 'Support'.

Click on it and you should see a link for 'FAQ'.

You will find the information on that page.

_________________
Windows 7 (RB Pro 2012R2.1) / Ubuntu 12.10 (RB Pro 2012R2)


Top
 Profile  
 
 Post subject: Re: Column resize on maximize with Einhugur StyleGrid.
PostPosted: Tue Nov 27, 2012 5:07 pm 
Offline

Joined: Fri Sep 30, 2005 12:05 pm
Posts: 9
Thanks again for the help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group