Julio,
I had already downloaded and looked at your code before my first message. I still don't understand what you are trying to do.
I assume my sample code is not what you are trying to do?
James
Julio,
I had already downloaded and looked at your code before my first message. I still don't understand what you are trying to do.
I assume my sample code is not what you are trying to do?
James
Julio,
>Ok James, but the code will be execute by the main window, not by the non-modal dialog.
Did you mean you think it will, or that you want it to be executed in the main window?
James
James Bott wrote:Julio,
I had already downloaded and looked at your code before my first message. I still don't understand what you are trying to do.
I assume my sample code is not what you are trying to do?
James
Antonio Linares wrote:JĂșlio,
Please test your PRG built here:
http://rapidshare.com/files/138789952/nomodal.zip.html
#include "fivewin.ch"
function main()
local oWnd
define window oWnd
activate window oWnd on init doit()
return nil
function doit()
local oDlg, oBtn
define dialog oDlg
activate dialog oDlg on init (oDlg:show(), dowhatever(), oDlg:end())
return nil
function doWhatever()
waitSeconds( 3 )
return nil#include "fivewin.ch"
function main()
local oWnd
define window oWnd
activate window oWnd maximized on init doit()
return nil
function doit()
local oDlg, oBtn
define dialog oDlg
activate dialog oDlg center ;
on init (oDlg:show(), oDlg:setFocus(), dowhatever(), oDlg:end())
return nil
function doWhatever()
waitSeconds( 3 )
return nilJames Bott wrote:Julio,
>When the main window (oWnd) started, I need execute a command 'FOR' for testing any something... but, first I will open a dialog for display a message like "Please, wait a moment..."
OK, so why can't you use my code sample to do that? Here is another example closer to what you describe (still using a modal dialog).
James
#include "fivewin.ch" function main() local oWnd define window oWnd activate window oWnd on init doit() return nil function doit() local oDlg, oBtn define dialog oDlg activate dialog oDlg on init (oDlg:show(), dowhatever(), oDlg:end()) return nil function doWhatever() waitSeconds( 3 ) return nil
Julio,
>The sequence (oDlg:show(), dowhatever(), oDlg:end() ) needs to calling on main window.
Please describe in more detail.
Are you trying to create controls on the main window or something?
James
James, is like a progressbar dialog!!!
It is show and the process stay into the dialog if call her!
Julio,
>James, is like a progressbar dialog!!!
>It is show and the process stay into the dialog if call her!
So put the progress bar on the dialog and update it from the process.
James
James Bott wrote:Julio,
>The sequence (oDlg:show(), dowhatever(), oDlg:end() ) needs to calling on main window.
Please describe in more detail.
Are you trying to create controls on the main window or something?
James
>The process needs stay in the main window...
Do you mean that you want to put a progress bar on the main window? Something else? Please explain.
James
James Bott wrote:>The process needs stay in the main window...
Do you mean that you want to put a progress bar on the main window? Something else? Please explain.
James
#include "fivewin.ch"
function main()
local oWnd
define window oWnd
set message to "Press F1 for help" of oWnd
activate window oWnd maximized on init doit()
return nil
function doit()
local oDlg
define dialog oDlg
@ 1,1 say "Please wait..."
activate dialog oDlg center ;
on init (oDlg:show(), oDlg:setFocus(), sysrefresh(), dowhatever(), oDlg:end())
return nil
function doWhatever()
wndMain():oMsgBar:setMsg("3 seconds remaining...")
waitSeconds(1)
wndMain():oMsgBar:setMsg("2 seconds remaining...")
waitSeconds(1)
wndMain():oMsgBar:setMsg("1 seconds remaining...")
waitSeconds(1)
return nil