Search found 171 matches: subclass

Return to advanced search

Re: Problem with TPanel Paint Method

... (I left this out to simplify the example). So I do need the oWnd:oClient statement. Thanks for the suggestion, however. So far, it seems my subclass solution works and is the best solution. I just wondered if there was a bug in the TPanel Paint method. James James, I have not taken anything ...
by cnavarro
Wed Sep 09, 2015 3:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with TPanel Paint Method
Replies: 12
Views: 2604

Re: Problem with TPanel Paint Method

... (I left this out to simplify the example). So I do need the oWnd:oClient statement. Thanks for the suggestion, however. So far, it seems my subclass solution works and is the best solution. I just wondered if there was a bug in the TPanel Paint method. James
by James Bott
Wed Sep 09, 2015 2:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with TPanel Paint Method
Replies: 12
Views: 2604

Problem with TPanel Paint Method

... display. Actually, they display very briefly when resizing the window but then they vanish leaving the panel showing through. I found that if I subclass TPanel and use the parent classes' paint method instead, it works fine. So there is apparently a problem with the paint method in the TPanel ...
by James Bott
Tue Sep 08, 2015 11:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with TPanel Paint Method
Replies: 12
Views: 2604

Re: BtnBmp

Tim, If you are doing what Rao said, and if ::save() is a method of a TData or TRecord subclass, then you should not be making user interface code as part of the subclass, but rather passing the data object to the UI code. Remember that data objects should be models ...
by James Bott
Fri Mar 20, 2015 2:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: BtnBmp
Replies: 6
Views: 1005

Re: use FLOCK()

Eduardo, Did you mean file locks or record locks? Either way, I use database objects. I wrote a subclass to TDatabase which adds many enhancements. I added some enhancements for record locking including automatic retries if a record is already locked. Personally, I aways ...
by James Bott
Fri Jan 30, 2015 10:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6138

Re: use FLOCK()

... code before and after every file lock in the program. That is, unless, you are using a database class. In this case all you have to do is create a subclass and add locking tracking. Then it gets used anywhere in the program that locking was used.
by James Bott
Fri Jan 30, 2015 3:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6138

Re: dbcombo blank

... So instead of oTDesc, just oDesc, or oDescrip, or even oDescription. The idea is to make the code more readable. An even better solution is to subclass TDatabase for each DBF file. So you do something like: CLASS TDescrip from TDatabase   method New()ENDCLASSMethod New( lShared ...
by James Bott
Tue Dec 09, 2014 4:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: dbcombo blank
Replies: 5
Views: 1451

Re: xBrowse + OO Array

... have my old notes with me right now, but I will try to remember to look them up tonight for more specific information. It may be that creating a subclass of xBrowse would solve the problem. James
by James Bott
Wed Jun 04, 2014 3:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse + OO Array
Replies: 16
Views: 4807

Re: Simple xBrowse edit ?

tData is always built from the latest tDatabase ... because it is a subclass.

CLASS TData from TDatabase

Thus, when I do a rebuild of the program, it will always be deriving from the current tDatabase.

Tim
by TimStone
Thu Oct 24, 2013 5:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simple xBrowse edit ?
Replies: 10
Views: 2544

Re: encrypting dbf files

... primary-key field containing a unique non-blank value. Use the primary key field to link to another DBF containing only a memo field. 2) Create a subclass of TDatabase (or TData) and write new save() and load() methods. In these methods you need to automatically lookup the memo field associated ...
by James Bott
Wed Oct 02, 2013 2:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: encrypting dbf files
Replies: 67
Views: 15549

Re: encrypting dbf files

Tim,

I see no reason it wouldn't work with data objects. We just need to subclass and add the password unlock and possibly a check to make sure the database is encrypted.

When time permits, I will test this to be certain.

James
by James Bott
Sun Sep 29, 2013 7:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: encrypting dbf files
Replies: 67
Views: 15549

Re: Record Lock problem

... primary key record, and actually reading it. I.E. lock it, wait, read it using oDBF:load(). Or use both ideas. You can build all this logic into a subclass of TDatabase. Create a new Append method that automatically increments the primary key field and saves it to the newly appended record, then ...
by Wanderson
Fri Aug 16, 2013 3:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Record Lock problem
Replies: 14
Views: 3906

Re: Record Lock problem

... primary key record, and actually reading it. I.E. lock it, wait, read it using oDBF:load(). Or use both ideas. You can build all this logic into a subclass of TDatabase. Create a new Append method that automatically increments the primary key field and saves it to the newly appended record, then ...
by James Bott
Thu Aug 15, 2013 2:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Record Lock problem
Replies: 14
Views: 3906

Re: FWH 13.05 xbrowse and fonts

... some informations from data to classdata in xbrowse so we can assign them once for all Two ways you can do this without modifying xBrowse. 1) Subclass xBrowse to your own class and use that class instead of TxBrowse in your app. create class MyxBrowse() from TxBrowse   method New()endclassMethod ...
by James Bott
Thu Jun 13, 2013 1:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 13.05 xbrowse and fonts
Replies: 20
Views: 4273

Re: VCard import

... so it would be better if those static functions were defined as protected methods. Then the class is still fully encapsulated and we can also subclass and use those methods if needed. And, of course, they won't affect the use of your library with the same routines as functions. Regards, James
by James Bott
Thu May 02, 2013 3:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: VCard import
Replies: 21
Views: 6016
PreviousNext

Return to advanced search