ALERT() replacement.

ALERT() replacement.

Postby HunterEC » Tue May 27, 2008 7:42 am

What function is the ALERT() replacement, if any ? I need a function that displays a dialog to the user, centered in the current window, displaying the options supplied and returns which one the user picked. Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: ALERT() replacement.

Postby Enrico Maria Giordano » Tue May 27, 2008 7:53 am

Have a look at Msg*() functions family.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Tue May 27, 2008 8:38 am

Gustavo,

FiveWin also provides an Alert() function:

function Alert( cMsg, aOptions, cTitle, nDefault, xIcon ) --> nOption

A working sample:
Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

   local nOption

   nOption = Alert( "take an option",;
                    { "&One", "&Two", "T&hree" },;
                    "Please, select" )

   MsgInfo( nOption )

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41313
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby HunterEC » Tue May 27, 2008 8:54 am

Thank you Antonio & Enrico.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 9 guests