Pages: 1 2 3 [4]
|
 |
|
Author
|
Topic: RichMasm: an editor that remembers your formatting (Read 65142 times)
|
ToutEnMasm
Member
    
Gender: 
Posts: 1555
FA is a musical note to play with cl
|
By the way: I do use the open file dialog in RichMasm, without problems
This surely the only one problem you solve with it  To be serious , i think i will finally don't use the OFN_EXPLORER style with a multiple files selection or made a two versions of it to avoid the problems . Seems there is two many people who don't want to pay microsoft to have something working well.
|
|
|
Logged
|
|
|
|
jj2007
|
By the way: I do use the open file dialog in RichMasm, without problems
This surely the only one problem you solve with it  To be serious , i think i will finally don't use the OFN_EXPLORER style with a multiple files selection or made a two versions of it to avoid the problems . Seems there is two many people who don't want to pay microsoft to have something working well. I have no problems with OFN_EXPLORER. Maybe you should consider a hook: mov ofn.lpfnHook, HpDlg with HpDlg proc hwnd:DWORD, uMsg:DWORD, wParam:DWORD, lParam:DWORD For example, it is much more convenient if you can center the file dialog, enlarge it vertically, and select the detailed listview instead of the standard crap view supplied by Microsoft... and it doesn't crash: 
|
|
|
Logged
|
|
|
|
ToutEnMasm
Member
    
Gender: 
Posts: 1555
FA is a musical note to play with cl
|
Your openfilename dialog box is whithout the internet explorer style.She is standard.
The OFN_EXPLORER style show five buttons in the left panel .This allow to go to the desktop,the recent documents and so on. My problem is to know exactly which conditions are needed to show that.The comctl32.dll (version 6.02) seem needed if i remember well the first time i have encountered the problem.
|
|
|
Logged
|
|
|
|
jj2007
|
Your openfilename dialog box is whithout the internet explorer style.She is standard.
From my source: mov ofn.Flags, OFN_EXPLORER or OFN_HIDEREADONLY or OFN_ENABLEHOOK or OFN_ENABLESIZING The OFN_EXPLORER style show five buttons in the left panel .This allow to go to the desktop,the recent documents and so on. My problem is to know exactly which conditions are needed to show that.The comctl32.dll (version 6.02) seem needed if i remember well the first time i have encountered the problem.
> desktop,the recent documents For non-coding documents, the left panel might be useful. I chose not to use it.
|
|
|
Logged
|
|
|
|
ToutEnMasm
Member
    
Gender: 
Posts: 1555
FA is a musical note to play with cl
|
Your source can show the style,he had no effect because .....Something is missing .... in the resource.
|
|
|
Logged
|
|
|
|
jj2007
|
Your source can show the style,he had no effect because .....Something is missing .... in the resource.
I don't use a resource file. The recent docs is not "missing", it is deliberately omitted because I never use it.
|
|
|
Logged
|
|
|
|
jj2007
|
I stumbled into a strange phenomenon, most probably "by design": - imagine you have a small edit control (e.g. a find box) with style ES_MULTILINE or ES_AUTOHSCROLL- you write some text, then hit Enter - now what could be easier than an invoke SendMessage, hFind, WM_GETTEXT, 99, ptr2buffer? You are up for a surprise if and only if your text is larger than the edit control's width. In that case, what you get is not "MyLooongText" but rather 13, 10, "MyLooongText" ... and of course, the find box will not find anything. That bugdesign feature has driven me crazy for some time, but since I found out yesterday night by accident that it was linked to the length of the text, a solution was near: invoke SendMessage, hFind, EM_SETSEL, 0, 0 ; prevents deletion of current invoke SendMessage, hFind, EM_SCROLLCARET, 0, 0 ; selection and insertion of CrLf
If you have a current version of RichMasm, test it with the Find box. Afterwards, you may download the new version from the top of this thread 
|
|
|
Logged
|
|
|
|
jj2007
|
Update: MasmBasic added, plus minor improvements of the editor itself. Download the package from the top of the MasmBasic thread.
|
|
« Last Edit: October 07, 2009, 10:21:43 AM by jj2007 »
|
Logged
|
|
|
|
nathanpc
Guest
|
o_O That's cool! I'm going to try it! 
|
|
|
Logged
|
|
|
|
juozas
New Member

Gender: 
Posts: 19
|
On XP SP3 RichMasm from MasmBasic package throws an error on startup like this: --------------------------- Fatal error: --------------------------- GetLastError (line ??):
The handle is invalid.
--------------------------- OK --------------------------- Is there any way to fix this? Becouse now i can't run it totally. Thank you.
|
|
|
Logged
|
Сделано в СССР
|
|
|
jj2007
|
On XP SP3 RichMasm from MasmBasic package throws an error on startup like this: --------------------------- Fatal error: --------------------------- GetLastError (line ??):
The handle is invalid.
--------------------------- OK --------------------------- Is there any way to fix this? Becouse now i can't run it totally. Thank you. Thanks for the feedback, juozas. I am using XP SP2, so that might be the culprit. Could you please test the attached debug version? Extract to \masm32\RichMasm\richmasm.exe and tell me which error line. Thanks  P.S.: Note that the MasmBasic library works also with QEditor or good ol' Notepad etc - but using RichMasm is convenient because you can e.g. select Open and press F1 to get help on the Open command. There are also numerous keyboard shortcuts, such as deb for the powerful debug macro. EDIT: Please test the new attachment. Most probably, when using the original MasmBasic archive, you did not use the "use folder names" options of your unzipper and/or you did not extract to the Masm32 root folder. The MasmBasic/RichMasm package relies on being installed to \masm32\RichMasm\ and \masm32\MasmBasic\ More specifically, the editor should sit in \masm32\RichMasm\RichMasm.exe
|
|
« Last Edit: May 01, 2011, 11:41:30 PM by jj2007 »
|
Logged
|
|
|
|
juozas
New Member

Gender: 
Posts: 19
|
Yes, I extracted it with subfolders where it should reside, becouse I'm using 7-zip. It always extracts where files should be without problem, and, yes, RichMasm resides on \masm32\RichMasm. Will try the debug version then. Edit: Now it shown --------------------------- File not found: --------------------------- D:\masm32\RichMasm\Res\RecentFiles.ini not found!
Try to move RichMasm.exe to its native folder, i.e. to
\masm32\RichMasm\RichMasm.exe --------------------------- OK --------------------------- As i did not update MasmBasic Screenshot Attached Edit: Created a RecentFiles.ini with contents of full path to some file, now it works :)
|
|
|
Logged
|
Сделано в СССР
|
|
|
jj2007
|
Thanks a lot, Jouzas. I don't know at what point that bug crept in, but it needed to be fixed. New version posted here is OK, it will create the ini files if needed.
|
|
|
Logged
|
|
|
|
|
Pages: 1 2 3 [4]
|
|
|
 |