hi,
Firstly, sorry if i posted this here because i have some trouble creating new post in the forum..
i like the Akelpad Classic program because of the simplicity but when i try to use it the line spacing for the edited text was too tight. And when i try to search for the solution int this forum there was no available.
So i try to find my own solution and so far it works as expected. I would like to share here so anybody that have the same solution, but you have to rebuild the program yourself:
Code: Select all
{
CHARFORMAT2 cf;
PARAFORMAT2 pf;
ZeroMemory(&cf, sizeof(cf));
cf.cbSize = sizeof(cf);
SendMessage(hWndEdit, EM_GETCHARFORMAT, SCF_DEFAULT, (LPARAM) &cf);
ZeroMemory(&pf, sizeof(pf));
pf.cbSize = sizeof(pf);
pf.dwMask = PFM_LINESPACING;
pf.bLineSpacingRule = 4;
pf.dyLineSpacing = cf.yHeight + cf.yHeight; // double linespacing
SendMessage(hWndEdit, EM_SETPARAFORMAT, 0, (LPARAM) &pf);
}
Insert the code above in the file akelpad.cpp line 242 and then rebuild. Its that simple.
It would be great if the devteam could add this functionality in the menu so it can be change at run time.
cheers
