Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.28 KB | None | 0 0
  1. procedure SetWindowTitle(handle:TWindow; Text:String);
  2. var
  3.   Name: XTextProperty;
  4.   Status: Int32;
  5. begin
  6.   XChangeProperty(display, handle, XInternAtom(display, "_NET_WM_NAME", False),
  7.       XA_STRING, 8, PropModeReplace, PChar(Text), length(Text)
  8.   );
  9.   XFlush(display)
  10. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement