TGraphicControl Altında Bulunan ControlStyle Hakkında.

Yapmak istediğiniz işle ilgili doğru bileşeni bulmak için burayı kullanabilirsiniz. Sadece bulmak için, diğer sorular Programlama forumuna lütfen.
Forum kuralları
Bu forum sadece yapacağınız işle alakalı doğru bileşeni bulmak içindir. Şöyle bir şey yapmam lazım, hangi bileşeni kullanıyım diyorsanız, doğru yerdesiniz.
Cevapla
mustafa_90
Üye
Mesajlar: 15
Kayıt: 03 Eki 2008 12:45

TGraphicControl Altında Bulunan ControlStyle Hakkında.

Mesaj gönderen mustafa_90 »

Tekrar Merhaba;
ControlStyle ne işe yararıyor ? Bazı componentleri incelediğim de bunu kullandıklarını gördüm.
örnek;
ControlStyle := ControlStyle - [csReplicatable] + [csopaque];

Delphinin help dosyasında ise bunlar yazıyor ama birşey anlamadım.

Kod: Tümünü seç

csAcceptsControls	The control becomes the parent of any controls dropped on it at design time.
csCaptureMouse	The control captures mouse events when it is clicked.
csDesignInteractive	The control maps right mouse-button clicks at design time into left mouse-button clicks to manipulate the control.
csClickEvents	The control can receive and respond to mouse clicks.
csFramed	The control has a 3D frame.
csSetCaption	The control’s Caption should match the Name property if it has not been explicitly set to something else.

csOpaque	The control completely fills its client rectangle.
csDoubleClicks	The control can receive and respond to double-click messages. Otherwise, map double-clicks into clicks.
csFixedWidth	The width of the control does not vary or scale.
csFixedHeight	The height of the control does not vary or scale.
csNoDesignVisible	The control is not visible at design time.
csReplicatable	The control can be copied using the PaintTo method to draw its image to an arbitrary canvas.

csNoStdEvents	Standard events such as mouse, key, and click events are ignored. This flag allows an application to run faster when there is no need respond to these events.
csDisplayDragImage	If some control that has an associated drag image list is dragged across a control with this setting, then the image list is used to enhance the drag cursor while the cursor is over it. Otherwise, the drag cursor is used on its own.
csReflector	The control responds to Windows dialog messages, focus messages, or size change messages. Use this setting if the control can be used as an ActiveX control, so that it receives notification of these events.

csActionClient	The control is linked to an action object. This flag is set when the Action property is set, and cleared if the Action property is cleared.
csMenuEvents	The control responds to system menu commands.
ibrahimcoban
Üye
Mesajlar: 163
Kayıt: 11 Eki 2005 10:44
İletişim:

Re: TGraphicControl Altında Bulunan ControlStyle Hakkında.

Mesaj gönderen ibrahimcoban »

ControlStyle adında da anlaşılacağı üzere bileşenlerin davranış şekillerini belirliyor.

Bunu http://translate.google.com/ dan çevirebilirsin. Pek anlaşılmayacak bir şey yok.

Örneğin bu
ControlStyle := ControlStyle - [csReplicatable] + [csopaque];

çizimin baştan değil direkt üzerine tekrar yapılacağı anlamına geliyor. Yani arka zemin tazelenmez ve
bir nevi titremeyi önler.
Bir önemli seçenekte csAcceptsControls, bu parent yani üzerine tasarım zamanında diğer bileşenleri koyarsanız
sahiplenmeye yarar.
http://ibrahimcoban.com/
Lazarus, Kol-Ce,Delphi ve C#
mustafa_90
Üye
Mesajlar: 15
Kayıt: 03 Eki 2008 12:45

Re: TGraphicControl Altında Bulunan ControlStyle Hakkında.

Mesaj gönderen mustafa_90 »

Çok teşekkürler :)
Cevapla