FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour a new class into resources
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
a new class into resources
Posted: Sat Mar 03, 2018 08:17 AM

How I can make if I have a custom class ( control) and I wish insert it into a dialog on Resources ?
I have PellesC
I tried with

CONTROL "Personalizzato1", 1017, "TMIOCONTROL", WS_TABSTOP, 200, 16, 148, 124

WHERE IS THE ERROR ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: a new class into resources
Posted: Sat Mar 03, 2018 08:34 AM

Silvio,

What error do you get ?

You have to add this CLASSDATA to your own defined custom controls:

CLASSDATA lRegistered AS LOGICAL

and Method Redefine() should make a call to ::Register()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: a new class into resources
Posted: Sat Mar 03, 2018 08:49 AM

Error description: Error FiveWin/3 Cannot create Dialog Box: Resource: DLG_PAGESETUP
I rem the control make on that class but the error is allways

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: a new class into resources
Posted: Mon Mar 05, 2018 08:30 AM

Please follow my instructions here:

viewtopic.php?p=210319#p210319

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: a new class into resources
Posted: Mon Mar 05, 2018 08:57 AM

yes
the class have "CLASSDATA lRegistered AS LOGICAL"
and the method redefine have registry command
but now I saw there is not problem of new class but of pellesC because it make error also if I make

Function test()
Local oDlg
DEFINE DIALOG oDlg NAME "DLG_PAGESETUP"
ACTIVATE DIALOG oDlg CENTERED IN PARENT

Return nil

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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

Continue the discussion