togglesplitter () method. There is a lot of such code in this control:Code 1
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->If (controltohide. Visible){If (useanimations){If (parentform! = NULL){If (this. Dock = dockstyle. Left | this. Dock = dockstyle. Right){}Else{}}}Else{If (expandparentform parentform! = NULL){If (this.
Principle: N ListView controls, N button controls, and then controls the Dock property of the ListView and button controls
As follows:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace QQ { public partial class Form1:form { public Form1 () { InitializeComponent (); } private void Button1_Click (object
(); // clear the original content listView1.LargeImageList = imageList1 in ListView1; // set the image listView1.Items used to display the current item in the form of a large icon. add ("set commuting time", "set commuting time", 0); listView1.Items. add ("whether to enable SMS reminder", "Whether to enable short-term reminder", 1); listView1.Items. add ("set password", "set password", 2);} private void button2_Click (object sender, EventArgs e) {listView1.
Http://blog.163.com/prince.king_521/blog/static/106891204201192410455319/
When I switched from the Web to winform development, I had a piece of ecstasy, no session loss, no browser incompatibility, and no need to turn around HTML, CSS, JavaScript, and C, in Visual Studio, what the controls look like at the end (although there is a slight difference in the end user's operating system and resolution settings), this feeling has not been over for a long time, however, as the development interface b
' => Array (T ('ibm '), T ('Dell'), T ('sony '), T ('hp ')), '# description' => T ('select your preferred brand '), ); Return $ Form ;} Function Sitemod_callback_ajax (){ $ ID = $ _ Post ['Id']; // Ajax Post Data Switch ($ ID ){ Case 0: Drupal_json ( Array ('Html '=> drupal_get_form ('ibm _ form '))); // Josn data. Form Exit ; Break ; Case 1: Drupal_json ( Array ('Html '=> drupal_get_form ('Dell _ Form'))); Exit ; Break ;}} Function Ibm_form (){ // Definition form
a global menu-this is the dock. There are many dock applications available in Linux. If you want to be the most concise, choose Plank. The article will discuss this application later.
Note:: The examples and commands mentioned above have passed the test on Ubuntu (version 14.10) and Plank (version 0.9.1.1383.
Plank
The official document describes Plank as the simplest
I just upgraded my notebook X201 TO THE FINAL VERSION. The middle-key configuration for Thinkpad in Lucid10.04 cannot be used on 10.10Maverick. After analysis, it is because in Ubuntu10.10, the "xorg. conf. d "folder, so the configuration in Lucid10.04 is invalid on 10.10. After studying it, I finally found the specific location and configured it as follows: Create" 20-t "in the following path
I just upgraded my notebook
Now X201 is used, and Ubuntu10.04 is installed. I changed the 9-core Battery two days ago. I want to see if there is no charge and the percentage of the charge cannot be seen. Later I found the following method, which is worth staying, slave :-) in ubuntu, all battery information is recorded in the file in the/proc/acpi/battery/BAT0/folder, as if the notebook was BAT0, because most of them only have one battery, this folder contains three alarminfosta
still envy Apple Mac computer personalized desktop? In fact, do not envy, because your Windows computer can also easily create a similar Mac desktop effect, as shown below. Today, the computer Pepsi network to teach you how to make your Windows system can also have the high force of the Mac, tutorials from the network, interested friends, can DIY landscaping desktop try!
Let Windows computers also have Mac high-performance desktop effects
The first step, download installation imita
editor that displays a crosshair. To set the anchor point, click the top, bottom, left, or right portion of the crosshair. By default, the control anchors the left and top, and to clear the edges of the anchored control, click the corresponding arm of the crosshair. Click the Anchor property name again to close the Anchor property editor. When a form is running, the control resizes to remain at the edge of the form, and the distance to the anchor edge is always the distance defined when the con
about Dockwindow. Cpp:1#include"mainwindow.h"2#include 3#include 4 5Mainwindow::mainwindow (Qwidget *parent):6 7 Qmainwindow (parent)8 {9Setwindowtitle ("Mindmap");//Set Window captionTenQtextedit *te=NewQtextedit ( This);//this is replaced by the parent to run the same result, because C + + and QT are both fast so this problem is put here first =-= OneTe->setalignment (Qt::aligncenter);//setting alignment is the property->aligncenter the edit box occupies the center position ... (The English s
the distance (in pixels) from the left or top edge to the removable split bar ).
SplitterincrementAttribute
Determines the shortest distance (in pixels) that the user can move the splitter ).
The following example modifiesSplitterincrementAttribute to create an alignment splitter. When you drag the splitter, it increments by 10 pixels instead of the default one pixel. Define splitcontainer size adjustment behavior
In the processSplitterincrementAttribute is set
Before we briefly reviewed the history of the Windows taskbar and Apple Mac Dock, let's compare the basic features of the two and the similarities.
Users can add any number of files or applications to the Mac Dock toolbar, which dynamically adjusts the size of their icons based on the number of entries. In an application that is adsorbed to the Dock toolbar, the
Apple introduced the iOS 11 system as early as June at the WWDC Global Developers Conference, and in September we finally received a full version of the update push. iOS, which has undergone a major version of the 11 generation, remains vibrant and progressive. Does iOS 11 have any special changes in UI and interactivity when compared to iOS 10 with a year in hand? Let's take a look here. (iOS 10 on the left, iOS 11 on the right)Home screenThe navigation in the upper left corner has obvious chan
Welcome to the fascinating world of Mac OS X 10.2. The combination of Unix's powerful features, excellent stability, and the legendary simplicity and elegance of the Macintosh has created a superb modern operating system--mac 0S X 10.2. 1.1 Mac OS X 10.2 's new face--aquamac the Aqua interface in OS x 10.2 is shown in Figure 1-1. The new Aqua interface makes the elements in the Mac interface more streamlined, more intuitive and more efficient to use. Aqua provides users with a range of new organ
Dictionary application.Dock PositionThe default Dock is below the screen. Our screens are usually 16:10,dock at the bottom of the screen and occupy a small vertical space. It is advisable to put the Dock on the left or right.Change the Caps Lock key to ControlI often use Control keys, but this key is hard to press in the lower left corner of the keyboard. At the
forest near the gate, the guards will be killed. The four players will be able to see the opportunity to avoid the middle-level line guard and enter the right side of the headquarters room (Be careful with the patrol soldiers in front of the headquarters ), beret solved the remaining German troops (the gunners beside the boat carefully). After sniper shot and killed the gunners, one of the remaining gunners at the dock could be killed easily; when th
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.