Menu

#92 UpDown values

v1.0_(example)
open
nobody
None
1
2026-07-03
2026-06-28
No

Hi,
I tried to use this object, and I failed ...

@ 555,149 UPDOWN oUpDown INIT 5 RANGE 1, 10 SIZE 45, 22
...
nUpDown=oUpDown:value()

When I want to get the value, it always return 0

Where do I failed ?
Thanks
A+

Discussion

  • Wilfried Brunken

    Hello Alain
    Please post a little sample program.
    There is no description in the HWGUI
    commands docu, i will add this
    in case of looking for this ticket.

    In the next few days, i will look for
    some more tickets.

    MNI TNX, 73 es 55 de
    Wilfried, DF7BE

     
  • Aupeix Alain

    Aupeix Alain - 2026-07-01

    Hi, here is a small test :

    • Button ok : will quit the dialog, and display oUpDown:value (=0) and cResult (=5) as initialized
    • Button Display : set correctly cResult, and then quitting, display 0 and the real value of cResult
    • Cancel : quit

    It seems that value() is lost when quitting the dialog.

    Except using a solution display, what I dont wan't to use, I have for now no solution.

    Remark, a warning or error appears (if launched from within a terminal) :

    (insee:22448): Gtk-CRITICAL **: IA__gtk_spin_button_get_value_as_int: assertion 'GTK_IS_SPIN_BUTTON (spin_button)' failed

    Thanks
    A+

     

    Last edit: Aupeix Alain 2026-07-01
  • Aupeix Alain

    Aupeix Alain - 2026-07-02

    A new version with a temporary solution to the bug

    A+

     
  • Wilfried Brunken

    Hello Alain,
    i modified your sample program for
    safe run as Ticket92.prg in the test directory.
    Please read the notes in the comment lines.
    Also the command documentation is updated.

    So respond, if this is OK for you.
    In the next few days i will look
    for next tickets.

    Advice:
    Your WWW http://jujuland.pagesperso-orange.fr
    mentioned in the sample program is outdated.

    MNI TNX, 73 es 55 de
    DF7BE, Wilfried

     

Log in to post a comment.

Auth0 Logo