remecd wrote:I have this function:
#include "FWCE.ch"
************************************
FUNCTION m_DaNe(cMsg,aBtn,cTitle)
************************************
LOCAL oDlg
DEFINE DIALOG oDlg RESOURCE "msgDaNe"
REDEFINE SAY ID 3 OF oDlg PROMPT cMsg
REDEFINE BUTTON ID 1 OF oDlg PROMPT aBtn[1] ACTION oDlg:End(1)
REDEFINE BUTTON ID 2 OF oDlg PROMPT aBtn[2] ACTION oDlg:End(2)
ACTIVATE DIALOG oDlg
RETURN (oDlg:nResult)
1. how can I use (start) debuger ?
2. how can I change the caption (title) and background color of DIALOG ?
3. how can I change the background color of REDEFINE SAY
4. it is posible to redefine the size (width,height) of DIALOG after (before) it's activated ?
Thank you!
#include "Fwce.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg;
RESOURCE "TEST"
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
DialogId DIALOG DISCARDABLE 0, 0, 118, 50
STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_VISIBLE
CAPTION "Dialog Title"
BEGIN
// dialog control
END
pawelu wrote:Hello,
title clause should be declared in resource file, then works ok
eg:
- Code: Select all Expand view RUN
DialogId DIALOG DISCARDABLE 0, 0, 118, 50
STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_VISIBLE
CAPTION "Dialog Title"
BEGIN
// dialog control
END
Regards
Pawel
ACTIVATE DIALOG oDlg;
ON INIT ( oDlg:SeText( "newTitle" ),;
oDlg:nWidth( 100 ),;
oDlg:nHeight( 100 ),;
WndCenter( oDlg:hWnd ) )
Antonio Linares wrote:Darjo,
You may do it this way:
- Code: Select all Expand view RUN
ACTIVATE DIALOG oDlg;
ON INIT ( oDlg:SeText( "newTitle" ),;
oDlg:nWidth( 100 ),;
oDlg:nHeight( 100 ),;
WndCenter( oDlg:hWnd ) )
Return to FiveWin for Pocket PC
Users browsing this forum: No registered users and 17 guests