panel

Why does scaling of controls differ between PC's?

柔情痞子 提交于 2019-12-02 19:44:15
I try to give the user a 'clean and simple' interface by hiding some elements. Only a small arrow denotes that he can expand some part of the main menu bar. When all is closed it looks like this: When you open all it looks like this: Each arrow is a SpeedButton thats sits on the left side of a panel. By clicking on the button the Width is toggled between the width of the Speedbutton (closed) and the width of the panel at design time (open). The width of the panel at designtime is stored as a constant. The procedure show_hide_controls handles this: procedure TCompose_Main.show_hide_controls

Why is only the first RadioButton being added to the GroupBox?

那年仲夏 提交于 2019-12-02 19:20:37
问题 I am trying to dynamically create Windows controls and add them to a Panel. For Button and Checkbox this has worked fine; I've run into a problem with a GroupBox, though, with RadioButtons inside it. The first RadioButton element is created and added to the GroupBox in the expected location, but susbequent ones, although ostensibly created (stepping through the code makes that appear to be the case), they are not visible. I would think that if subsequent RadioButtons were being plopped atop

How to create equal-height columns using Materialize and Flexbox?

大兔子大兔子 提交于 2019-12-02 18:16:55
问题 I am trying to use Flexboxes in order to strech a panel I created using Materialize. This is the html that creates my panels: <div class="row"> <div class="col s6"> <div class="card-panel"> panel1 </div> <div class="card-panel"> panel2 </div> <div class="card-panel"> panel3 </div> </div> <div class="col s6"> <div class="card-panel"> panel4 </div> </div> </div> And this is the result: Now I would like to strech panel4 in order to make it flush with the bottom of panel3 . Probably this is

iOS: Sliding UIView on/off screen

家住魔仙堡 提交于 2019-12-02 16:01:09
I'm working on an app where having a "drawer" on the left-hand side would be very beneficial. I'm doing some initial testing to see how I would best accomplish this, and I'm having some very basic trouble. My Setup 1. I am using a single-view application template in Xcode 4. 2. To the xib's "main/border" view, I've added 2 UIViews (LeftPanel and RightPanel) and a UIButton (ShowHideButton). 3. I've colored the LeftPanel green and the RightPanel blue for easier visibility. 4. When the view is loaded, both panels are visible and the UIButton has the text "Hide Panel". 5. Upon pressing the button,

Using A WrapPanel in a TreeView

跟風遠走 提交于 2019-12-02 14:15:26
I want to display data with level of detail, so i use a TreeView, but each detail is quite short, so i would like to use a WrapPanel (horizontal) to have many details per line. Something like : This is an unexpanded item This is The Header of an expanded item Info 1 Info 2 Info 3 Info 4 Info 5 Info 6 Info 7 So i tried defining TreeViewItem's Template but i could not get the wrappanel to wrap. I have only one info per line, when info's datatemplate width is 100 and TreeView is 500. i tried setting Width of WrapPanel, ItemsWidth, are other things with no success. Any idea ? EDIT : i finally got

How to access public subs of dynamically loaded user control in a panel

南楼画角 提交于 2019-12-02 13:15:36
I have a panel and a button in a form and 2 user controls, I dynamically loaded the first user control in the panel then inside the userControl1 I have a method that I want to access when I clicked the button in the form and then change the displayed user control to userControl2 in the panel, how should I do that? form1 code: Public Class form1 Private Sub form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim control1 = New UserControl1 Panel1.Controls.Add(control1) control1.Location = New Point(0, 0) control1.Size = New Point(1351, 533) End Sub End Class UserControl1 Code:

Painting to panel after .Update() call

左心房为你撑大大i 提交于 2019-12-02 11:00:56
I have a problem when trying to draw to a panel immediatly after calling a panel.Update(); Here's the code: public void AddAndDraw(double X, double Y){ AddPoint (X, Y); bool invalidated = false; if (X > _master.xMaxRange) { _master.Update (); invalidated = true; } if (Y > _master.yMaxRange) { _master.Update (); invalidated = true; } if (!invalidated) { _master.UpdateGraph (this); } else { _master.PaintContent (); } } When running this problem I only see the cleared panel and not he content I'm trying to paint in the .PaintContent()-method. I've already tried using .Invalidate() and .Refresh()

How to create equal-height columns using Materialize and Flexbox?

我与影子孤独终老i 提交于 2019-12-02 09:33:42
I am trying to use Flexboxes in order to strech a panel I created using Materialize. This is the html that creates my panels: <div class="row"> <div class="col s6"> <div class="card-panel"> panel1 </div> <div class="card-panel"> panel2 </div> <div class="card-panel"> panel3 </div> </div> <div class="col s6"> <div class="card-panel"> panel4 </div> </div> </div> And this is the result: Now I would like to strech panel4 in order to make it flush with the bottom of panel3 . Probably this is possible using Flexbox but I can't figure out how to get Materialize and Flexbox to work together Materilize

Draw Transparent Panel without Being Black by Form Minimization

大城市里の小女人 提交于 2019-12-02 08:29:56
I'm drawing a panel on a bitmap in picturebox using C#. I used below code, which is fine when I don't minimize the Form. When I minimize the Form and again maximize it to the first size, all panels which were drawn by this class, show black background. I found that when I change ControlStyles.Opaque to something else such as "SupportsTransparentBackColor" the problem would be fixed but the panels would not be transparent anymore. public class ExtendedPanel : Panel { private const int WS_EX_TRANSPARENT = 0x00; public ExtendedPanel() { SetStyle(ControlStyles.Opaque, true); } private int opacity