At 10:55 AM 8/3/2011, vedit-betatest Listmanager wrote:
>It seems to me that you can not push-pop #124 in loadsyn.vdm.
>Loadsyn.vdm saves some starting positions in registers #111...#124 and Vedit probably expects those values to be there when loadsyn.vdm exits.
(BTW - Webboard is having problems, and this tread appears to be completely broken.)
I fixed this today by internally saving/restoring #111 thru #124.
Hopefully there will be no other conflicts with Syntax_Load.
-----
Concerning .ini files:
* I also changed compdir.vdm to use macros.ini instead of user_mac.ini.
* The default is now user-mac.ini
-----
Concerning fonts:
* The vedit.ini "Charset=" now supports all defined character sets (previously just ANSI and OEM).
The code is:
//
// Define the keys and strings for Window's character sets.
//
#define NUM_CHARSETS 20
struct charsets {
int key;
char name[16];
};
struct charsets Font_Charsets[NUM_CHARSETS] = {
ANSI_CHARSET, "ANSI",
BALTIC_CHARSET, "BALTIC",
CHINESEBIG5_CHARSET, "CHINESEBIG5",
DEFAULT_CHARSET, "DEFAULT",
EASTEUROPE_CHARSET, "EASTEUROPE",
GB2312_CHARSET, "GB2312",
GREEK_CHARSET, "GREEK",
HANGUL_CHARSET, "HANGUL",
MAC_CHARSET, "MAC",
OEM_CHARSET, "OEM",
RUSSIAN_CHARSET, "RUSSIAN",
SHIFTJIS_CHARSET, "SHIFTJIS",
SYMBOL_CHARSET, "SYMBOL",
TURKISH_CHARSET, "TURKISH",
VIETNAMESE_CHARSET, "VIETNAMESE",
JOHAB_CHARSET, "JOHAB",
ARABIC_CHARSET, "ARABIC",
HEBREW_CHARSET, "HEBREW",
THAI_CHARSET, "THAI",
0, "UNKNOWN"
};
When reading the vedit.ini file:
//
// Decode the Charset from a string into Window's key value.
//
GetPrivateProfileString( pszSection, "Charset", "ANSI", sz, 16, lpVEDITINI );
key = ANSI_CHARSET;
for (i = 0; i< NUM_CHARSETS; i++) {
if (lstrcmpi( sz, Font_Charsets[i].name) == 0 ) {
key = Font_Charsets[i].key;
break;
}
}
plogfont->lfCharSet = key;
When writing the vedit.ini file:
//
// Convert the Charset from the Window's key value into a friendly string
//
lstrcpy( szProfile, "UNKNOWN" ); //Just in case
for (i = 0; i< NUM_CHARSETS; i++) {
if (plogfont->lfCharSet == Font_Charsets[i].key) {
lstrcpy( szProfile, Font_Charsets[i].name );
break;
}
}
WritePrivateProfileString( pszSection, "Charset", szProfile, lpVEDITINI );
------
Thanks again for all the feedback and macro improvements.
Ted.
Ted.
-------------------------------------------------------------------------
Ted Green (support@...) Greenview Data, Inc.
Web: www.... 8178 Jackson Rd., Ann Arbor, MI
Tel: (734) 426-7500 Fax: 734-426-7510 VEDIT - Text/Data/Binary Editor
-------------------------------------------------------------------------
|
|