![]() |
Equivalente de delphi a c#
Abajo está el código en Delphi y me gustaría verlo en C#, se trata de un TabControl para cambiar la ficha de fondo negro y las letras rojas
procedure TForm1.PageControl1DrawTab(Control: TCustomTabControl; TabIndex: Integer; const Rect: TRect; Active: Boolean); var R: TRect; texto: String; begin Control.Canvas.Brush.Color := clBlack; Control.Canvas.Font.Color := clRed; Texto := PageControl1.Pages[TabIndex].Caption; R := Rect; Control.Canvas.FillRect(R); If not Active Then Inflaterect(R, 0, -3); DrawText(Control.Canvas.Handle, PChar (Texto), -1, R, DT_SINGLELINE or DT_CENTER or DT_VCENTER); end; |
Con 86 mensajes yo creo que ya puedes poner las etiquetas correctas para presentar tu código.
// Saludos |
La franja horaria es GMT +2. Ahora son las 07:21:54. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi