Hi RealHeavyDude,
Thanks for your reply.
Hi Cringer,
These are the answer:
1. Progress OpenEdge Studio 10.2B No Service Pack
2. Windows XP SP 3
3. Just now i succeed to create 2 button MyHover dynamically.
The Steps as follows:
A. Create .wrx file.
1. Using Appbuilder, Create Window
2. Put the MyHover ocx button
3. Save file . ie. c-win.w
B. Create program to create Myhover ocx button dynamically.
The Simple Program as follow:
================================================================================================
DEFINE VARIABLE CtrlFrame AS WIDGET-HANDLE NO-UNDO.
DEFINE VARIABLE chCtrlFrame AS COMPONENT-HANDLE NO-UNDO.
DEFINE VARIABLE UIB_S AS LOGICAL NO-UNDO.
DEFINE VARIABLE OCXFile AS CHARACTER NO-UNDO.
DEFINE VARIABLE CtrlFrame-2 AS WIDGET-HANDLE NO-UNDO.
DEFINE VARIABLE chCtrlFrame-2 AS COMPONENT-HANDLE NO-UNDO.
OCXFile = SEARCH( "c-win.wrx":U ).
DEFINE FRAME frame01
WITH 1 DOWN NO-BOX KEEP-TAB-ORDER OVERLAY
SIDE-LABELS NO-UNDERLINE THREE-D
AT COL 1 ROW 1
SIZE 80 BY 16 WIDGET-ID 100.
CREATE CONTROL-FRAME CtrlFrame ASSIGN
FRAME = FRAME FRAME01:HANDLE
ROW = 2
COLUMN = 14
HEIGHT = 1
WIDTH = 15
HIDDEN = no
SENSITIVE = yes.
CREATE CONTROL-FRAME CtrlFrame-2 ASSIGN
FRAME = FRAME FRAME01:HANDLE
ROW = 3
COLUMN = 14
HEIGHT = 1
WIDTH = 15
HIDDEN = no
SENSITIVE = yes.
ASSIGN
chCtrlFrame = CtrlFrame:COM-HANDLE
UIB_S = chCtrlFrame:LoadControls( OCXFile, "CtrlFrame":U)
CtrlFrame:NAME = "CtrlFrame":U
chCtrlFrame-2 = CtrlFrame-2:COM-HANDLE
UIB_S = chCtrlFrame-2:LoadControls( OCXFile, "CtrlFrame":U)
CtrlFrame-2:NAME = "CtrlFrame-2":U
.
VIEW FRAME frame01.
=========================================================================================
Right now, i want to make the above program more eficient as the variable for widget-handle and com-handle should i create as much as how many button that i want to create
If anyone have another opinion about my program, please let me know.
Regards with SMILE,
Djohan