﻿<?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 - Maximize window by default in WebDesktop</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Maximize-window-by-default-in-WebDesktop/</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>Maximize window by default in WebDesktop</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Maximize-window-by-default-in-WebDesktop/</link><pubDate>Wed, 15 Feb 2012 21:29:14 GMT</pubDate><dc:creator>yudi</dc:creator><category>Maximize window</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I would like to suggest you to utilize Maximize() method of WebDesktopWindow object from client side event (JavaScript). The method will maximize the specified WebDesktopWindow object.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;function MaximizeThisWindow()
{
    var WebDesktopManager1 = ISGetObject(controlId);
    var wnd = WebDesktopManager1.GetWindow("wndWindow1");

    wnd.Maximize();

    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;In order to set the window to be maximized by default when user click the shortcut, please invoke the Maximize() method in OnWindowCreated client side event. OnWindowCreated event is invoked when a Window is created.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;function WebDesktopManager1_OnWindowCreated(controlId, window)
{
    var WebDesktopManager1 = ISGetObject(controlId);

    if (window.Name == "wndWindow1")
        window.Maximize();

    return true;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Maximize window by default in WebDesktop</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Maximize-window-by-default-in-WebDesktop/</link><pubDate>Wed, 15 Feb 2012 14:24:04 GMT</pubDate><dc:creator>gajanaik</dc:creator><category>Maximize window</category><description>&lt;p&gt;So i am creating shorcuts in a webdesktop and assigning target url to the shortcuts dynamically on Page_Load &lt;/p&gt;
&lt;p&gt;This is part of the code in page load&lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
&lt;p&gt;gblIcons oIcons = new gblIcons(ConnectionString);&lt;/p&gt;
&lt;p&gt;oIcons.Query.Load();&lt;/p&gt;
&lt;p&gt;do&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;    webShortCut = new ISNet.WebUI.WebDesktop.WebDesktopShortcut();&lt;/p&gt;
&lt;p&gt;    ptLocation = new System.Drawing.Point(iX, iY); // i am manipulating the ix and iy to place the icon in order but don't worry abt it in the sample code.&lt;/p&gt;
&lt;p&gt;    webShortCut.Name = "wc" &amp;#43; oIcons.s_ControlName;&lt;/p&gt;
&lt;p&gt;    webShortCut.Location = ptLocation;&lt;/p&gt;
&lt;p&gt;    strCatetory = oIcons.s_Category;&lt;/p&gt;
&lt;p&gt;    webShortCut.Text = oIcons.s_IconName;&lt;/p&gt;
&lt;p&gt;    webShortCut.ToolTip = oIcons.s_ToolTip;&lt;/p&gt;
&lt;p&gt;    webShortCut.TargetURL = oIcons.s_TargerURL;&lt;/p&gt;
&lt;p&gt;    webShortCut.WindowName = oIcons.s_WindowName&lt;/p&gt;
&lt;p&gt;} while (oIcons.MoveNext());&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Everything work fine .. when i double click the shorcuts on the desktop the Window that opens is in normal mode.. i need it to be maximized. How can i sent the window to be maximized by default when i click the shorcuts.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;/span&gt;</description></item></channel></rss>