” fanidan “ checkbox ” mavzusidagi


CheckBox-dagi muhim voqealar


Download 170.49 Kb.
bet11/15
Sana24.12.2022
Hajmi170.49 Kb.
#1057493
1   ...   7   8   9   10   11   12   13   14   15

CheckBox-dagi muhim voqealar


Hodisa

Ta'rif

Tekshirildi

Ushbu hodisa Checked xususiyatining qiymati o'zgarganda yuz beradi.

CheckStateChanged

Bu hodisa CheckState xususiyatining qiymati o'zgarganda ro'y beradi.

Bosing

Ushbu hodisa boshqarish tugmachasini bosganda paydo bo'ladi.

DoubleClick

Ushbu voqea foydalanuvchi CheckBox boshqaruvini ikki marta bosganda ro'y beradi.

Ketish

Ushbu hodisa kiritish fokusi boshqaruvni tark etganida yuz beradi.

Sichqoncha_tugmachasini_bosing'>Sichqoncha tugmachasini bosing

Ushbu hodisa boshqaruv sichqonchani bosganda sodir bo'ladi.

MouseDoubleClick-ni bosing

Ushbu voqea foydalanuvchi CheckBox boshqaruvini ikki marta bosganda ro'y beradi.

Sichqoncha

Ushbu hodisa sichqoncha ko'rsatgichi boshqaruvi



Dasturning kod qismining to’liq shakli:


namespace System.Windows.Forms {
using System.Runtime.Serialization.Formatters;
using System.Runtime.Remoting;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System;
using System.Security.Permissions;
using System.Windows.Forms.ButtonInternal;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms.Layout;
using System.Drawing;
using System.Windows.Forms.Internal;
using System.Drawing.Drawing2D;
using Microsoft.Win32;
using System.Globalization;
///
///
///
Represents a Windows

/// check box.

///
[
ComVisible(true),
ClassInterface(ClassInterfaceType.AutoDispatch),
DefaultProperty("Checked"),
DefaultEvent("CheckedChanged"),
DefaultBindingProperty("CheckState"),
ToolboxItem("System.Windows.Forms.Design.AutoSizeToolboxItem," + AssemblyRef.SystemDesign),
SRDescription(SR.DescriptionCheckBox)
]
public class CheckBox : ButtonBase {
private static readonly object EVENT_CHECKEDCHANGED = new object();
private static readonly object EVENT_CHECKSTATECHANGED = new object();
private static readonly object EVENT_APPEARANCECHANGED = new object();
static readonly ContentAlignment anyRight = ContentAlignment.TopRight | ContentAlignment.MiddleRight | ContentAlignment.BottomRight;
private bool autoCheck;
private bool threeState;
private bool accObjDoDefaultAction = false;
private ContentAlignment checkAlign = ContentAlignment.MiddleLeft;
private CheckState checkState;
private Appearance appearance;
///
///
///


Download 170.49 Kb.

Do'stlaringiz bilan baham:
1   ...   7   8   9   10   11   12   13   14   15




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling