flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Custom little modifications |
Author |
|
edfed 13 Oct 2013, 13:11
this time, the custom is the transparency, using the layered window example in the example section, i just inserted a WS_EX_LAYERED to the main window.
with that, i also made it topmost, it means i can code with a video in background, ar anything. it is cool also to code while consulting a documentation, and without loosing the editor or documentation window. fasmw.asm ~line 161 Code: asmedit_style dd AES_AUTOINDENT+AES_SMARTTABS+AES_OPTIMALFILL+AES_CONSOLECARET ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; transparency dd 180 .default dd 180 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; editor_colors rd 4 asm_syntax_colors dd 0xF03030,0x009000,0x0000B0,0x808080 fasmw.asm ~line 422 Code: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; invoke CreateWindowEx,WS_EX_TOPMOST+WS_EX_LAYERED,_class,_caption,WS_OVERLAPPEDWINDOW+WS_CLIPCHILDREN+WS_CLIPSIBLINGS,96,64,384,324,NULL,[hmenu_main],[hinstance],NULL or eax,eax jz end_loop mov [hwnd_main],eax invoke SetLayeredWindowAttributes,[hwnd_main],0,[transparency],LWA_ALPHA ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; mov eax,SW_SHOW test [wp.flags],WPF_RESTORETOMAXIMIZED jz show_main_window mov eax,SW_SHOWMAXIMIZED show_main_window: invoke ShowWindow,[hwnd_main],eax invoke UpdateWindow,[hwnd_main] msg_loop: invoke GetMessage,msg,NULL,0,0 but now, i want to do a checkbox for the topmost option and a scroll for transparence in the appearance dialog. and that seems to be really tricky to do. finally, just having fasmw transparent and topmost is cool enough for many reasons. there are other modifications, to try to update the transparency with WM_KILLFOCUS and WM_SETFOCUS. as killfocus don't seems to work and don't change anything i don't post now. |
|||
13 Oct 2013, 13:11 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.