Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, November 30, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Auto-size control?
Mark Hanford
Posts: 131
 
Auto-size control?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 08 5:01 AM
Hello,

I have a form that has only a single control on it, a TCheckListBox, that I would like to be automatically re-sized to fit the width and height in the client.

Is this a possible from a property change, or do I need to hook into the OnResize event and measure current width etc?

Thanks

Mark
[Reply][Quote]
Mark Hanford
Posts: 131
 
Re: Auto-size control?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 08 5:04 AM
Forgot to mention, I'm using 7.2.1, and have tried the following, but the onResize doesn't seem to fire when changing the view around

MsgBox("W:" & Form.Width & " H:" & Form.Height)

Only fires when the form is opened, but not when the main SLX screen-splitters are moved about.

Thanks
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Auto-size control?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 08 1:18 PM
Mark, there's no need to do this - simply set the form property "Align" to "alClient" - will automatically size then to whatever size the user has.
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Auto-size control?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 08 1:19 PM
Of course, I mean the object property (although you can do form as well !)
[Reply][Quote]
Mark Hanford
Posts: 131
 
Re: Auto-size control?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Feb 08 10:54 AM
Hah! Perfect! Probably should've known that one

Thank you
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/30/2024 10:41:36 AM