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
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 nil
James 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
- Code: Select all Expand view RUN
#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
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
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
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 54 guests