几何尺寸与公差论坛

 找回密码
 注册
查看: 771|回复: 0

【转帖】property manager page

[复制链接]
发表于 2009-4-13 13:42:20 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 09:07 , Processed in 0.036282 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表