SV: [Gtk-sharp-list] Notebook

Ahmed Bouagja ahmed.bouagja@eurecom.fr
Thu, 24 Apr 2003 12:14:41 +0200


Steinar Herland wrote:

>How about a .custom file to define Pages on the notebook object?
>Like:
>
>public int Pages
>{
>	get{
>		//TODO: Call something to prevent drawing to display?
>		int currentPage = CurrentPage;
>		CurrentPage = -1;
>		int numPages = CurrentPage;
>		CurrentPage = currentPage;
>		//TODO: Call something to restore drawing to display?
>		return numPages;
>	}
>}
>
>Steinar
>  
>

The return value should be numPages+1, because Pages are enumerated 
starting at 0.

-- 
Ahmed