flat assembler
Message board for the users of flat assembler.
Index
> Main > Sorry. But i not found examples how using FEDIT.DLL Goto page 1, 2 Next |
Author |
|
Tomasz Grysztar 21 Jul 2018, 18:48
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.
|
|||||||||||
21 Jul 2018, 18:48 |
|
Roman 21 Jul 2018, 18:59
Cool ! Big thanks !
|
|||
21 Jul 2018, 18:59 |
|
Roman 25 Jul 2018, 09:15
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. |
|||
25 Jul 2018, 09:15 |
|
Tomasz Grysztar 25 Jul 2018, 09:34
Roman wrote: Problem with change fonts. When i am set Broadway font in fasm edit window Roman wrote: And how change font size ? Roman wrote: And how using FEM_SETRIGHTCLICKMENU ? Please explain in example. |
|||
25 Jul 2018, 09:34 |
|
Roman 21 Feb 2019, 18:02
About:
FEM_SETPOS mean set text line ? If i have 100 text lines. And i want set carret to 80 line. FEM_GETPOS FEM_FINDFIRST FEM_FINDNEXT FEM_GETSEARCHTEXT its mean in my buffer copy find text ? I right understood ?: Code: .data pString db 'Find word',0 .code invoke SendMessage,[hwnd],FEM_FINDFIRST,0,pString ;whatch in eax return ? invoke SendMessage,[hwnd],FEM_SETPOS,0,80 ;this crash |
|||
21 Feb 2019, 18:02 |
|
Tomasz Grysztar 21 Feb 2019, 18:53
FEM_GETPOS/FEM_SETPOS expect FEPOS structure passed through pointer in wparam:
Code: struct FEPOS selectionPosition dd ? selectionLine dd ? caretPosition dd ? caretLine dd ? ends As for FEM_FINDFIRST/FEM_FINDNEXT, they return boolean value, telling whether text has been found or not. The selection and caret are automatically moved to the boundaries of found text. |
|||
21 Feb 2019, 18:53 |
|
Roman 22 Feb 2019, 05:00
Problem. FEDIT window back on main window.
And I must press Alt+Tab to see FEDIT window. When I click on main window FEDIT disappears and I must again press Alt+Tab to see FEDIT window. How fix this ? "Edit" window work fine and not disappears Code: invoke CreateWindowEx,WS_EX_LAYERED,_fedit,_title,\ WS_VISIBLE+WS_POPUP+WS_VSCROLL+WS_HSCROLL+ FES_CONSOLECARET+FES_AUTOINDENT+FES_OPTIMALFILL+FES_TIMESCROLL, \ 128,128,512,512,NULL,NULL,[wc.hInstance],NULL Last edited by Roman on 22 Feb 2019, 05:19; edited 1 time in total |
|||
22 Feb 2019, 05:00 |
|
Roman 22 Feb 2019, 05:15
I fix.
WS_EX_LAYERED+WS_EX_TOPMOST Now work fine. |
|||
22 Feb 2019, 05:15 |
|
Tomasz Grysztar 22 Feb 2019, 10:11
Unless you do something unusual, you should create FEDIT as a child of your main window:
Code: invoke CreateWindowEx,WS_EX_LAYERED,_fedit,_title,WS_CHILD+\ WS_VISIBLE+WS_POPUP+WS_VSCROLL+WS_HSCROLL+ FES_CONSOLECARET+FES_AUTOINDENT+FES_OPTIMALFILL+FES_TIMESCROLL, \ 128,128,512,512,[main_hwnd],NULL,[wc.hInstance],NULL |
|||
22 Feb 2019, 10:11 |
|
Roman 25 Feb 2019, 08:36
How get selected text from FEDIT ?
I know WM_COPY. Is exist another way get selected text ? And how work invoke SendMessage,[hwnd_fedit],FEM_GETWORDATCARET,2,TextBuffer ? |
|||
25 Feb 2019, 08:36 |
|
Tomasz Grysztar 25 Feb 2019, 09:44
Yes, to get the selected text exactly, WM_COPY is the only way. Alternatively you can use FEM_GETPOS to find the line numbers and then FEM_GETLINELENGTH/FEM_GETLINE to get contents of individual lines.
For FEM_GETWORDATCARET wparam is the length of the buffer and lparam points to the buffer. The buffer is filled with a single word that the cursor is currently at (for example F1 key in fasmw uses this function). |
|||
25 Feb 2019, 09:44 |
|
Roman 14 Dec 2020, 08:20
Where to get FEDIT.dll 64 bit ?
|
|||
14 Dec 2020, 08:20 |
|
Roman 14 Dec 2020, 09:00
Or only exists 32 bit FEDIT.DLL
|
|||
14 Dec 2020, 09:00 |
|
revolution 14 Dec 2020, 09:18
fasm is 32-bit. fasmw is 32-bit. fedit.dll is 32-bit.
|
|||
14 Dec 2020, 09:18 |
|
Roman 14 Dec 2020, 13:16
How set font size for FEDIT ?
I mean this: invoke SendMessage,[FEDIThwnd],SetFontSize,0,22 I try CreateFont and this work ! Code: FontName db 'Courier New',0 CLEARTYPE_QUALITY = 5 invoke CreateFont, 27, 0, 0, 0, 0,0,0,0,DEFAULT_CHARSET, OUT_RASTER_PRECIS, CLIP_DEFAULT_PRECIS,\ CLEARTYPE_QUALITY,FIXED_PITCH , FontName invoke SendMessage,[FEDIThwnd],WM_SETFONT,eax,1 |
|||
14 Dec 2020, 13:16 |
|
Roman 14 Dec 2020, 15:35
How send message FEDIThwnd undo and redo ?
|
|||
14 Dec 2020, 15:35 |
|
Ali.Z 15 Dec 2020, 01:59
it really confuses me, like what do you want to achieve with fedit.dll?
there is no big use of fedit.dll, its only used to be a dialog manager in case of asmdemo. _________________ Asm For Wise Humans |
|||
15 Dec 2020, 01:59 |
|
revolution 15 Dec 2020, 05:19
fasmw uses fedit for the main editing window.
|
|||
15 Dec 2020, 05:19 |
|
Roman 15 Dec 2020, 08:32
Oh ! Its easy.
WM_UNDO WM_CUT FEM_REDO |
|||
15 Dec 2020, 08:32 |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.