Hi,
How can I create a Dialog with Minimize,Restore/Maximize, and Close Button which looks similiar to a window thru a PRG code ( not with a resource editor ).
Regards
Anser
*nStyle:=(WS_MINIMIZEBOX + WS_MAXIMIZEBOX) // did not work
nStyle:=nOR(WS_MINIMIZEBOX + WS_MAXIMIZEBOX) // did not work
nStyle:=nOR(WS_MINIMIZEBOX , WS_MAXIMIZEBOX) // did not work
DEFINE DIALOG oDlg TITLE "My Dialog " FROM 1,1 to 35,95 TRANSPARENT STYLE nStyle
Hello Anser:anserkk wrote:How can I create a Dialog with Minimize,Restore/Maximize, and Close Button which looks similiar to a window thru a PRG code ( not with a resource editor ).
#Include "FiveWin.Ch"
Function Main()
Local oDlg, oWnd
DEFINE WINDOW oWnd FROM 0, 0 TO 400, 400 PIXEL
DEFINE DIALOG oDlg FROM 0, 0 TO 400,400 PIXEL OF oWnd TRANSPARENT STYLE nOr( WS_VISIBLE, WS_CHILD )
@ 10, 10 SAY "Hello" PIXEL
ACTIVATE DIALOG oDlg NOWAIT VALID oWnd:End()
ACTIVATE WINDOW oWnd ON RESIZE oDlg:SetSize( oWnd:nWidth, oWnd:nHeight )
Return Nil
#include "FiveWin.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg TITLE "Dialog with Window style" STYLE WS_OVERLAPPEDWINDOW
ACTIVATE DIALOG oDlg CENTERED
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 85 guests