flat assembler
Message board for the users of flat assembler.
Index
> Windows > Text editor template Goto page 1, 2 Next |
Author |
|
vbVeryBeginner 27 Dec 2004, 20:48
i would suggest you to read the iczeliion tutorial 33 34 and 35
it covers a lot actually from start to color syntax :-p btw, sorry for waking u up :-p |
|||
27 Dec 2004, 20:48 |
|
iklin 28 Dec 2004, 10:22
Yes, I read it yet but...
|
|||
28 Dec 2004, 10:22 |
|
sina 29 Dec 2004, 00:02
when i try wordwrap it did not work but the font has changed, then with clicking wordwrap 2nd time it worked
|
|||
29 Dec 2004, 00:02 |
|
iklin 29 Dec 2004, 06:13
Yes... This is the problem that I can't solve right now. I have to think hard. This is cause I ask somebody who can tell me where I'm wrong.
P.S. Bad English, I'm hurry |
|||
29 Dec 2004, 06:13 |
|
Madis731 29 Dec 2004, 09:33
Sorry, I tryed, but its hard to read your code - better overcommented than undercommented
Code: invoke GetWindowText, [hedit], [.mem], [.ln] invoke DestroyWindow, [hedit] What do you gain with that? Code: ;invoke SendMessage, [hedit], WM_SETFONT, [hfont], TRUE maybe you SHOULDN't change font? Did the value of hfont get lost somewhere? P.S. The font-change bug happens only once! Try changing the font yourself (I put Courier New for ecample) then hit F8 or select wordwrap or sth... look! the Courier remains and the wordwrap toggles But you notice one glitch - the selector is put in the beginning. Oh well its complicated - steps follow: 1) type sth like "Mfagker kjbg akr bkeregr kh beakhg over the edge..." IF you have NOT selected the font yourself!!! then the [hfont] has not been set yet so some strange font is selected like 0 or I don't know 2) Hit F8 (or Options->WordWrap) now from the previous code I assume that the windows is destroyed and a new one is created with this text so if you have selected a new font - you'll have it, but otherwise it will change to some freaky default font. The first time Wordwrap don't work, but every other time it toggles WITHOUT affecting the font. Code: hfont dd ? Declare something? |
|||
29 Dec 2004, 09:33 |
|
Madis731 29 Dec 2004, 10:33
Ok, I checked a little closer (OllyDbg) and I realized that the same loop is ran twice with difference in actions taken:
Code: cmp [wordwraped], 0 je .wrap mov [wordwraped], 0 mov ebx, WS_VISIBLE + WS_CHILD + ES_LEFT + ES_NOHIDESEL + ES_MULTILINE + \ WS_VSCROLL + ES_AUTOVSCROLL jmp .no_wrap .wrap: mov [wordwraped], 1 mov ebx, WS_VISIBLE + WS_CHILD + ES_LEFT + ES_NOHIDESEL + ES_MULTILINE + \ WS_VSCROLL + ES_AUTOVSCROLL + WS_HSCROLL + ES_AUTOHSCROLL .no_wrap: If you set the wordwraped variable to ONE at the beginning you're set. I couldn't test it because I had trouble compiling it I think THIS code can also deal with your problem: Code: mov ebx, WS_VISIBLE + WS_CHILD + ES_LEFT + ES_NOHIDESEL + ES_MULTILINE + \ WS_VSCROLL + ES_AUTOVSCROLL cmp [wordwraped], 0 mov [wordwraped], 1 ;mov does not change flags jne .no_wrap mov [wordwraped], 1 mov ebx, WS_VISIBLE + WS_CHILD + ES_LEFT + ES_NOHIDESEL + ES_MULTILINE + \ WS_VSCROLL + ES_AUTOVSCROLL + WS_HSCROLL + ES_AUTOHSCROLL .no_wrap: Again sorry - I weren't able to compile your code (seems to be with Fresh roots) and I could only change running code on-the-fly with OllyDbg. |
|||
29 Dec 2004, 10:33 |
|
iklin 29 Dec 2004, 18:11
Now thanx. I look into your suggestions later now I so tired...
Fresh: I use only globals.inc and display.inc. I find it useable in some cases. I look into iszelion's tuts and now 'find text' works almost good. |
|||
29 Dec 2004, 18:11 |
|
vbVeryBeginner 29 Dec 2004, 21:33
btw, iklin, i think they should run a notepad replacement competition :p
i guess it would be a really nice experience to see those OS coders to do something like 512kb notepad :-p anyway, what is ur notepad name? -? iklin notepad? <- no good :-p |
|||
29 Dec 2004, 21:33 |
|
iklin 30 Dec 2004, 07:29
2 vbVeryBeginner:
Notepad name? It's not so important. Just now - "Text editor template" 512kb notepad? It'll be funny if somebody could implement that |
|||
30 Dec 2004, 07:29 |
|
vbVeryBeginner 30 Dec 2004, 13:42
lol, forgetting a "dot" make a big difference :p
how bout 5.12 kb notepad ;} sure, they could code a 512 bytes notepad... em.. well, let see :-p |
|||
30 Dec 2004, 13:42 |
|
iklin 06 Jan 2005, 19:40
Some progress in Text Editor Template...
I'm just learning and train my brain - Find, Replace, Goto line, Selection bar, (Un)Comment - no Word wrap - no cleanup, no optimization in source Any remarks are welcome! But I can't upload it! It's me or forum? |
|||
06 Jan 2005, 19:40 |
|
iklin 07 Jan 2005, 16:58
New version with some new features added:
Drag'n'Drop, Insert File, CmdLine, New Instance... Any remarks are welcome!
|
|||||||||||
07 Jan 2005, 16:58 |
|
vbVeryBeginner 07 Jan 2005, 17:26
hi iklin,
i downloaded ur TET :p and they look nice. i preffer ur comment style, where one Ctrl + T to handle the comment and uncomment feature, maybe zibu should have somthing like that too :p and the way ur TET history is nice, maybe i should have something like that also :p btw, i tried ur TET with a 500 MB files opened and it crashes, the good thing is, ur TET process could be killed using the process viewer. and one more good thing is, i tried that with FASMW as well, and u see, it crashes the WHOLE system, unable to shutdown the process, and eventually have to use the RESET button on pc casing :p you could try it urself, but plez save all ur files first :p * actually this is retype, coz FASMW crashed my whole system :p |
|||
07 Jan 2005, 17:26 |
|
f0dder 07 Jan 2005, 17:29
vbVeryBeginner, are you using Win9x?
|
|||
07 Jan 2005, 17:29 |
|
vbVeryBeginner 07 Jan 2005, 17:48
yup, loyal win95 customer
|
|||
07 Jan 2005, 17:48 |
|
f0dder 07 Jan 2005, 18:06
Ah, I though you would be using some 9x version since you could crash the OS with a usermode app
|
|||
07 Jan 2005, 18:06 |
|
iklin 07 Jan 2005, 21:25
vbVeryBeginner wrote: btw, i tried ur TET with a 500 MB files opened and it crashes OK I'll try it. But for what you need such big files?! vbVeryBeginner wrote: i tried that with FASMW as well, and u see, it crashes the WHOLE system You try to compile with fasmw? I use Far and console fasm. And you better use Win98 SE. It is more stable than Win95 and not so diferent. Untill 6 months ago I use P-100 with Win98SE and was happy. Now I'm using Celeron-2k with Win2k and still happy. |
|||
07 Jan 2005, 21:25 |
|
Madis731 07 Jan 2005, 22:24
Strange I haven't been able to crash FASMW on any system yet
2K/XP 98SE have been dealing with all kinds of codes - buggy and long and I'm even opening data-files with it. Its a LOT faster than notepad for example... I even tried compiling these HUGE examples, which took about 20sec to 6min... |
|||
07 Jan 2005, 22:24 |
|
vbVeryBeginner 08 Jan 2005, 05:00
no, just wanna see how the FASMW handle big files like 500MB,
i actually use console fasm to assemble btw, madis, i didn't use fasmw to open code, i use it to open a 500 MB binary files :p yup, fodder, we are not allowed to do weird thing with win95 :p, microsoft said that :p |
|||
08 Jan 2005, 05:00 |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.