Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing _ShowText (_reports.vcx), what I missing?
Message
From
05/09/2003 11:44:37
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00826265
Message ID:
00826457
Views:
25
Thanks Sergey, it Works!!, but what is the explanation? Do I have to Use the last "Initial" Method of the LISA sequence?

>Try to move call to Resize into Activate Event.
PROCEDURE Activate
  This.Resize() 
  DODEFAULT()
ENDPROC  
>>I'm trying to Subclass _ShowText class (from FFCs class _report.vcx), it works fine, but I cannot get Maximazed & Resized the final instance, what am I missing??
>>
>>
>>oForm=CREATEOBJECT("MyTextEditor",GETFILE(),2)
>>oForm.SHow(1)
>>DEFINE CLASS myTextEditor as _showtext OF (HOME(1)+"ffc\_reports.vcx")
>>  PROCEDURE INIT
>>    *** I add a new Parameter, tnWindowState with proper Values
>>    LPARAMETERS tcSourceFile,tnWindowState
>>
>>    DODEFAULT(tcSourceFile)
>>    WITH This
>>      .WindowState=IIF(VARTYPE(tnWindowState)='N' ;
>> AND INLIST(tnWindowState,0,1,2),tnWindowState,0)
>>      .cmdClose.Caption="\<Cerrar"
>>      .cmdSave.Caption="\<Guardar como"
>>      .cmdFonts.Caption="\<Fuentes"
>>      .chkReadOnly.Caption="\<Sólo lectura"
>>      .Caption="Visor de Texto"
>>      ***.Resize() && This DON'T WORK????
>>    ENDWITH
>>  ENDPROC
>>  ***PROCEDURE SHOW()
>>  ***LPARAMETERS nStyle
>>  ***   DODEFAULT(nStyle)
>>  ***   This.Resize() && This DON'T WORK too :(
>>  ***ENDPROC
>>ENDDEFINE
>>
>
>Thanks in advance
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform