J
Juan Manuel Gonzalez
Guest
I am trying to create dinamically a group of buttons, using this code:
DEFINE VAR temp-hand AS WIDGET-HANDLE. DEFINE INPUT PARAMETER ipc AS CHARACTER NO-UNDO. &global-define X VALUE(v + ipc )
CREATE BUTTON temp-hand ASSIGN FRAME = FRAME btn-frame:HANDLE ROW = vdeInicio COLUMN = 10 WIDTH = 19 LABEL = ipc SENSITIVE = TRUE VISIBLE = TRUE TRIGGERS: ON CHOOSE PERSISTENT RUN btn-mess IN THIS-PROCEDURE. END TRIGGERS. temp-hand:LOAD-IMAGE("imagenes/Entradas"). vdeInicio = vdeInicio + 3.57.
This works when I adress a single button widget, also if a write a loop and call a procedure with this code in it, it creates multiple buttons but points to one handle, some told me than creating a temp table and saving there the widget handle may work, but I don´t know how to populate de table with the widget-handle, can you help me with this,
Continue reading...
DEFINE VAR temp-hand AS WIDGET-HANDLE. DEFINE INPUT PARAMETER ipc AS CHARACTER NO-UNDO. &global-define X VALUE(v + ipc )
CREATE BUTTON temp-hand ASSIGN FRAME = FRAME btn-frame:HANDLE ROW = vdeInicio COLUMN = 10 WIDTH = 19 LABEL = ipc SENSITIVE = TRUE VISIBLE = TRUE TRIGGERS: ON CHOOSE PERSISTENT RUN btn-mess IN THIS-PROCEDURE. END TRIGGERS. temp-hand:LOAD-IMAGE("imagenes/Entradas"). vdeInicio = vdeInicio + 3.57.
This works when I adress a single button widget, also if a write a loop and call a procedure with this code in it, it creates multiple buttons but points to one handle, some told me than creating a temp table and saving there the widget handle may work, but I don´t know how to populate de table with the widget-handle, can you help me with this,
Continue reading...