panel

Panel of controls over content in the form

Does WinForms have support for this? Let's say I want to show a panel containing ListView made of some results. It is shown by clicking on a button in a form corner, and the panel is shown inside the form, above all controls, preferably with shadow in the back to make it more attractive. I want this panel to be always inside the form, a...

Drawing panel size

Hello, I have problem setting the size of drawing panel. I want a drawing panel with the size 0f 600,600.However I found that, the size of the drawing panel is smaller than 600,600. It seems that the frame size is 600,600 which make the drawing panel smaller. How can I set the drawing panel size 600,600 ? .... public class DrawingBoardW...

YUI (JS): Putting a MenuBar in a Panel

If I put a YUI menu bar in the body it works perfectly. However if I use it inside of a Panel it shows up without the proper background. It is larger than it should be. Other than the default sam skin I'm using only the following css. .windowbody is the class of the panel. <style type="text/css"> body { margin: 0; } .windowbody { ...

c# How to reach a panel that is beeing created while program is running?

I have this for loop: int iPanelNumber = 1; foreach (string[] Persons in alItems) { Panel pPanelContainer = new Panel(); pPanelContainer.Width = contentPanel.Width; pPanelContainer.Height = 50; pPanelContainer.BackColor = Color.FromArgb( Convert.ToInt32(aWhiteContentBackgroundColors[0]), Convert.To...

General way of setting element bounds

Hello There, I'm writing an application which is basically a designer very similar like Expression Blend or Visual Studio designer. So basically there are a bunch of UI elements on a design surface and you can do things such as drag'n'drop, resize, rotate, etc. The main container control, which will be the designsurface can be any cont...

how to increase the panel height in flex dynamically?

I have a panel inside which I have a datagrid and a button. The functionality is that when I click the button, an row gets added to the data grid. I have described the pane height and width in %. But as the number of rows in the data grid increase, due to fixed panel height, a scroll bar appears in the data grid. But I want the panel h...

Is there a way to add a link text or button to the panel header along with the panel title in Flex?

I have a panel in my application. My requirement is, I also require a link, that is "Help options" to appear in the panel's header. In the left, we will have the Panel's title and in the right corner, I need this link. Is that possible? ...

YUI Panel Resize issues

I am having trouble while using the YUI panel as a dialog. I have a dialog object created with javascript on page load: $J = jQuery; dialog = new YAHOO.widget.Panel("dialog", { width: "300px", fixedcenter: true, close: true, draggable: true, zindex: 4, modal: true, visible: false }); Then when I call my loadDialog() function from eve...

Random background image on DIV

I'm trying to get a randomly picked background image (from a selection of 4 images) to appear as the background image for a asp.net panel. The problem I have is that the code works when stepping through the code in debug mode. Once you run the code on the website without debugging, all the images are the same. Its almost as if the rando...

WPF - LayoutUpdated event firing repeatedly

I've been adding a bit of animation to my WPF application. Thanks to Dan Crevier's unique solution to animating the children of a panel combined with the awesome WPF Penner animations it turned out to be fairly straightforward to make one of my controls look great and have its children move about with some nice animation. Unfortunately...

Setting the size of panels

I have 3 panels. One is the main panel which holds 2 smaller panels. For the main panel, I used setPreferredSize(new Dimension(350, 190)); For the smaller left panel, I used setPreferredSize(new Dimension(100, 190)); For the smaller right panel, I used setPreferredSize(new Dimension(250, 190)); but the smaller panels remain t...

YUI modal panel with non-standard background mask value.

I am trying to setup a modal YUI panel above a YUI Tabview. For CSS purposes [1] the tabs have a z-index that goes up to about 20 (depending on how many tabs there are). The problem I am facing is that the mask that YUI draws for the modality of the panel is behind whatever nonzero mask the tabs have, and so the tabs peek through. So ...

ASP.NET - Scrollable Panel and Placing ListView in that

Hi, We are building an ASP.NET page and in that we need place a Scrollable Panel containing a ListView. The ListView in-turn will hold different records, which are retrieved from Database. Could anyone please refer a code sample for this? Thanks and Regards. ...

Irregularities when adding controls to my panel. They show up whever they want!

Here's my code: int ypos = 0; public void X() { MovieItem NewMovie = new MovieItem(); NewMovie.SearchMovie(txtSearch.Text); NewMovie.Location = new Point(0, ypos); ypos += 196; panel1.Controls.Add(NewMovie); } After running method X about 4,5 times, the 5th or 6th item added isn't added where it should instead it...

How can I scroll my panel using my mousewheel?

I have a panel on my form with AutoScroll set to true so a scrollbar appears automatically. How can I make it so a user can use his mouse wheel to scroll the panel? Thanks SO. ...

How can I access a WebBrowser control from within a UserControl?

I have this layout: A UserControl inside a Panel. Panel is inside Form1. WebBrowser is in another panel that is inside of Form1 as well. So: Form1 Panel1 Panel2 MyUserControl TheWebBrowser How could I set the URL for my webbrowser in Panel2, from withing MyUserControl? I've tried something l...

How to override YUI Panel CLOSE button event?

I have a YAHOO Panel object defined like this: profilesDialog = new YAHOO.widget.Panel("profiles_dialog", { width: "705px", height: "609px", fixedcenter: "contained", close: true, draggable: true, zindex: 2, autofillheight: "body", visible: f...

Can panels communicate with each other?

I'm trying to call a method from a panel class, however it does not result in anything. Can panels communicate with each other? Or is there another reason why this isn't working? Calling the method name() in the leftInput class. ButtonPanel class. import model.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; publi...

Flex Call ItemRenderer inside a new panel()

I have the below function creating new panels inside my ViewStack.. This works fine and they are great.. However i am trying to put some content into the panels but i am failing. private function viewstack_addChild(name:String):void { //if (accordion.numChildren < MAX_CHILDREN) { var p:Panel = new Pane...

jQuery accordion open from href link

My page gets a value from a url passed to it. accordId gets a value of 4. I need to make the accordion open to a certain panel based on the fact that the value for accordId is 4. So I want panel 4 to open based on the accordId of 4 that was passed from the url. ...