﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - WebDialogBox - few question</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDialogBox---few-question/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebDialogBox - few question</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDialogBox---few-question/</link><pubDate>Thu, 02 Jan 2014 20:40:57 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Roi,&lt;/p&gt;&lt;p&gt;That should do the trick also because WebDialogBox will be created during ShowDialog and you could add the mouseup handler in there. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>WebDialogBox - few question</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDialogBox---few-question/</link><pubDate>Tue, 31 Dec 2013 02:30:32 GMT</pubDate><dc:creator>roiu@a-g-r-e.com</dc:creator><description>&lt;p&gt;Bernard Hi, &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;For some reason the &lt;span style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; font-size: 9pt; color: rgb(63, 63, 63); line-height: 18px; white-space: pre-wrap;"&gt;GetWindowDivElement() &lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;is &amp;nbsp;null when OnCreated fires.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;I had to use this call&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; font-size: 9pt; color: rgb(63, 63, 63); line-height: 18px; white-space: pre-wrap;"&gt; dlgBox.Window.GetWindowDivElement().onmouseup = function () { CheckLocation(); };&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;only after .ShowDialog();&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;Anyhow, that did the trick.&lt;/span&gt;&lt;/p&gt;&amp;nbsp;&lt;br /&gt;
&lt;div&gt;Thanks.&lt;/div&gt;</description></item><item><title>WebDialogBox - few question</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDialogBox---few-question/</link><pubDate>Sun, 29 Dec 2013 21:46:02 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Roi,&lt;/p&gt;&lt;p&gt;For the issue number 1 and 2, you can solve this issue by attaching onmouseup event when dialogbox created on client side. In OnCreated event, you could add onmouseup event of frame element of dialogbox.&lt;/p&gt;
&lt;p&gt;Here's the snippet code:&lt;/p&gt;&lt;pre&gt;function OnCreated(controlId) {
    var dlgBox = ISGetObject(controlId);
    dlgBox.Window.GetWindowDivElement().onmouseup = function () { CheckLocation(); };
}
function CheckLocation() {
    var dlgBox = ISGetObject('WebDialogBox1');
    //prevent webdialogbox header missing when dragged to top
    if (dlgBox.Window.GetWindowDivElement().style.top.indexOf('-') != -1) {
        dlgBox.Window.MoveTo(parseInt(dlgBox.Window.GetWindowDivElement().style.left.replace('px', '')), 0);
    }
    //prevent move by move it to the center after move
    dlgBox.Window.MoveToCenterDesktopAbsolute();
}&lt;/pre&gt;
&lt;p&gt;Although it's not possible to allow minimize in your WebDialogBox when not integrated with WebDesktopManager because WebDialogBox and WebDesktopWindow has different behavior. So to achieve minimize scenario, there are no other way than integrate your WebDialogBox to WebDesktopManager. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>WebDialogBox - few question</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebDialogBox---few-question/</link><pubDate>Sun, 29 Dec 2013 10:16:47 GMT</pubDate><dc:creator>roiu@a-g-r-e.com</dc:creator><description>Hi all,&amp;nbsp;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;few question regarding WebDialogBox:&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;ol&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;How do I keep the&amp;nbsp;WebDialogBox static (prevent user from moving it on the screen).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;If user moves the&amp;nbsp;WebDialogBox to the &lt;b&gt;top &lt;/b&gt;of the screen, it could get stuck, without the ability to move it downwards again. How do I prevent it from getting stuck?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;Is it possible to use "AllowMinimize" &lt;span style="text-decoration: underline;"&gt;without &lt;/span&gt;integrating the&amp;nbsp;WebDialogBox with a WebDesktop?&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;That's all for now :-)&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description></item></channel></rss>