mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-10-31 09:02:05 +01:00 
			
		
		
		
	TAChart: Add TChartExtent.FixTo utility function
git-svn-id: trunk@38609 -
This commit is contained in:
		
							parent
							
								
									160fa589a7
								
							
						
					
					
						commit
						a06d48f63f
					
				| @ -160,6 +160,7 @@ type | ||||
|   public | ||||
|     procedure Assign(ASource: TPersistent); override; | ||||
|     procedure CheckBoundsOrder; | ||||
|     procedure FixTo(const ABounds: TDoubleRect); | ||||
|   published | ||||
|     property UseXMax: Boolean index 3 read GetUseBounds write SetUseBounds default false; | ||||
|     property UseXMin: Boolean index 1 read GetUseBounds write SetUseBounds default false; | ||||
| @ -509,6 +510,13 @@ begin | ||||
|   end; | ||||
| end; | ||||
| 
 | ||||
| procedure TChartExtent.FixTo(const ABounds: TDoubleRect); | ||||
| begin | ||||
|   FExtent := ABounds; | ||||
|   FillChar(FUseBounds, SizeOf(FUseBounds), true); | ||||
|   StyleChanged(Self); | ||||
| end; | ||||
| 
 | ||||
| function TChartExtent.GetBounds(AIndex: Integer): Double; | ||||
| begin | ||||
|   Result := FExtent.coords[AIndex]; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 ask
						ask