Is there a function equivalent to the DOS ALERT ?

Is there a function equivalent to the DOS ALERT ?

Postby HunterEC » Wed Sep 01, 2010 6:27 pm

Guys:

I'm looking for a function where I can pass a message and an array of options to be displayed to the end user, i.e. Clipper 5.2 ALERT(). For example:
Code: Select all  Expand view
nSel := ALERT("Message to be displayed", {"Option 1", "Option 2", "Option n"}, cColor)


It should return the option that the user selected or in defect 0 for not choosing. If I can set the function color via the cColor argument, it will be great. Any ideas or suggestions ? Thanks.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Is there a function equivalent to the DOS ALERT ?

Postby nageswaragunupudi » Wed Sep 01, 2010 9:36 pm

Just use that function. It works with FWH also.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10628
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Is there a function equivalent to the DOS ALERT ?

Postby ukoenig » Wed Sep 01, 2010 9:47 pm

Maybe You preferring a Visual-Design.
For individual looking Message-Boxes, I use VTitles with Button-Action. That looks much better.
You can use the VTitle-Painter, to create it.

Image

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Is there a function equivalent to the DOS ALERT ?

Postby HunterEC » Thu Sep 02, 2010 6:05 am

Thank you nageswaragunupudi & Uwe:

Now, nageswaragunupudi, how can I change the default color to the ALERT funtion ?

Uwe:

Where I can find the VTitles & VTitle-Painter ? Any examples ?

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

Re: Is there a function equivalent to the DOS ALERT ?

Postby ukoenig » Thu Sep 02, 2010 8:10 am

You can Download and read Infos from here :

viewtopic.php?f=3&t=18181&

( Please read the Infos from the Post above )

Download Tools ( 4.4 MB )
( The Subdirectory /Export is included )
http://www.pflegeplus.com/fw_downloads/VTTools5_2.zip

Download Sets ( Update changed BMP-Template-Preview in xBrowse to JPG )
Size : 1.7 MB
http://www.pflegeplus.com/fw_downloads/Set1.zip
Size : 3.0 MB
http://www.pflegeplus.com/fw_downloads/Set2.zip
Size : 1.0 MB
http://www.pflegeplus.com/fw_downloads/Set3.zip
Size : 2.9 MB
http://www.pflegeplus.com/fw_downloads/Set4.zip


Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 75 guests