a new class into resources

a new class into resources

Postby Silvio.Falconi » Sat Mar 03, 2018 8: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 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: 6897
Joined: Thu Oct 18, 2012 7:17 pm

Re: a new class into resources

Postby Antonio Linares » Sat Mar 03, 2018 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41858
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: a new class into resources

Postby Silvio.Falconi » Sat Mar 03, 2018 8: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 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: 6897
Joined: Thu Oct 18, 2012 7:17 pm

Re: a new class into resources

Postby Antonio Linares » Mon Mar 05, 2018 8:30 am

Please follow my instructions here:

viewtopic.php?p=210319#p210319
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41858
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: a new class into resources

Postby Silvio.Falconi » Mon Mar 05, 2018 8: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 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: 6897
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 67 guests