flat assembler
Message board for the users of flat assembler.

Index > Windows > Flat edit control

Author
Thread Post new topic Reply to topic
f0x1er



Joined: 01 Feb 2005
Posts: 12
Location: Russia, Staryy Oskol
f0x1er 01 Feb 2005, 16:39
Hello!

I always liked interfaces in many crakcs and keygens, in which edit controls look flat as buttons. Maybe it's an idiot question, but how to do this Smile
Post 01 Feb 2005, 16:39
View user's profile Send private message ICQ Number Reply with quote
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
mike.dld 01 Feb 2005, 18:03
Try this, also w/o WS_BORDER:

Code:
...
  _class2 db 'EDIT',0
...
        invoke  CreateWindowEx,0,_class2,NULL,WS_VISIBLE+WS_CHILD+WS_BORDER,\
          5,5,75,25,[hParent],NULL,[hinstance],NULL
...
proc WindowProc, hwnd,wmsg,wparam,lparam
...
        cmp     [wmsg],WM_CTLCOLOREDIT
        je      wmctlcoloredit
...
  wmctlcoloredit:
        invoke  SetTextColor,[wparam],0x00666666
        invoke  SetBkColor,[wparam],0x00CCCCCC
        invoke  CreateSolidBrush,0x00CCCCCC
        jmp     finish
...
endp
...    
Post 01 Feb 2005, 18:03
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
f0x1er



Joined: 01 Feb 2005
Posts: 12
Location: Russia, Staryy Oskol
f0x1er 02 Feb 2005, 08:32
That's cool, but i'm using Fresh IDE and i want to do the same without the CreateWindowEx function. Just with visual design in IDE.
Post 02 Feb 2005, 08:32
View user's profile Send private message ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 02 Feb 2005, 08:45
f0x1er wrote:
That's cool, but i'm using Fresh IDE and i want to do the same without the CreateWindowEx function. Just with visual design in IDE.


Set StyleEx property of the edit control to 0 and check WS_BORDER in Style property.

Regards.
Post 02 Feb 2005, 08:45
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
f0x1er



Joined: 01 Feb 2005
Posts: 12
Location: Russia, Staryy Oskol
f0x1er 02 Feb 2005, 14:42
thanx, that works Smile
Post 02 Feb 2005, 14:42
View user's profile Send private message ICQ Number 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.