xbrowse custom myBrowse

xbrowse custom myBrowse

Postby Silvio.Falconi » Sat Feb 25, 2023 3:58 pm

I need to create a class associated with Xbrowse that does not collide with any future changes to xbrowse but I don't know how to do it, every time I have an update I have to rewrite everything I need, in particular I have to add some DATA and some Methods, modify a method of xbrowse (with ovverride) . I would like to create it so that I can use it in the future without modifying the original class of fwh
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: xbrowse custom myBrowse

Postby Marc Venken » Sat Feb 25, 2023 4:43 pm

Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1446
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: xbrowse custom myBrowse

Postby Silvio.Falconi » Sun Feb 26, 2023 5:22 pm

Marc Venken wrote:Look Here, It could help,

viewtopic.php?f=3&t=41749&hilit=subclass&start=15#p250334



I made it now and it run ok but for one method I must use ovverride procedure because I must re-write a xbrowse method or on each upgrade I must add some lines ...

it is a small addition to the xbrowse class that the fwteam hasn't even taken into consideration, instead I consider it very useful in practice if we have 15 fields in the xbrowse table and we want to display only 4 of them initially for reasons that may also be of aesthetics, the end user however he could display the field he wants online and the configuration is saved in the state or the end user could display all the fields or put back the initial display made by the programmer.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 105 guests