Category Archives: GUI

build gede

build gede on Ubuntu 16.04 xenial with Qt5.8 Install qt-unified-linux-x64-2.0.5-2-online.run Download gede-2.0.3.tar.xz from http://acidron.com/gede/pmwiki.php?n=Downloads.Releases tar xf gede-2.0.3.tar.xz cd ~/oss/gede-2.0.3/src ~/Qt/5.8/gcc_64/bin/qmake Info: creating stash file ~/oss/gede-2.0.3/src/.qmake.stash ~/oss/gede-2.0.3/src$ make Advertisements

Posted in CPP, GUI, QT | Leave a comment

wxBoxSizer Horizontal alignment flags are ignored with wxEXPAND

Newer version of wxWidgets reports error: ASSERT INFO: ./src/common/sizer.cpp(2091): assert “!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))” failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND BACKTRACE: [1] wxBoxSizer::DoInsert(unsigned long, wxSizerItem*) [2] WXMSearchReplaceDialog::WXMSearchReplaceDialog(wxWindow*, int, wxPoint const&, wxSize const&) … wxBoxSizer* BoxSizer2; … Continue reading

Posted in CPP, GUI, Open Source | Leave a comment

minimal QT window

// MiniQtWnd.h #ifndef MiniQtWnd_H #define MiniQtWnd_H #include <QtGui/QMainWindow> #include <QGridLayout> #include <QPushButton> #include <QTextEdit> #include <QtGui/QPainter> class MiniQtWnd : public QMainWindow { Q_OBJECT public: MiniQtWnd(QWidget *parent = 0, Qt::WFlags flags = 0); virtual void paintEvent(QPaintEvent*); }; #endif // ////////////MiniQtWnd.cpp #include … Continue reading

Posted in CPP, GUI, Open Source | Leave a comment

minimal MFC window

#define _WIN32_WINNT  0x0501 #include <afxwin.h> struct CMainFrame : public CFrameWnd { CMainFrame() { Create(NULL, “Onega’s mini MFC Application”); } void CMainFrame::OnPaint() { CRect rect; GetClientRect (&rect); CPaintDC dc(this); CString msg = “Compile command: cl minimfc.cpp /link /subsystem:windows”; dc.DrawText(msg, &rect, DT_SINGLELINE … Continue reading

Posted in CPP, GUI, MFC, Uncategorized | Leave a comment

minimal wxwidgets window

#include <wx/wx.h> class MiniWxApp : public wxApp { virtual bool OnInit(); }; IMPLEMENT_APP(MiniWxApp) class MyFrame : public wxFrame { public: MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size); void OnQuit(wxCommandEvent& event){Close(true); } void OnAbout(wxCommandEvent& event); void OnEraseBackground( wxEraseEvent& event … Continue reading

Posted in CPP, GUI, Open Source | Leave a comment

minimal ATL window

#include <atlbase.h> #include <atlwin.h> class MainWindow : public CWindowImpl<MainWindow, CWindow, CFrameWinTraits> { public: BEGIN_MSG_MAP(MainWindow) MESSAGE_HANDLER(WM_PAINT, OnPaint) MESSAGE_HANDLER(WM_DESTROY, OnDestroy) END_MSG_MAP() LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { PAINTSTRUCT ps; HDC hDC = GetDC(); BeginPaint( &ps ); SYSTEMTIME st; … Continue reading

Posted in CPP, GUI | 1 Comment

GTK

The GTK version installed by Pidgin 2.6.6 often fails to copy text to clipboard, so I upgraded it to GTK 2.20.0, but unfortunately it is incompatible with Pidgin. Oh, surprise.

Posted in GUI | Leave a comment