Forum > General
How to compile on windows using a GTK2 interface?
claudiocolares:
Good morning everyone.
How to compile on windows using a GTK2 interface?
I want a multiplatform application, but as windows uses winapi and linux uses gtk, a dispocation of components is not the same on both interfaces.
I need to standardize.
JuhaManninen:
Bad strategy! You will be married to GTK2 for eternity which sounds unfortunate.
The right strategy is to use anchors and AutoSize in your layouts. Then all the GUI elements are located correctly also when themes and widgetsets change.
See the numerous GUI windows in Lazarus IDE as an example.
zeljko:
--- Quote from: JuhaManninen on October 17, 2017, 06:13:15 pm ---Bad strategy! You will be married to GTK2 for eternity which sounds unfortunate.
The right strategy is to use anchors and AutoSize in your layouts. Then all the GUI elements are located correctly also when themes and widgetsets change.
See the numerous GUI windows in Lazarus IDE as an example.
--- End quote ---
Or he can use Qt on linux,win and mac :)
marcov:
Or use Wine :-)
Leledumbo:
--- Quote from: JuhaManninen on October 17, 2017, 06:13:15 pm ---Bad strategy! You will be married to GTK2 for eternity which sounds unfortunate.
The right strategy is to use anchors and AutoSize in your layouts. Then all the GUI elements are located correctly also when themes and widgetsets change.
See the numerous GUI windows in Lazarus IDE as an example.
--- End quote ---
In case OP wonders what autosize / layout is: http://wiki.lazarus.freepascal.org/Autosize_/_Layout
Navigation
[0] Message Index
[#] Next page