panel

Does Android have the equivalent of a JPanel?

六眼飞鱼酱① 提交于 2019-12-10 09:45:11
问题 Is there an Android equivalent to Java's panel? I need something with a set size that I can add different views in dynamically. Is there such a technique? I'm basically wanting a blank area with a set size in xml code where I can add buttons later through the activity. The reason for adding later is the number of buttons and size of the buttons will range dramatically, but still needing the area to fill. 回答1: There isn't a JPanel class in Android but you can use layouts just as effectively.

C# Winform 中真正意义的透明控件

若如初见. 提交于 2019-12-10 03:35:27
在稍微复杂的交互应用中,避免不了耗时的操作,这时候总希望给用户明确的提示,表示程序在运行中暂时不能进行其他操作。显示一个半透明的处于等待状态的遮罩层是很好的方法。在Web应用程序中直接设置Div的透明度然后覆盖操作界面就好,但是Winform的好像并没有提供透明度之类的属性。关于Background 中的 Transport 是特指背景透明的,其实质是继承父容器的背景颜色或者图片,在效果上看起来是一致的,但是如果父容器中包含其他的控件,则这种透明是无法显示这些控件的。此外还有一种真正意义的透明,它在隐藏在 ControlStyles 的特性设置中。 // 摘要: // 指定控件的样式和行为。 [Flags] public enum ControlStyles { ... // 摘要: // 如果为 true,则控件被绘制为不透明的,不绘制背景。 Opaque = 4, // // 摘要: // 如果为 true,控件接受 alpha 组件小于 255 的 System.Windows.Forms.Control.BackColor 以模拟透明。仅在 // System.Windows.Forms.ControlStyles.UserPaint 位设置为 true 并且父控件派生自 System.Windows.Forms.Control // 时才模拟透明。

Winforms: Smooth the rounded edges for panel

泄露秘密 提交于 2019-12-09 19:22:30
问题 I have followed this tutorial in order to create a rounded panel. The code in the tutorial is in vb but I was able to convert it to C# so here is my code: public class SPanel : Panel { Pen pen; float penWidth = 2.0f; int _edge = 20; Color _borderColor = Color.White; public int Edge { get { return _edge; } set { _edge = value; Invalidate(); } } public Color BorderColor { get { return _borderColor; } set { _borderColor = value; pen = new Pen(_borderColor, penWidth); Invalidate(); } } public

What's a good guide to WPF Panels & layout in general?

狂风中的少年 提交于 2019-12-09 17:16:17
问题 Is there a good, concise guide to the various behaviors of the controls that inherit from System.Windows.Controls.Panel? Or just a WPF layout guide in general? In particular, I'm interested in how the panels handle child objects that have width or height set to "Auto" and Horizontal or Vertical Alignment set to "Stretch". Some layouts cause the objects to fill the size of their container, others just cause them to size based on their own content. 回答1: See http://msdn.microsoft.com/en-us

Firebase Database - Admin Panel

北城余情 提交于 2019-12-09 13:30:43
问题 I am new to Firebase and want to provide an easy to use panel to my client for adding, editing and removing posts. In my earlier apps, I used Heroku - Django combo that gave me a pre-built easy to customize admin panel that was very friendly for my client to use I want something similar for my Firebase app that can be used to make modifications to database , I know there is database console to deal with this stuff but its just not user friendly , specially for someone with no technical

primefaces ajax update of panel from another form [duplicate]

柔情痞子 提交于 2019-12-09 12:09:39
问题 This question already has answers here : How to find out client ID of component for ajax update/render? Cannot find component with expression “foo” referenced from “bar” (5 answers) Closed 4 years ago . I have some code here: <f:view> <h:form id="formA"> <p:treeTable id="tree"> <p:ajax event="select" listener="..." update="mustRefresh" /> ... </p:treeTable> </h:form> <h:form id="formB"> <p:panel id="mustRefresh"> ... </p:panel> </h:form> </f:view> When user select a record on treeTable(formA)

C# WinForms: Make panel scrollbar invisible

。_饼干妹妹 提交于 2019-12-08 19:51:33
问题 I have a panel1 with AutoScroll = true .I have to make panel1 scroll with btnUp and btnDown . So far I've made what I was asked for private void btnUpClicked(Object sender, EventArgs e) { if (panel1.VerticalScroll.Value - 55 > 0) panel1.VerticalScroll.Value -= 55; else panel1.VerticalScroll.Value = 0; } private void btnDownClicked(Object sender, EventArgs e) { panel1.VerticalScroll.Value += 55; } But now I need to hide Scrollbar or make it invisible. I tried panel1.VerticalScroll.Visible =

Hide grafana panels based on selected template variable

为君一笑 提交于 2019-12-08 17:30:33
问题 I am trying to develop kind of dropdown list with metrics and accordingly to selected metric specific panel supposed to appear on dashboard. And vice versa if metric unselected, panel should be hidden. I found the link http://search-devops.com/m/k2DBF2DCJuDrRWa1&subj=Re+grafana+Hide+panels+based+on+results where 2015-10-26 it was told that it is not possible to do. But maybe some functionality was developed until that time which allow to show/hide grafana panel? Thank you 回答1: Need to use

GWT sliding side panel

a 夏天 提交于 2019-12-08 17:25:34
I am interested in how would you approach creating sliding side panel in GWT? (i.e. social networks sliding panel on the left of this page: http://www.inc.com/articles/2011/03/how-19-year-old-daniel-gross-is-taking-on-google-with-greplin.html ) What kind of events should I handle? Regards This kind of stuff can be done entirely with CSS. Have a look at the css properties position: relative (for the initial position), position: fixed as well as top and left properties when the user scrolls. 来源: https://stackoverflow.com/questions/5167286/gwt-sliding-side-panel

How to create Transparent panel in c#.Net

风格不统一 提交于 2019-12-08 16:18:31
问题 I have a Panel on windows Form with few controls inside panel, Can i make panel completely transparent. (It should give the feel that controls are placed directly on Form) 回答1: If you go to the BackColor property, and change the Selector to "Web" the first choice is Transparent (at least it is in my VB IDE). I believe that the BackColor of the Panel would inherit the color of the component it is on. 回答2: I assume it is WinForms app. Try this in Form.Load event: private void Form1_Load_1