11/4/2025 12:15:34 AM
 
										
										 
										 
										 
										 
										 
										 
										 
									 | 
									
									
										
											
												
													
														
															|   | 
															
																
																
																	
																		| 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! 
	 Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines. 
 | 
	
 | 
  
 
																			
																			 
																			
		
			 | 
		 
			
		 
			 | 
				
					Auto-size control?  
						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 | 
				 
					 | 
				 
			  | 
		 
			 | 
				
					Re: Auto-size control?  
						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 | 
				 
					 | 
				 
			  | 
		 
			 | 
				
					Re: Auto-size control?  
						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. | 
				 
					 | 
				 
			  | 
		 
			 | 
				
					Re: Auto-size control?  
						Posted: 29 Jan 08 1:19 PM
					 | 
				 
					| Of course, I mean the object property (although you can do form as well !) | 
				 
					 | 
				 
			  | 
		 
			 |  | 
		 
			 | 
		 
	 
																			  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!
			 |   
		 | 
		  | 
	 
 
 																					
																					
																		 | 
	  | 
 
																 
																
																
																 | 
														 
													 
												 | 
											 
										 
									 |