Message view-as alert-box skipping user input

jmac12

Member
if you put a message "TEST" view-as alert-box. can you wait for a certain amount of time for user input then close it down? not sure how this would be done any suggestions would be great cheers (progress 10.2b(
 
No.

You may be able to achieve what you want by displaying your message on a frame and using the PAUSE statement. The PAUSE statement will pause for a certain amount of time, but the user can press space-bar to continue. In addition, you could use the VIEW-AS phrase to make the frame a dialog box.

Eg:
Code:
display "TEST" with frame msgbox three-d view-as dialog-box.
pause 5.

/*continue processing...*/
 
Yeah thats kind of what i want.. though this is running at startup from a P file and a window is created behind the dialog-box (due to there being no existing window which it doesnt do with the message command) which i dont want and i have no idea how to get rid of it... I've also tried creating my own dialog-box but get the same issue any ideas?
 
It is default-window. You can control its caption and size, but cant hide totally.

default-window:Title = "My application".
default-window:height-chars = 1.
default-window:width-chars = 100.
default-window:bgcolor = 15.

You can display message inside this window for your task.
 
well I've created a window now, which really i should of done in the first place cheers for you help though.
 
Back
Top