SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Overloading methods of Classes! ClipboardClass no effect?

    I tried overloading the methods of some silk test classes viz. TextField, ComboBox, StaticText, UpDown and they worked fine but for ClipboardClass the overloading doesn't work. has anybody have any problems with it.

    here is the code snippet:
    ------------------


    [This message has been edited by AUTOMATION_GURU (edited 02-24-2003).]

  2. #2
    Member
    Join Date
    Jun 2001
    Location
    Bedford, MA, USA
    Posts
    85
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overloading methods of Classes! ClipboardClass no effect?

    I believe you're suffering from a quirk in the way Silk applies inheritance.
    If you overload a class, you must explicitly declare objects of your new class to get the effect.
    The only reason you are seeing your ComboBox changes is because you have explicit window declarations for objects of type ComboBox. Had you overloaded Silk's Control class (ComboBox's parent) you would NOT see your new methods.
    Since you can't declare an object of type Clipboard (at least I don't think you can) you're not going to get what you want the way you're doing it.
    One ugly way is to modify Silk's Clipboard class directly in winclass.inc.
    - Jim



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

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

    Re: Overloading methods of Classes! ClipboardClass no effect?

    To make your code work just globally redefine the Clipboard instance like this:

    window ClipboardClass Clipboard
    {
    }


    John


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

 

 

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 04:14 PM.

Copyright BetaSoft Inc.