SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2003
    Location
    CA
    Posts
    45
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why AnyWin Class could not be extended?

    Hi,

    Can anyone say me: "why Segue is not supporting extending AnyWin oe Control class"?

    Bobby

    ------------------

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Why AnyWin Class could not be extended?

    The Silk Help/Index for the "Anywin class" sub-topic "cannot extend" entry explains why.


    John


    ------------------

  3. #3
    Junior Member
    Join Date
    May 2003
    Location
    Toronto, Ontario, Canada
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Why AnyWin Class could not be extended?

    No it doesn't.. It just says that you can't do it. Unless i'm missing something.. It makes no sense to me that something that is supposed to be OO is so limited like that

  4. #4
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Why AnyWin Class could not be extended?

    All that the help file is pointing out is that when you extend a class, the extended class does not inherit down the tree. The same thing applies to PushButtons. If you extend the PushButton class, your new methods will only be valid for the PushButton class objects and not objects subclassed from PushButton. This limitation to inheritence has been there from the beginning and is a frequent request to change. In the mean time if you REALLY NEED to have a method added to the Control, AnyWin or any other class and have it inherited down the class tree, you can edit the built-in class in winclass.inc and then it will inherit as it should.

    BUT KEEP IN MIND.....
    1 - Keep a backup of what the original file was in case you screw something up.
    2 - Keep a backup of the changes you make so that when you upgrade SilkTest you can still put your changes into the files again as the new installation will overwrite the existing files.
    3 - Before calling Tech Support on issues, make sure that your code isn't the culprit before calling.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:24 PM.

Copyright BetaSoft Inc.