Skip to content

Instantly share code, notes, and snippets.

View vadz's full-sized avatar

VZ vadz

View GitHub Profile
@vadz
vadz / transparent_textctrl.cpp
Created April 6, 2024 23:22
Example of a "transparent" wxTextCtrl under Windows
#include <wx/app.h>
#include <wx/artprov.h>
#include <wx/custombgwin.h>
#include <wx/dcclient.h>
#include <wx/frame.h>
#include <wx/sizer.h>
#include <wx/textctrl.h>
#include <wx/msw/private.h>
@vadz
vadz / xcb_debug.c
Last active September 6, 2024 16:13
Simple shared library to debug XCB events received by the application
// Compile with
//
// $ cc -Wall -shared -fPIC -o libxcb_debug.so xcb_debug.c `pkg-config --cflags --libs xcb`
//
// Use with
//
// $ LD_PRELOAD=libxcb_debug.so any_program_using_xcb
#define _GNU_SOURCE
#include <dlfcn.h>
#include <errno.h>

Windows 11 Notepad

Note:
'Entered name' columns specify name typed (not selected) 'Filter' columns specify the user selected filter 'Exists' column values specifies:

  • no - file does not exist with or without filter extension
  • yes - file exists exactly as entered (where 'file' and 'file.' both match 'file' but not 'file.ext')
  • filter - file exists with filter extension appended but not without