GtkSpinButton Glade GTK C Program

How to use a GtkSpinButton in a GTK+ 3 application written in C using Glade user interface designer. This tutorial shows how to build a GTK+3 application that allows a user to enter a number in a GtkSpinButton widget. Clicking a button in the application reads the value from the spin button widget and writes … Continue reading GtkSpinButton Glade GTK C Program

Display Time Qt Creator Application

Display time Qt Creator application tutorial that shows how to update the current time in an application window every second. This tutorial shows how to start a 1 second timer that calls a function periodically and how to get the current time (hours, minutes and seconds). The finished Qt application window is shown above with … Continue reading Display Time Qt Creator Application

Qt Radio Button Example Tutorial

A simple Qt radio button example in Qt Creator using Qt version 5 programmed in C++. This tutorial shows how to place three radio buttons and change a text label depending on which radio button is selected. The GUI radio button application created in this tutorial is shown below. Create the Qt Radio Button Example … Continue reading Qt Radio Button Example Tutorial

PHP Versus JavaScript Variables

A comparison of PHP vs. JavaScript variables. When programming or learning two different languages such as PHP and JavaScript, which are often used together, it is helpful to compare aspects of the two languages. This helps with remembering the similarities and differences between the languages to avoid confusion. PHP versus JavaScript variables are compared in … Continue reading PHP Versus JavaScript Variables

PHP Versus JavaScript Comments

Comparing PHP vs. JavaScript comments. Software developers often have to use two languages such as PHP and JavaScript for website and web application development.  It is sometimes hard to remember which language constructs belong to which language. This article compares PHP versus JavaScript comments, showing which language supports which types of comments. PHP Versus JavaScript … Continue reading PHP Versus JavaScript Comments

GTK Display Time in Glade Application

GTK display time in window using GTK+3, Glade and GLib functions. This tutorial shows how to write a GTK+ 3 application that displays the current time in a window. The application code is written in the C programming language. Glade is used to lay out the window and widgets. Below is an image that shows … Continue reading GTK Display Time in Glade Application

GTK+ Find Selected Radio Button

Find selected radio button in a group of GTK+ 3 Glade radio buttons using the C programming language. The previous two blog posts showed how to group radio buttons in Glade and how to program radio buttons in C code. This article follows on showing how to read the states of the radio buttons and … Continue reading GTK+ Find Selected Radio Button

GTK+ 3 Glade Radio Buttons C Code

GTK+ 3 Glade radio buttons C code that demonstrates how to use radio buttons in a Glade GTK project. The tutorial in the previous blog post showed how to group radio buttons in Glade, but did not show how to use the radio buttons in a program. This tutorial shows how to use the radio … Continue reading GTK+ 3 Glade Radio Buttons C Code

Group Radio Buttons in Glade

How to group radio buttons in Glade so that they act as a unit. Clicking one radio button selects it and clears all other radio buttons in the group. This tutorial shows how to group radio buttons in Glade user interface designer without any code to operate the buttons. This allows the window to be … Continue reading Group Radio Buttons in Glade

GTK Glade Get Pointers to Widgets

How to get pointers to widgets in a GTK Glade C program without using global variables. Use a local structure to pass widget pointers to a callback function. Pass user data and widget pointers to callback. GTK Glade Pointers to Widgets Example Program and Tutorial This Glade GTK+ 3 C programming tutorial shows how to … Continue reading GTK Glade Get Pointers to Widgets