flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Wink 6.92.03 (vertical selection + compiling) Goto page Previous 1, 2, 3 ... 16, 17, 18, 19, 20, 21 Next |
Author |
|
ouadji 12 Jun 2011, 21:24
@madmatt ---> (it's for you) Code: lf_ LOGFONT myfont db 'arial',0 iPixelsPerInch dd ? iPointSize dd ? struct LOGFONT lfHeight dd ? lfWidth dd ? lfEscapement dd ? lfOrientation dd ? lfWeight dd ? lfItalic db ? lfUnderline db ? lfStrikeOut db ? lfCharSet db ? lfOutPrecision db ? lfClipPrecision db ? lfQuality db ? lfPitchAndFamily db ? lfFaceName TCHAR 32 dup (?) ends ;-------------------------------------------------------------- invoke GetDC,NULL push eax ;for "ReleaseDC" below invoke GetDeviceCaps,eax,LOGPIXELSY mov [iPixelsPerInch],eax mov esi,myfont mov edi,lf_.lfFaceName .str_cpy: lodsb stosb or al,al jnz .str_cpy mov [lf_.lfWeight],500 mov [lf_.lfItalic],FALSE mov ebx,72 xor edx,edx mov [iPointSize],12 mov eax,[iPixelsPerInch] mul [iPointSize] div ebx mov [lf_.lfHeight],eax invoke ReleaseDC,NULL invoke CreateFontIndirect,lf_ mov [myFontHandle],eax ;-------------------------------------------------------------- proc Callback_setfont hwnd,lparam push ebx esi edi invoke SendMessage,[hwnd],WM_SETFONT,[lparam],0 mov eax,TRUE pop edi esi ebx ret endp ;-------------------------------------------------------------- proc xxx hwnd_dlg,msg,wparam,lparam ; DialogBox push ebx esi edi mov eax,[msg] cmp eax,WM_INITDIALOG je .initdialog ..... .initdialog: invoke EnumChildWindows,\ [hwnd_dlg],Callback_setfont,[myFontHandle] |
|||
12 Jun 2011, 21:24 |
|
ouadji 12 Jun 2011, 21:37
Quote: I thought you are going to build a complete ide |
|||
12 Jun 2011, 21:37 |
|
madmatt 13 Jun 2011, 12:37
Thanks for the code!
Quote: Wink is at first an experimental IDE, and The dialog feature you seem to have worked out already. The only other feature I would want is a different color for the mmx, xmmx, ymmx registers. Doesn't seem to be to hard to add, or am I wrong? This would be it for me. |
|||
13 Jun 2011, 12:37 |
|
ouadji 13 Jun 2011, 14:45
(Sorry for my bad English, I'll try to do my best) indeed, not hard to add different colors for the mmx, xmm.... registers but there is a problem, The problem is that I have only colors ... I can't use italic words or underlined words. It is difficult to identify as many different things with only the colors. It Is necessary in this case, to use the shades of colors, ... dark, clear, and even between the two. This does not give a good result. To highlight much more things, it should be used another characteristic that the color. [EDIT] after considering it, I am trying to solve your request and add this feature in next wink. A different color for mmx/sse2 registers ... ok. [/EDIT] |
|||
13 Jun 2011, 14:45 |
|
ouadji 13 Jun 2011, 21:26
like this ? (I hope you see the picture) |
|||
13 Jun 2011, 21:26 |
|
LocoDelAssembly 13 Jun 2011, 23:09
ouadji, what are the colors for "mov eax, [some_label]" and "fadd st, st1"?
I like the colors, BTW. |
|||
13 Jun 2011, 23:09 |
|
ouadji 13 Jun 2011, 23:31
for now ... like that. But , do you also want a different color for the FPU registers ? (st,st0->st7) it's possible! just ask! |
|||
13 Jun 2011, 23:31 |
|
ouadji 14 Jun 2011, 10:29
italic and underline ... yeaah ... the world is mine! Lucida Console/Standard/14 yes, it's ugly, but it's just for a test |
|||
14 Jun 2011, 10:29 |
|
madmatt 14 Jun 2011, 11:52
ouadji wrote:
That looks good, thanks! _________________ Gimme a sledge hammer! I'LL FIX IT! |
|||
14 Jun 2011, 11:52 |
|
idle 14 Jun 2011, 13:10
ouadji wrote: But , do you also want a different color for the FPU registers ? :) consolas and lucida seem cool as for me ;] |
|||
14 Jun 2011, 13:10 |
|
LocoDelAssembly 14 Jun 2011, 15:41
Quote:
|
|||
14 Jun 2011, 15:41 |
|
revolution 14 Jun 2011, 15:48
How about allowing the user to decide the colours & formatting with a dialogue box. Store them in the .ini file.
|
|||
14 Jun 2011, 15:48 |
|
LocoDelAssembly 14 Jun 2011, 15:55
Well, I was counting on that actually, but still, you need decent default colors.
|
|||
14 Jun 2011, 15:55 |
|
ouadji 14 Jun 2011, 19:20
Quote: How about allowing the user to decide the colours & formatting with a dialogue box. @revolution : it's already done! |
|||
14 Jun 2011, 19:20 |
|
ouadji 06 Jul 2011, 20:12
Wink 6.91 many changes with Wink691 (Control Panel / Effects) many flaws of behavior and code are fixed. wink690 is more polished, more powerful and more stable Last edited by ouadji on 08 Jul 2011, 21:26; edited 1 time in total |
|||
06 Jul 2011, 20:12 |
|
dancho 07 Jul 2011, 10:01
looking good,
nice work ouadji... |
|||
07 Jul 2011, 10:01 |
|
idle 08 Jul 2011, 07:32
i_can_not_see_underscore_sign_is_it_because_of_italic_font?
i_can_not_see_underscore_sign_is_it_because_of_italic_font?
|
||||||||||
08 Jul 2011, 07:32 |
|
ouadji 08 Jul 2011, 08:11
Yes indeed, all fonts are not able to display underlined characters (and the underscore is just an underlined space) for example, Courier New: size 08 : does not work size 09 : does not work size 10 : ok size 11 : ok size 12 : does not work size 14 : ok size 16 : ok Consolas: size 08 : ok size 09 : ok size 10 : ok size 11 : ok size 12 : ok size 14 : ok size 16 : ok |
|||
08 Jul 2011, 08:11 |
|
idle 08 Jul 2011, 11:19
amazing
|
|||
08 Jul 2011, 11:19 |
|
Goto page Previous 1, 2, 3 ... 16, 17, 18, 19, 20, 21 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.