FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Is there a function equivalent to the DOS ALERT ?
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Is there a function equivalent to the DOS ALERT ?
Posted: Wed Sep 01, 2010 06: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 (fw): Select all Collapse
 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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Is there a function equivalent to the DOS ALERT ?
Posted: Wed Sep 01, 2010 09:36 PM

Just use that function. It works with FWH also.

Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Is there a function equivalent to the DOS ALERT ?
Posted: Wed Sep 01, 2010 09: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.



Best Regards
Uwe :-)
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.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Is there a function equivalent to the DOS ALERT ?
Posted: Thu Sep 02, 2010 06: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.

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Is there a function equivalent to the DOS ALERT ?
Posted: Thu Sep 02, 2010 08:10 AM

You can Download and read Infos from here :

viewtopic.php?f=3t=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.

Continue the discussion