Skip to content

gammasoft71/Examples_Gtk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gtk+3 Examples

Shows how to use Gtk3 controls only by programming code (c++17).

gtk

Hello World

"Hello World" The classic first application HelloWorld with GtkLabel.

Application

Application Shows how to create a simple gtk application with GtkApplication.

Common Controls

Button Shows how to create a gtk Button and Event Click with GtkButton.

CheckBox Shows how to create a gtk CheckBox with GtkCheckBox.

CheckedListBox Shows how to create a gtk CheckListBox with GtkCheckListButton.

ComboBox Shows how to create a gtk ComboBox with GtkComboBox.

Control Shows how to create a gtk Control with GTkControl.

DateTimePicker Shows how to create a gtk DateTimePicker with GtkDatePicker.

DomainUpDown Shows how to create a gtk DomainUpDown with own GtkDomainSpinCtrl (GtkPanel with GtkTextCtrl and GtkSpinButton).

HScrollBar Shows how to create a gtk HScrollBar with GtkScrollBar.

Label Shows how to create a gtk Label with GtkStaticText.

LinkLabel Shows how to create a gtk LinkLabel with GtkHyperLinkCtrl.

ListBox Shows how to create a gtk ListBox with GtkListBox.

ListView Shows how to create a gtk ListView with GtkListCtrl.

MonthCalendar Shows how to create a gtk MonthCalendar with GtkCalendarCtrl.

NotifyIcon Shows how to create a gtk NotifyIcon with own wxNotifyIcon (wxTaskBarIcon).

NumericUpDown Shows how to create a gtk NumericUpDown with GtkSpinCtrl and GtkSpinCtrlDouble.

PictureBox Shows how to create a gtk CheckBox with GtkStaticBitmap.

ProgressBar Shows how to create a gtk ProgressBar with GtkGauge.

RadioButton Shows how to create a gtk RadioButton with GtkRadioButton.

RichTextBox Shows how to create a gtk RichTextBox with GtkRichTextCtrl.

TextBox Shows how to create a gtk TextBox with GtkTextCtrl.

ToolTip Shows how to create a gtk ToolTip with GtkRichToolTip.

TrackBar Shows how to create a gtk TrackBar with GtkSlider.

TreeView Shows how to create a gtk TreeView with GtkTreeCtrl.

VScrollBar Shows how to create a gtk VScrollBar with GtkScrollBar.

WebBrowser Shows how to create a gtk WebBrowser with GtkWebView.

Containers

Form Shows how to create a simple gtk Form with GtkFrame.

GroupBox Shows how to create a simple gtk GroupBox with GtkStaticBox.

Panel Shows how to create a simple gtk Panel with GtkPanel.

SplitContainer Shows how to create a simple gtk SplitContainer with GtkSplitterWindow and GtkPanel.

TabControl Shows how to create a simple gtk TabControl with TabPages with GtkNotebook.

Menus and toolbars

MainMenu Shows how to create a gtk MainMenu with GtkMenu.

Components

Timer Shows how to create a simple gtk Timer with GtkTimer.

Dialogs

ColorDialog Shows how to create a ColorDialog with GtkColourDialog.

FolderBrowserDialog Shows how to create a FolderBrowserDialog with GtkDirDialog.

FontDialog Shows how to create a FontDialog with GtkFontDialog.

MessageBox Shows how to create a MessageBox with GtkMessageBox.

Events

ApplicationIdle Shows how to create an application and catch idle event.

FormAndEvents Shows how to create a form and catch events.

FormClick Shows how to create a form and catch click event.

FormPaint Shows how to create a form and catch paint event.

Custom controls

NumericTextBox Shows how to create a custom control GtkNumericTextCtrl from GtkTextCtrl.

Line Shows how to create a custom control GtkLine from GtkPanel.

Others

ColoredForms Shows how to create colored background forms.

ColoredTabPages Shows how to create colored background tab pages.

Cursors Shows how to assign specified cursor to control.

FormIcon Shows how to assign an icon to form.

GroupBoxAndCheckBox Shows how to use GroupBox and CheckBoxes.

GroupBoxAndRadioButton Shows how to use GroupBox and RadioButtons.

MdiForm Shows how to create a MDI (Multiple Document Interface) form.

Download

git clone https://github.com/gammasoft71/Examples.Gtk Examples.Gtk

Generate and build

To build this project, open "Terminal" and type following lines:

Linux :

mkdir build
cd build
cmake .. 
cmake --build . --config Debug

Remarks

This project run with Gtk3 and CMake.

About

Shows how to use Gtk3 controls by programming code (c++17).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published