Form1 Form1 0 0 502 412 Form1 //createWidget("kpmessage", "LineEdit", "Form1") true unnamed 6 4 TextBrowser1 You can click the test button to insert text If you are loaded in the parent frame you can click the rocket icon on the toolbar or use the function menu to select "Talk to KPart". Any Kommander program can be run as a KPart. You need the KPart plugin to load KParts. Note that running Kommander programs as KParts is not without risks. For one thing you loose DCOP in the parent and the old parser ceases to work. Additionally since all widgets are accecssible from the parent and duplicate widget name can cause a Kommander lock up. Because of all this and the fact that the Actions on the unsupported MainWindow are incompatible it is impossible for the child to talk with the parent. On this dialog we use a timer on the parent polling the child for requests every 100 ms. It's a crude hack but it does yield acceptable behavior. This demo is intended to run both kpartwmframe.kmdr and kpartpart.kmdr. Layout70 unnamed 0 6 Spacer1 Horizontal Expanding 75 0 ExecButton4 Re&quest Parent if !widgetExists("kpmessage") then createWidget("kpmessage", "LineEdit", "Form1") endif if _LOADED == true then kpmessage.setText("You have mail") else message_info("this only works when loaded as a KPart in it's parent window") endif ExecButton1 Test &Child TextBrowser1.setText("This text was inserted by the KPart child cialog") ScriptObject13 message_info("We just got a message from our parent frame!", "Parent called Child") ScriptObject19 message_info("Request Granted") ScriptObject93 _LOADED = true Spacer2 Horizontal Expanding 40 0