Search found 33 matches: subclassing

Return to advanced search

Fivewin controls similar to javascript elements

... 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 ...
by Otto
Tue Nov 21, 2023 7:33 am
 
Forum: mod_harbour
Topic: Fivewin controls similar to javascript elements
Replies: 2
Views: 1124

Subclass Xbrowse or changed data function

... 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.
by Marc Venken
Thu Sep 08, 2022 8:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Subclass Xbrowse or changed data function
Replies: 5
Views: 310

Re: FW Preview user style

Dear James,

thank you.
Nevertheless, I have this image in my head.


Best regards,
Otto

Image
by Otto
Sat May 14, 2022 4:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW Preview user style
Replies: 24
Views: 1701

Re: FW Preview user style

... 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 ...
by James Bott
Fri May 13, 2022 10:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW Preview user style
Replies: 24
Views: 1701

Re: Beep on ALT-key

Subclass TControl? Don't think that class is thought for subclassing.

EMG
by Enrico Maria Giordano
Tue Oct 20, 2020 4:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Beep on ALT-key
Replies: 14
Views: 1330

Re: Migrating TDatabase to FWH19.03's from FWH11.08

Solved by subclassing TDataBase class TDataX from TDataBase  data cFile  method new()endclassmethod new() class TDataX  ::super:new()  ::cAlias := alias()  ::nArea  := select()return self  ...
by nageswaragunupudi
Sat May 04, 2019 11:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Migrating TDatabase to FWH19.03's from FWH11.08
Replies: 15
Views: 1993

Re: Migrating TDatabase to FWH19.03's from FWH11.08

Solved by subclassing TDataBase
Code: Select all  Expand view

class TDataX from TDataBase
  data cFile
  method new()
endclass
method new() class TDataX
  ::super:new()
  ::cAlias := alias()
  ::nArea  := select()
return self
 
by hua
Thu May 02, 2019 9:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Migrating TDatabase to FWH19.03's from FWH11.08
Replies: 15
Views: 1993

Re: xBrowse look Office 2016

... 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 ...
by James Bott
Fri Dec 28, 2018 9:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse look Office 2019 - Office 365
Replies: 12
Views: 2880

Re: Ribbon Theme

... 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. ...
by James Bott
Fri Oct 19, 2018 4:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbon Theme
Replies: 163
Views: 28315

Re: tDatabase- AdsSetAof()

... 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 ...
by James Bott
Thu Nov 16, 2017 9:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: tDatabase- AdsSetAof()-RESUELTO
Replies: 2
Views: 688

Re: DBF to SQL converter program

... 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
by James Bott
Tue Aug 25, 2015 7:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to SQL converter program
Replies: 59
Views: 18056

Re: Creating XBrowse from a resource

... 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 ...
by James Bott
Fri Feb 21, 2014 5:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating XBrowse from a resource
Replies: 14
Views: 2715

Re: To Antonio:

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, ...
by James Bott
Fri Jul 05, 2013 5:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Antonio:
Replies: 12
Views: 2730

Re: xBrowse TAB navigation wish

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() ...
by nageswaragunupudi
Fri May 04, 2012 4:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse TAB navigation wish
Replies: 7
Views: 1357

Re: XBrowse Win7 Bar New Sample

... 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
by James Bott
Thu Jan 06, 2011 1:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse Win7 Bar New Sample
Replies: 61
Views: 13543
Next

Return to advanced search