#include "fivewin.ch"
Function errorFolderex()
DEFINE DIALOG oDlg TITLE "I am a DialogBox" STYLE nOr(WS_POPUP,WS_THICKFRAME);
FROM 0,0 TO 300, 400 PIXEL //
@ 15, 20 FOLDEREX oFld SIZE 120, 100 OF oDlg PIXEL ROUND 5 UPDATE ;
PROMPT "Option 1", "Option 2", "Option 3", "Option 2", "Option 2"
@ 1, 1 BUTTON "&Botón que desaparecerá" SIZE 100, 20 OF oFld:aDialogs[1] PIXEL
ACTIVATE DIALOG oDlg CENTERED
return nil
#include "fivewin.ch"
Function NoerrorFolderex()
local oFld
DEFINE DIALOG oDlg TITLE "I am a DialogBox" STYLE nOr(WS_POPUP,WS_THICKFRAME);
FROM 0,0 TO 300, 400 PIXEL //
@ 15, 20 FOLDEREX oFld SIZE 120, 100 OF oDlg PIXEL ROUND 5 UPDATE ;
PROMPT "Option 1", "Option 2", "Option 3", "Option 2", "Option 2"
// Error
// @ 10, 1 BUTTON "&Botón que desaparecerá" SIZE 100, 20 OF oFld:aDialogs[1] PIXEL
// Correcto
@ 120, 25 BUTTON "&Botón no desaparecerá" SIZE 100, 20 OF oDlg PIXEL
ACTIVATE DIALOG oDlg CENTERED
return nil
Function NoerrorFolderex()
local oFld
local oDlg
DEFINE DIALOG oDlg TITLE "I am a DialogBox" STYLE nOr(WS_POPUP,WS_THICKFRAME);
FROM 0,0 TO 300, 400 PIXEL //
@ 15, 20 FOLDEREX oFld SIZE 120, 100 OF oDlg PIXEL ROUND 5 UPDATE ;
PROMPT "Option 1", "Option 2", "Option 3", "Option 2", "Option 2"
@ 10, 1 BUTTON "&Botón que desaparecerá" SIZE 80, 20 OF oFld:aDialogs[1] PIXEL
ACTIVATE DIALOG oDlg CENTERED ON PAINT oFld:aDialogs[1]:Refresh() // AEVal( oFld:aDialogs, { |aD| aD:Refresh() } )
return nil
#include "fivewin.ch"
Function errorFolderex()
local oDlg
DEFINE DIALOG oDlg TITLE "I am a DialogBox" ;
STYLE nOr( WS_POPUP, WS_THICKFRAME, WS_CLIPCHILDREN ) ;
FROM 0,0 TO 300, 400 PIXEL
@ 15, 20 FOLDEREX oFld SIZE 120, 100 OF oDlg PIXEL ROUND 5 UPDATE ;
PROMPT "Option 1", "Option 2", "Option 3", "Option 2", "Option 2"
@ 1, 1 BUTTON "&Botón que desaparecerá" SIZE 100, 20 OF oFld:aDialogs[1] PIXEL
ACTIVATE DIALOG oDlg CENTERED
return nil
#include "fivewin.ch"
Function main()
DEFINE DIALOG oDlg TITLE "I am a DialogBox" STYLE nOr(WS_POPUP,WS_THICKFRAME, WS_CLIPCHILDREN);
FROM 0,0 TO 300, 400 PIXEL //
@ 15, 20 FOLDEREX oFld SIZE 120, 100 OF oDlg PIXEL ROUND 5 UPDATE ;
PROMPT "Option 1", "Option 2", "Option 3", "Option 2", "Option 2"
@ 1, 1 BUTTON "&Botón que desaparecerá" SIZE 100, 20 OF oFld:aDialogs[1] PIXEL
@ 120, 25 BUTTON "&Botón no desaparecerá" SIZE 100, 20 OF oDlg PIXEL
ACTIVATE DIALOG oDlg CENTERED
return nil
jmartial wrote:Ahora no me borra el interior del folderex (Correcto) pero no me pinta bien el resto de controles que están fuera del folderex y pertenecen al Diálogo (Incorrecto).
Creo que la solución está dentro del código de la clase Tfolderex.
METHOD Paint() CLASS TFolderEx
LOCAL aInfo
IF ::lWorking
RETURN NIL
ENDIF
aInfo := ::DispBegin()
IF ::nLayOut == LAYOUT_TOP .OR. ::nLayOut == LAYOUT_BOTTOM
::PaintTB()
ELSE
::PaintLR()
ENDIF
::DispEnd( aInfo )
::aDialogs[ ::nOption ]:Refresh() // Nuevo !!!
RETURN NIL
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: albeiroval, Google [Bot] and 36 guests