Note that MSEGUI removes the dependency on the LCL (and therefore also GTK). The example was compiled with out of the box Free Pascal 2.0.2, compiler options used where "-O2gr -CX -XX". -O2 activates the peephole optimizer which reduces executable size; -Og tells the compiler to optimize for size, -Or uses register variables which makes code again much smaller. Then "-CX -XX" is of course most important to enable smartlinking. The exe was stripped afterwards to remove debug info.