Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Problem with tabbed pages
Hi All,
I have a form that contains a pageframe with 10 pages. On each page I place a listbox. I want to have each listbox resize to fill the entire page when the form resizes. In my form's resize event, I put code to do so.
The problem I'm having is that sometimes the tabs are on multiple rows (which is what I set the tabstretch property to) and sometimes they are not (occupying a single row). When the former occurs, how can I determine the height of each page so that I can resize the height of the listboxes accordingly? There is no page.height property, only a pageframe.height. To get an individual page's height I take the latter and reduce it by its tab's height (approximately 35 from what I've been discovering). I suppose that I need to answer the question, how can I tell if the tabs are occupying more than one row?
TIA
Mike
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement