Advertisement
Guest User

Untitled

a guest
Dec 26th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.31 KB | None | 0 0
  1. Index: LuaForm.pas
  2. ===================================================================
  3. --- LuaForm.pas (revision 2232)
  4. +++ LuaForm.pas (working copy)
  5. @@ -330,6 +330,17 @@
  6.    end;
  7.  end;
  8.  
  9. +function customform_TransparentNow(L: Plua_State): integer; cdecl;
  10. +var
  11. +  f: TCustomForm;
  12. +  h: THandle;
  13. +begin
  14. +  f:=luaclass_getClassObject(L);
  15. +  h:=f.Handle;
  16. +  SetWindowLong(h, GWL_EXSTYLE, GetWindowLong(h, GWL_EXSTYLE) or WS_EX_LAYERED);
  17. +  SetLayeredWindowAttributes(h, $FFFFFF, 255, LWA_COLORKEY);
  18. +end;
  19. +
  20.  procedure customform_addMetaData(L: PLua_state; metatable: integer; userdata: integer );
  21.  begin
  22.    customcontrol_addMetaData(L, metatable, userdata);
  23. @@ -349,6 +360,7 @@
  24.    luaclass_addClassFunctionToTable(L, metatable, userdata, 'setBorderStyle', customform_setBorderStyle);
  25.    luaclass_addClassFunctionToTable(L, metatable, userdata, 'printToRasterImage', customform_printToRasterImage);
  26.    luaclass_addClassFunctionToTable(L, metatable, userdata, 'dragNow', customform_dragNow);
  27. +  luaclass_addClassFunctionToTable(L, metatable, userdata, 'TransparentNow', customform_TransparentNow);
  28.  
  29.    luaclass_addPropertyToTable(L, metatable, userdata, 'OnClose', customform_getOnClose, customform_setOnClose);
  30.    luaclass_addPropertyToTable(L, metatable, userdata, 'Menu', customform_getMenu, customform_setMenu);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement