SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 1999
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Redefining built-in method

    I am using this code to redefine the method Click () for the class ToolBar.

    I am trying to use the code shown below so that the Click () method gets redefined for all the classes derived from AnyWin including ToolBar. But it doesn't work. Any use of Click () uses the original Click () method but not the redefined one. Could someone help me?

    Thanks in advance,

    Sam

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Redefining built-in method

    I don't think you can do this:
    winclass ToolBar : ToolBar

    I think it would work if you give your new class a non reserved name. I've done this for PageList.

    e.g. winclass ExtendedPageList : PageList
    // put overrides here
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  3. #3
    Senior Member
    Join Date
    Mar 2000
    Location
    Dublin, Ireland
    Posts
    152
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Redefining built-in method

    Hi,

    I have encountered this problem and spoke to some of the Segue guys at Quest '99 about it. Unfortunately, inhertiance from the existing classes is not possible outside the class.inc. So you have two options,
    1. add the new method for the AnyWin class in the class.inc (remember to backup your existing class.inc!!), or
    2. create a new class with the method and then (in the class.inc) derive the AnyWin class from this.

    I hope that this helps.

    John.

    [This message has been edited by John O'Neill (edited 08-08-2000).]
    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com

 

 

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 05:58 PM.

Copyright BetaSoft Inc.