Great news ! In scanning the ChangeLog dated 22nd Feb 2011 that came with HB2.1, i found this gem
2011-01-10 20:02 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/gtgui/gtgui.c
+ added basic support for redirecting ALERT() to MessageBox() in
MS-Windows GTGUI builds. Please remember that MessageBox() supports
only few predefined buttons so it's not possible to show all user
options. Anyhow it should be enough to present error messages
generated by default error handler.
I am sure you know what this means to Clipper programmers migrating their codes to Harbour :-)
Just tested Alert() as in :-
nchoice := Alert( 'Print or Display &mreptname', { 'PRINT', 'DISPLAY', 'CANCEL' } )
Observations
============
1. Can handle up to 3 buttons. If a 4th button is added to the array of choices, only 1 button will show up
2. No Window title
3. No Icon
No comments:
Post a Comment