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
Thread Post new topic Reply to topic
Teehee



Joined: 05 Aug 2009
Posts: 570
Location: Brazil
Teehee 12 Jun 2011, 21:23
its ok. its good for coders have a good workflow. But as experiment is ok so. I thought you are going to build a complete ide =)


Last edited by Teehee on 12 Jun 2011, 21:29; edited 3 times in total
Post 12 Jun 2011, 21:23
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 12 Jun 2011, 21:24

@madmatt ---> (it's for you) Wink
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]

    

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 12 Jun 2011, 21:24
View user's profile Send private message Send e-mail Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 12 Jun 2011, 21:37
Quote:
I thought you are going to build a complete ide
Wink is more than just an IDE! Razz Wink

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 12 Jun 2011, 21:37
View user's profile Send private message Send e-mail Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 13 Jun 2011, 12:37
Thanks for the code!
Quote:
Wink is at first an experimental IDE, and
make it a traditional IDE does not interest me at all ! sorry.


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.
Post 13 Jun 2011, 12:37
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
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]

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 13 Jun 2011, 14:45
View user's profile Send private message Send e-mail Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 13 Jun 2011, 21:26

like this ?

(I hope you see the picture)

Image

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 13 Jun 2011, 21:26
View user's profile Send private message Send e-mail Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
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.
Post 13 Jun 2011, 23:09
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
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! Wink


Image

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 13 Jun 2011, 23:31
View user's profile Send private message Send e-mail Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 14 Jun 2011, 10:29

italic and underline ... yeaah ... the world is mine! Razz


Lucida Console/Standard/14
yes, it's ugly, but it's just for a test


Image

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 14 Jun 2011, 10:29
View user's profile Send private message Send e-mail Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 14 Jun 2011, 11:52
ouadji wrote:

italic and underline ... yeaah ... the world is mine! Razz


Lucida Console/Standard/14
yes, it's ugly, but it's just for a test


Image


That looks good, thanks!

_________________
Gimme a sledge hammer! I'LL FIX IT!
Post 14 Jun 2011, 11:52
View user's profile Send private message Reply with quote
idle



Joined: 06 Jan 2011
Posts: 440
Location: Ukraine
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 ;]
Image
Post 14 Jun 2011, 13:10
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 14 Jun 2011, 15:41
Quote:

But , do you also want a different color for the FPU registers ?
Not sure actually Confused For MMX and SSE you seem to have given them a different color, but not sure if giving FPU registers a different color than that of GPRs is actually needed.
Post 14 Jun 2011, 15:41
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20303
Location: In your JS exploiting you and your system
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.
Post 14 Jun 2011, 15:48
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 14 Jun 2011, 15:55
Well, I was counting on that actually, but still, you need decent default colors.
Post 14 Jun 2011, 15:55
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 14 Jun 2011, 19:20
Quote:
How about allowing the user to decide the colours & formatting with a dialogue box.
Store them in the .ini file

@revolution : it's already done!


Image

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 14 Jun 2011, 19:20
View user's profile Send private message Send e-mail Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
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

_________________
I am not young enough to know everything (Oscar Wilde)- Image


Last edited by ouadji on 08 Jul 2011, 21:26; edited 1 time in total
Post 06 Jul 2011, 20:12
View user's profile Send private message Send e-mail Reply with quote
dancho



Joined: 06 Mar 2011
Posts: 74
dancho 07 Jul 2011, 10:01
looking good,
nice work ouadji...
Post 07 Jul 2011, 10:01
View user's profile Send private message Reply with quote
idle



Joined: 06 Jan 2011
Posts: 440
Location: Ukraine
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?


Description:
Filesize: 7.73 KB
Viewed: 11022 Time(s)

2011-07-08_103123.png


Post 08 Jul 2011, 07:32
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
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



Image

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 08 Jul 2011, 08:11
View user's profile Send private message Send e-mail Reply with quote
idle



Joined: 06 Jan 2011
Posts: 440
Location: Ukraine
idle 08 Jul 2011, 11:19
amazing
Image
Post 08 Jul 2011, 11:19
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3 ... 16, 17, 18, 19, 20, 21  Next

< 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.