[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XForms] Second example at documentation doesn't show Message at 1.2.4 v

From: Christiano SA
Subject: [XForms] Second example at documentation doesn't show Message at 1.2.4 version, but show at old version
Date: Sun, 6 Nov 2016 23:15:42 +0100

Attachment: a.c
Description: Text document

The code (a.c attached) is:
#include <forms.h>

int main(int argc, char *argv[]) {
    FL_FORM *form;
    FL_OBJECT *yes,

    fl_initialize(&argc, argv, "FormDemo", 0, 0);

    form = fl_bgn_form(FL_UP_BOX, 320, 120);
    fl_add_box(FL_NO_BOX, 160, 40, 0, 0, "Do you want to Quit?");
    yes = fl_add_button(FL_NORMAL_BUTTON, 40, 70, 80, 30, "Yes");
    no  = fl_add_button(FL_NORMAL_BUTTON, 200, 70, 80, 30, "No");

    fl_show_form(form, FL_PLACE_MOUSE, FL_TRANSIENT, "Question");

    while (1) {
        if (fl_do_forms() == yes)
            printf("Yes is pushed\n");
            printf("No is pushed\n");

    return 0;
This code was copied  from:
First I installed xforms through:
$ sudo apt-get install libforms-dev
Ok, the code worked normally. Then I decided to install the version 1.2.4 but the code didn't work as previously.
I've tested the 1.2.4 version at Solaris x86 and Raspbian armv7 (debian based for raspberry pi 2 computer) and the result is the same: The message "Do you want to Quit" isn't shown. Changing FL_NO_BOX to FL_UP_BOX works but I'm learning xforms and would like to know what you think about this supposed problem.
Thank you

reply via email to

[Prev in Thread] Current Thread [Next in Thread]