<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>Kontrolka Panel</title>
</head>
<body>
   <form id="form1" runat="server">
   <div>
      <h1>Kontrolka Panel</h1>
      <h2>Kontrolki generowane dynamicznie</h2>
      <asp:Panel ID="pnlDynamic" runat="server"
         Height="150"
         Width="80%"
         BackColor="Beige"
         Font-Names="Courier New"
         HorizontalAlign="Center"
         Style="padding:20px"
         ScrollBars="Auto">
         W tym miejscu znajduje si statyczna zawarto panelu.
         <br />Celem tego zdania jest pokazanie efektu zmiany
         wartoci dopenienia. Wartoci dopenienia mog by wyraone w pikselach (px),
         centymetrach (cm) lub jako dany procent szerokoci panelu (%).
         <p />
      </asp:Panel>

      <table>
         <tr>
            <td>
               Liczba kontrolek Label:
            </td>
            <td>
               <asp:DropDownList id=ddlLabels runat="server">
                  <asp:ListItem text="0" value="0" />
                  <asp:ListItem text="1" value="1" />
                  <asp:ListItem text="2" value="2" />
                  <asp:ListItem text="3" value="3" />
                  <asp:ListItem text="4" value="4" />
               </asp:DropDownList>
            </td>
         </tr>
         <tr>
            <td>
               Liczba kontrolek TextBox:
            </td>
            <td>
               <asp:DropDownList id=ddlBoxes runat="server">
                  <asp:ListItem text="0" value="0" />
                  <asp:ListItem text="1" value="1" />
                  <asp:ListItem text="2" value="2" />
                  <asp:ListItem text="3" value="3" />
                  <asp:ListItem text="4" value="4" />
               </asp:DropDownList>
            </td>
         </tr>
         <tr>
            <td colspan=2>
               &nbsp;
            </td>
         </tr>
         <tr>
            <td>
               <asp:CheckBox id="chkHide" runat="server"
                  text="Ukryj panel" />
            </td>
            <td>
               <asp:Button ID="Button1" runat="server"
                  text="Odwie panel" />
            </td>
         </tr>
      </table>

      <hr/>
      <h2>Paski przewijania i przenoszenie do nowego wiersza</h2>

      <asp:Panel ID="pnlScroll" runat="server"
            Height="200"px;
            Width="90%"
            GroupingText="Paski przewijania i przenoszenie do nowego wiersza">
         <asp:Label ID="lblPanelContent" runat="server"></asp:Label>
      </asp:Panel>
         <br />
      <table >
         <tr>
            <td align="right">
               Paski przewijania:
            </td>
            <td>
               <asp:DropDownList id=ddlScrollBars runat="server"
                     AutoPostback="true"
                     OnSelectedIndexChanged="ddlScrollBars_SelectedIndexChanged">
                  <asp:ListItem text="Brak"  Selected="True" />
                  <asp:ListItem text="Opcja Auto" />
                  <asp:ListItem text="Opcja Both" />
                  <asp:ListItem text="Opcja Horizontal" />
                  <asp:ListItem text="Opcja Vertical" />
               </asp:DropDownList>
            </td>
            <td align="right" width="75">
               Przenoszenie do nowego wiersza:
            </td>
            <td>
               <asp:RadioButtonList ID="rblWrap" runat="server"
                     AutoPostBack="true"
                     RepeatDirection="Horizontal"
                     OnSelectedIndexChanged="rblWrap_SelectedIndexChanged">
                  <asp:ListItem Text="Tak" Value="true"  Selected="True" />
                  <asp:ListItem Text="Nie" Value="false" />
               </asp:RadioButtonList>
            </td>
         </tr>
      </table>
   </div>
   </form>
</body>
</html>
