P
PeterWokke
Guest
Hi Mike , In the main of containrCustom.i you should set the following code: /* create handle to get the Container handle first */ DEFINE VARIABLE hWindow AS HANDLE NO-UNDO. {get ContainerHandle hWindow}. /* Create the form. */ MainForm = NEW Progress.Windows.Form( ). MainForm:Text = "Embedded Window Sample". MainForm:Menu = MainMenu. MainForm:ClientSize = NEW Size(hWindow:WIDTH-PIXELS, hWindow:HEIGHT-PIXELS). MainForm:FormClosed:Subscribe( "Window_FormClosed" ). MainForm:Show( ). /* Create the WindowContainer, embedding the window into it. */ WinContainer = NEW Progress.Windows.WindowContainer( ). WinContainer:Size = NEW Size( hWindow:WIDTH-PIXELS, hWindow:HEIGHT-PIXELS ). WinContainer:EmbeddedWindow = hWindow. WinContainer
arent = MainForm. WinContainer:Show( ). Application:Run(MainForm). /* Delete the embedded window after the main form closes. */ PROCEDURE Window_FormClosed: DEFINE INPUT PARAMETER sender AS System.Object. DEFINE INPUT PARAMETER e AS System.EventArgs. DELETE WIDGET hWindow. END PROCEDURE. Question where do I set the required using settings? In the definition settings of the this Includefile? USING System.Windows.Forms.* FROM ASSEMBLY. USING System.Drawing.* FROM ASSEMBLY. USING Progress.Windows.* FROM ASSEMBLY. USING Progress.Util.* FROM ASSEMBLY. Regards, Peter
Continue reading...
Continue reading...