... a similar concept exists where messages not handled by a control can be passed to the parent window or a default window procedure for handling. Subclassing Controls: In FiveWin and traditional Windows API programming, subclassing controls is a common practice. This involves intercepting messages ...
... want to keep all updates. Maybe with a extra data: oBrw:logchanges -> Is true then log some fields I never made a class, changed it or did any subclassing.
... build a subclass to change the parent class. When a new version of FW comes out you just compile your subclass program the same as always. Buy subclassing you don't have to do anything unless there was a change in the original method in that class. This should still be simple. >Please don't ...
Solved by subclassing TDataBase class TDataX from TDataBase data cFile method new()endclassmethod new() class TDataX ::super:new() ::cAlias := alias() ::nArea := select()return self ...
... I don't know about xBrowse but in the ribbonbar class it is impossible to change some of the colors without either modifing the class source or subclassing. In the ribbonbar a lot of the colors are set with codeblocks containing RGB() values which can't be changed from outside the class. >Why ...
... uses some code like this: if oWnd:IsKindOf( "TRPANEL" ) .and. oRB != NIL If you subclass you have to change the class name, thus subclassing might not work depending on what you are attempting. Ideally, would be to have the classes modified to read in parameters from data files. ...
... as methods. This way you do not risk breaking any of the DBF class code, and you do not have to recreate it in the new class. For an array class, subclassing TDatabase would not be possible since arrays don't use any of the same database syntax and/or functions. So an array class would need to ...
... can tell, you and I are the only die-hard database class programmers on this forum. Well, there are others using them (Tim for instance), but not subclassing them and extending them to get the maximum benefit. Regards, James
... Maybe I'm missing something? My point is that the class' New() method is not being called directly but rather through a function. This makes subclassing difficult if not impossible. Also I see this line in the xbrowsenew() function. oBrw := TXBrows():New( oWnd ) Isn't ...
There is also the possibility of subclassing TDatabase to provide automatic encryption/decryption. All we need to do is modify the Load() and Save() methods to do the encryption and decryption. If your program is already using TDatabase, ...
Subclassing xbrowse is the easiest of all. fwh\samples\xbrchild.prg explains how to subclass xbrowse.prg Once you have made your own subclass say TXBrowseRick, then at the beginning of your project SET XBROWSE TO TXBrowseRick() ...
... I was unware that TXBrowse():New() was being preprocessed into a function call. This does explain a lot, but does defeat the normal way of subclassing a class. Regards, James