ALERT() replacement.

Post Reply
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

ALERT() replacement.

Post by HunterEC »

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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Gustavo,

FiveWin also provides an Alert() function:

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

A working sample:

Code: Select all

#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
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Post by HunterEC »

Thank you Antonio & Enrico.
Post Reply