Necesito crear Formulario Dialog con Control TRICHEDIT necesario para pegar imagenes, textos, colores y afines-
Called from: .\source\classes\DIALOG.PRG => CREATEDLGERROR( 561 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 299 )
Called from: dpcrpe.prg => SAVEPASTE( 2105 )
Called from: dpcrpe.prg => MAIN( 285 )
- Code: Select all Expand view RUN
FUNCTION SAVEPASTE(cFileMem)
LOCAL oDlg,oMemo,cMemo:=SPACE(10)
PRIVATE n_Top :=130
PRIVATE n_Left :=0
PRIVATE n_Width :=600
PRIVATE n_Height:=450
RESTORE FROM (cFileMem) ADDI
DEFINE DIALOG oDlg TITLE "Pegar contenido del ClipBoard"
@ 0,0 RICHEDIT oMemo VAR cMemo OF oDlg
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT (oDlg:Move(n_Top,n_Left),;
oDlg:SetSize(n_Width,n_Height),;
DLGINICIO(oDlg),.T.)
RETURN .T.
FUNCTION DLGINICIO(oDlg)
LOCAL oCursor,oBar,oBtn
DEFINE CURSOR oCursor HAND
DEFINE BUTTONBAR oBar SIZE 52-15,60-15 OF oDlg 3D CURSOR oCursor
DEFINE BUTTON oBtn;
OF oBar;
NOBORDER;
FILENAME "BITMAPS\XSAVE.BMP";
ACTION MsgAlert("GUARDAR")
DEFINE BUTTON oBtn;
OF oBar;
NOBORDER;
FILENAME "BITMAPS\PASTE.BMP";
ACTION MsgAlert("PASTE")
DEFINE BUTTON oBtn;
OF oBar;
NOBORDER;
FILENAME "BITMAPS\XSALIR.BMP";
ACTION oDlg:End()
oBar:SetColor(CLR_BLACK,15724527)
AEVAL(oBar:aControls,{|o,n|o:SetColor(CLR_BLACK,15724527)})
RETURN .F.