|
property manager page
does anyone know how to utilize the multiple page option of the property manager page?
i've used the swpropertymanageroptions_multiplepages option to create the buttons, and i'm aware of the propertymanagerpage2handler4_onnextpage event, but i'm not sure where to go from there.
does each page have to be generated when the user clicks the next button, and if the user goes back to the previous page and it is created again from scratch, wouldn't all the information be lost?
thanks!
lee
hi lee, sorry no one has responded sooner.
when you use the command createpropertymanagerpage there is a constant in the the options paramater that needs to be included to turn on the arrow buttons to move from one "page" to another. this constant is swconst.swpropertymanageroptions_multiplepages
the way i handle these multiple pages is that i have a counter that monitors the current page number. then when the next or previous arrow is clicked on the propertymanagerpage2handler3_onnextpage is called and the current number incremented or decremented. this procedure calls another procedure that handles what group boxes to show and or hide.
all group boxes are created once at initialization. you can only hide or show these through the property manager. also, some controls can be modified when not shown, others can't be updated other than their captions or status.
i hope that helps.
have fun!
ahh, that makes perfect sense, but how do you control whether the 'next' and 'previous' buttons are enabled or disabled (i.e. whether you are at the first page, middle page, last page).
thanks a lot for the reply!
quick |
|