flat assembler
Message board for the users of flat assembler.

flat assembler > Main > Sorry. But i not found examples how using FEDIT.DLL

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 389
I want use only FEDIT.DLL in my window program, witch highlighting text.
I not need compile code to asm. A mean whithout FASM.dll
Only for text.

Interesting simple sample how use FEDIT.DLL.
And where is get last version FEDIT.DLL ?
Post 21 Jul 2018, 16:38
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6996
Location: Kraków, Poland
The FEDIT.DLL source is in the FASM.DLL package. This is simply a wrapper for the FEDIT control that comes with a standard FASMW package, so you just put FEDIT.ASM in the same directory as FASMW sources and it can be assembled then.

As for the examples, the example that comes with FASM.DLL does not use any syntax highlighting. But you could extract the syntax highlighting function from FASMW.ASM - I have done that and created the attached example.


Description: A quickly patched-up FEDIT example
Download
Filename: feditdemo.zip
Filesize: 14.61 KB
Downloaded: 71 Time(s)

Post 21 Jul 2018, 18:48
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 389
Cool ! Big thanks !
Post 21 Jul 2018, 18:59
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 389
Problem with change fonts. When i am set Broadway font in fasm edit window
chars draw not full and cursor bug with offset next char.

And how change font size ?
And how using FEM_SETRIGHTCLICKMENU ? Please explain in example.
Post 25 Jul 2018, 09:15
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6996
Location: Kraków, Poland
Roman wrote:
Problem with change fonts. When i am set Broadway font in fasm edit window
chars draw not full and cursor bug with offset next char.
The font needs to have a FIXED_PITCH attribute (meaning that it is a monospaced font). Look at the ChooseFont dialog used in FASMW - it has the CF_FIXEDPITCHONLY flag set.

Roman wrote:
And how change font size ?
You set the size up with the other parameters when preparing font with CreateFont.

Roman wrote:
And how using FEM_SETRIGHTCLICKMENU ? Please explain in example.
WPARAM should be the handle of menu (you usually load it from resource with LoadMenu) and LPARAM should be the handle of the window that needs to receive the WM_COMMAND messages from the menu.
Post 25 Jul 2018, 09:34
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.