Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label Refresh bug 1
Message
From
03/08/2003 15:24:19
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00816320
Message ID:
00816328
Views:
27
Sergey,

>If you have to skip levels in the class hierarchy than something is wrong with you class design, IMHO.

It is not true on general, and if this were true, it would have to remove the Scope Resolution Operator from the languages to objects and to only use dodefault() or similar command.

Example:

Keypress event is a true effective event if you call it within a subclass
code.

Example:
* within a textBox subclass
PROCEDURE PippoPappo
  .....
  TextBox::Keypress(32,0) && this send a space to the TextBox
  .....
but this.KeyPress(32,0) not send space.

For use this.KeyPress(32,0), I need to put repetitive extra code
PROCEDURE KeyPress
LPARAMETERS nKeyCode, nShiftAltCtrl
 DODEFAULT(@m.nKeyCode, @m.nShiftAltCtrl)
 NODEFAULT
ENDPROC
on any subclass level of my TextBox.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform