Recently I want to modify the UI and find that Silverlight does not have a native groupbox, So Baidu immediately finds that some sharing is very useful, however, when we find that the title of groupbox must have a background color to block the border, it will be miserable when there are multiple color backgrounds, so we have this groupbox.
No nonsense
The main p
Grouping class controls include controls such as container controls (Panel), Group box controls (GroupBox), and tab controls (TabControl).
One, Panel controlThe Panel control is provided by the System.Windows.Forms.Panel class, and the main role is to put other control groups together on a panel so that the controls are easier to manage. You can set the AutoScroll property to True when you want to display too many controls on the Panel control panels
C # modify the border color of the Form Control GroupBox,
The default border color of the control Group Box is white, which is usually less prominent. However, the default attribute list does not provide corresponding interfaces. Therefore, you can only redraw events.
The OnPaint event is widely used on the Internet, but it is not found in the event list. It should be hidden too deeply (it needs to be rewritten with the override keyword ). I used the
Tag: His box height modifies order body override CSDN refControl group box The default color of the border is white, which in many cases appears less prominent. However, the default list of properties does not provide the appropriate interface. So you can only redraw events with the help of.Many on the web said that using the OnPaint event, but I did not find it in the list of events, should be hidden too deep (need to use the Override keyword to rewrite). I have directly used the Paint event he
Groupbox similar to C ++ is not found in Java. After searching, you can find that it is implemented using borderlayout and border.
Take notes as follows:Code:
Import java. AWT .*;
Import javax. Swing. Border .*;
Import java. AWT. event .*;
Import javax. Swing .*;
Public class test5 {
Public static void main (string [] ARGs ){
Smallframe Sf = new smallframe ();
SF. setvisible (true );
}
}
Class smallframe extends jframe {
Container P;
PS: Practice is the only standard to test the truth is really right, thought very simple thing, often by oneself make very complex, here recordQT creates a GroupBox auto-display border in the Windows environment,The effect is as followsHowever, in the Linux environment, QT creates a groupbox, and the border disappears.And then thought it was groupbox. property se
GroupBox (control group) controls typically exist as containers for groups of other controls, which facilitates user identification and makes the interface more user-friendly (the GroupBox control is equivalent to a previous version of Visual Basic Frame control). You can use control group controls to further categorize the various features in a form, such as separating the various option button controls. I
Function: Redraw the GroupBox of the WinForm to adjust the border color and border widthUsing system;using system.collections.generic;using system.componentmodel;using system.drawing;using System.Data; Using system.linq;using system.text;using system.windows.forms;using system.drawing.drawing2d;namespace JSHYSC_ ctrllib{public partial class Ctrl_groupbox:groupbox {private Color borderlinecolor =system.drawing.system Colors.gradientactivecaption
PublicForm3 () {initializecomponent ();Foreach(Control gboxInGroupbox1.controls ){If(GboxIsVscrollbar)Continue; Gbox. Tag=Gbox. Location. Y;} panelcontrol1.verticalscroll. Value=Panelcontrol1.verticalscroll. Maximum ;} Add a vertical scroll bar control and add the following events: Private VoidVscrollbar1_scroll (ObjectSender, scrolleventargs e ){Foreach(Control gboxInGroupbox1.controls ){If(GboxIsVscrollbar)Continue; Gbox. Location=NewPoint (gbox. Location. X ,(Int) Gbox. Tag-E. newvalue );}}
Shenzhen-how does one change the title of group box dynamically?
There are not:
Ddx_groupbox (PDX, idc_static_contr, statitle); // groupbox
Fuzhou ddx_control (PDX, idc_static1, m_button); Control
If Fuzhou is not bound, call cbutton * prbutton = (cbutton *) getdlgitem (idc_static1 );
Prbutton-> setwindowtext ("wwww ");
Ddx_text can also be used in Shanghai.
Shanghai-But updatedata is required
I am mainly using ddx_control (PDX, idc_static1, m
Fieldset labels have never been used before, but I have never heard of them. For more information, see ASP. net Ajax document. When we see that it appears something similar to groupbox in winform In the webpage for example, we feel that the layout is very organized. I felt very good. I checked the source file to know that I used the fieldset tag. Its format is as follows:
Fieldset
>
Legend
>
The title of fieldset.
Legend
>
When using ASP. NET web components, I found that the editing control has the groupbox effect. I never knew how to make this effect on the Web. Now I know. Use the following htmlCodeThe key is fieldset and legend labels:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Fieldset
Style
= "Border-color: # e2ded6; border-width: 1px; border-style: solid ;"
>
Legend
Style
= "Color: #3
Sometimes groupbox similar to winform needs to be implemented on the web, and a good solution has not been found on the internet for a long time, so it is hard to find it. record it and use it for sharing with you.
Method 1: Silverlight is a cross-browser, cross-platform plug-in that provides the next-generation. Net-based media experience and rich interactive applications for the network.
Program . Silverlight provides flexible programming models,
WPF (6) Introduction to content controls with titles in WPF
Introduction to StackPanel, WarpPanel, DockPanel, Grid, Canvas use of Five layout containers in the article of the WPF-XAML layout control, this gives us a general idea of where containers can be used. Today, let's take a look at three headers in WPF,
[WPF series] basic learning-WPF design patterns overview, wpf-wpfIntroduction
The "Design Pattern" is something cool for programmers to pick up, And it truly makes programer of the beginner Design Pattern intoxicated. Too many experiences tell us that "everything must be done in an appropriate way and we must learn to stop it. The same is true for the "design mod
Last night, I saw the WPF bug 4 of Nanke zhishi:Click radiobutton.And then I made some analyses and comments,
However, the analysis is not accurate enough to mislead others' ideas. Sorry. Here I will analyze it from the beginning.
Because Nanke zhishi has already described the bug, here is just to put it simply: Put A radiobutton on the header of groupbox. At this time, the mouse clicks some blank areas
whose content can only be a basic control or layout control, typically uses a layout control as its content, and then uses multiple basic spaces in the layout space to achieve complex interface effects under which basic controls have a label, Button, Tooltip.
Headercontentcontrol: Content control with caption, inherited from ContentControl, adds a header property on ContentControl basis. The underlying controls are TabItem, GroupBox, etc.
Ite
Introduction to WPF (5) WPF dependency attributes and wpf dependency
In. NET, events also have attributes. in WPF, route events and dependency attributes are added. I recently did not know what the WPF dependency attribute is for when I write a project. I thought it was for
WPF getting started tutorial series 15th -- Data Binding in WPF (1), wpf getting started tutorial
Using Windows Presentation Foundation (WPF), you can easily design a powerful user interface. At the same time, WPF provides the data binding function. The data of
Introduction to WPF (iii) embedded routing events of WPF routing events, wpf Routing
Have you ever wondered why the. NET event is replaced by a routing event instead of a. NET event in WPF? The most intuitive reason is that a typical WPF application uses many elements to ass
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.