Search found 171 matches: subclass

Return to advanced search

Re: FW Preview user style

... original source code AND you have to upgrade it each time a new version of the FW software comes out. My example has both the parent class and the subclass in the same file. This was just for simplicity. Normally, the FW classes are already compiled. You would just build a subclass to change the ...
by James Bott
Fri May 13, 2022 10:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW Preview user style
Replies: 24
Views: 1780

Windows 11 Fluent Design

... again, except for a bitmap. I don't even know how to create a bitmap with the cloud-like coloring. So I suppose we need to think about a subclass of TPanel that could handle these things. Any thoughts and/or ideas?
by James Bott
Fri Jul 09, 2021 4:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Windows 11 Fluent Design
Replies: 43
Views: 9500

Re: TDatabase Class

... value. You will need to index on upper(cValue) for the index and use alltrim(upper(cValue)) for both the top and bottom scopes. You could also subclass TDatabase to create a new method OrdSetFocus() that works like you want but using OrdScope() to accomplish this. Note that you don't need to ...
by James Bott
Wed May 19, 2021 10:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase Class
Replies: 18
Views: 2134

Re: Xbrowse : Setup configuration file

This will change the original Xbrowse code not? or do you subclass or how can we call it ?

I always want to keep the original from FW always.
by Marc Venken
Sun Apr 18, 2021 8:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse : Setup configuration file
Replies: 5
Views: 1263

Re: Silvio: Reports

... areas of the sheet to print and in this class the class c5report must be inserted which is a parent class that creates the white area and has some subclasses (line, box, circle, fields, texts, image) . This parent class manages the movement of each object (dots) not like the tcontrol class but ...
by Silvio.Falconi
Fri Jan 22, 2021 9:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Silvio: Reports
Replies: 16
Views: 2001

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: 1414

Re: Beep on ALT-key

Enrico,

You don't have to modify the source, you can subclass instead.

James
by James Bott
Tue Oct 20, 2020 4:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Beep on ALT-key
Replies: 14
Views: 1414

Add a extra option to the method ToCSV

... : cDelimiter) Or is there a other way ? I prefer NOT to change source of FWH in order to keep the updates. I do have read that it is possible to subclass from a source of FWH. Just out of interest how this could work for my learning curve, maybe someone can use this code from source (Xbrowse) ...
by Marc Venken
Wed Sep 23, 2020 7:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Add a extra option to the method ToCSV
Replies: 10
Views: 1409

Re: To James Bott - Error Using TData

... not lose any number if I cancel the save if instead I use an external file I lost the number If you want to do it that way then just write a subclass of TData to do it. There are two issues: 1) You are lying to the user when you show an ID that may be wrong. This can create all kinds of confusion. ...
by James Bott
Wed May 29, 2019 3:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To James Bott - Error Using TData
Replies: 49
Views: 5322

Re: To James Bott - Error Using TData

... ID's missing due to cancelation IDs that had not be used yet. I will admit that my system does not work for him. That does not mean that he can't subclass the Load() and Save() methods and replace them with his own code. Silvio, all the data entry screens you showed look like they contain existing ...
by Silvio.Falconi
Wed May 29, 2019 1:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To James Bott - Error Using TData
Replies: 49
Views: 5322

Re: To James Bott - Error Using TData

... ID's missing due to cancelation IDs that had not be used yet. I will admit that my system does not work for him. That does not mean that he can't subclass the Load() and Save() methods and replace them with his own code. Silvio, all the data entry screens you showed look like they contain existing ...
by James Bott
Wed May 29, 2019 1:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To James Bott - Error Using TData
Replies: 49
Views: 5322

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

... even if there is another copy of the customer file already open. Or even 5 copies open. Everything is so much easier. Better still is to define a subclass of TDatabase for every DBF. Class TCustomers from TDatabase   Method New()EndclassMethod New(,"Customers") Class ...
by hua
Fri May 03, 2019 3:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Migrating TDatabase to FWH19.03's from FWH11.08
Replies: 15
Views: 2034

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

... even if there is another copy of the customer file already open. Or even 5 copies open. Everything is so much easier. Better still is to define a subclass of TDatabase for every DBF. Class TCustomers from TDatabase   Method New()EndclassMethod New() Class TCustomers   ::super():New(,"Customers",, ...
by James Bott
Thu May 02, 2019 11:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Migrating TDatabase to FWH19.03's from FWH11.08
Replies: 15
Views: 2034

Re: trying with tdatabase

Silvio,

You already have the files opening it a specified path with the subclass we created, so you don't need a function to do it also.
by James Bott
Thu Jan 24, 2019 5:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: trying with tdatabase
Replies: 34
Views: 4929

Re: A toolbox of netfunctions

... using statics. And I don't recommend calling functions to manipulate the database. If you want to modify the database's behavior then create a subclass and override a method (like Zap()). Class MyDatabase from TDatabase   Method Zap()EndclassMethod Zap() Class MyDatabase    ...
by James Bott
Thu Jan 24, 2019 4:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A toolbox of netfunctions and tDatabase-tests
Replies: 30
Views: 6381
PreviousNext

Return to advanced search