How refresh a dialog ?
How refresh a dialog ?
I load a dialog
in this dialog I have a MENU pulldown where I can set a logic variable
before of this dialog thereis the variable lSmall
If lsmall
DIALOG
endif
IF Lbig
DIALOG
endif
ACTIVATE
If change the value of this logic variable How I can make to reload my application and reload the dialog ?
in this dialog I have a MENU pulldown where I can set a logic variable
before of this dialog thereis the variable lSmall
If lsmall
DIALOG
endif
IF Lbig
DIALOG
endif
ACTIVATE
If change the value of this logic variable How I can make to reload my application and reload the dialog ?
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How refresh a dialog ?
oDlg:End()
and then
DEFINE DIALOG oDlg...
EMG
and then
DEFINE DIALOG oDlg...
EMG
perhaps you not understand me
I made a menu
...
menuitem " scentific" action ( lstandard:=.f.,oDlg:refresh())
....
endmenu
where I must insert the command odlg:end() and define dialog ... ?
For me this is very difficult to understand...Perhaps it is time: here is rain
I made a menu
...
menuitem " scentific" action ( lstandard:=.f.,oDlg:refresh())
....
endmenu
where I must insert the command odlg:end() and define dialog ... ?
For me this is very difficult to understand...Perhaps it is time: here is rain
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
I've used multilanguage menu and change on the fly.
You must end menu and rebuild it again.
Regards,
Dutch
You must end menu and rebuild it again.
Regards,
Dutch
Code: Select all
MEMVAR->Lang := cLang
oMenu:End()
BuildMenu( oWnd )
oWnd:SetMenu( oMenu )
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Silvio,
Why don't you use some code like this :
The button is, of course, the END-button.
I use it often and it works fine.
Good luck.
Why don't you use some code like this :
Code: Select all
LOCAL cRet := .T.
LOCAL cCheck := .F.
DO WHILE cRet
IF cCheck
DEFINE DIALOG ...
ELSE
DEFINE DIALOG ...
ENDIF
....
REDEFINE CHECKBOX cCheck ID ... ON CHANGE (cRet:=.T.,oDlg:End())
....
REDEFINE BUTTON ... ACTION (cRet:=.F.,oDlg:End())
....
ACTIVATE ....
IF !cRet
EXIT
ENDIF
ENDDO
I use it often and it works fine.
Good luck.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Dear Antonio,
None friend understand what I want
If you load Windows Calc you can select scentific calc or stardard calc
I have msgcal ( calc standard) and I insert on a menu pulldown a selection to change the form of the dialog
IF lStandard // active standard calc
DEFINE DIALOG oDlg SIZE 255, 245 TITLE cTitle FONT oFont ICON oIco
ELSE
DEFINE DIALOG oDlg SIZE 485, 245 TITLE cTitle FONT oFont ICON oIco
ENDIF
I want only refresh the dialog and change the form iand esecute
DEFINE DIALOG oDlg SIZE 485, 245 TITLE cTitle FONT oFont ICON oIco
if lstandard is .f.
I hope you help me
None friend understand what I want
If you load Windows Calc you can select scentific calc or stardard calc
I have msgcal ( calc standard) and I insert on a menu pulldown a selection to change the form of the dialog
IF lStandard // active standard calc
DEFINE DIALOG oDlg SIZE 255, 245 TITLE cTitle FONT oFont ICON oIco
ELSE
DEFINE DIALOG oDlg SIZE 485, 245 TITLE cTitle FONT oFont ICON oIco
ENDIF
I want only refresh the dialog and change the form iand esecute
DEFINE DIALOG oDlg SIZE 485, 245 TITLE cTitle FONT oFont ICON oIco
if lstandard is .f.
I hope you help me
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: