Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in wizard txtbtn
Message
 
To
28/09/1997 21:17:41
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00052053
Message ID:
00052299
Views:
25
>Back to the discussion, what about the buttons in tastrade model? Sorry, I am really new to VFP and don't know how to tell good and bad class. Can you elaborate on why it is a poor design? If I can't tell what is wrong with wizard buttons, I will probably come out with something as bad. Is there any article or book I can read to help me build this class? I don't have much time because my project schedule is very tight. Any suggestion?
>
>Thanks again. UniversalThread is a great place.
Shih,

There won't be an Unleashed 5.0 book, there wasn't enough new stuff to warrant one. There will be a book for the enxt version but it won't be Unleashed.

As for the wizstyles buttons and what is worng with them. Well this may get complicated, but here goes.

Wizstyle has a class named txtbtns which is acontainer that has buttons in it. The code for the behavior of those buttons is in the buttons in the container. That container is then subclassed into the picbtns class where the pictures are added to the buttons.

This design is what is called composition as the txtbtns class is a container which contains buttons. The problem with this design is that it is difficult to alter the behavior fo the buttons as they don't exist anywhere outside of the container with code. A better design would be to have each button defined as a separate class and then have those buttons combined into the container. This way you could selectively use any of the buttons you like and leave out any you don't want by making other containers with different buttons in them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform