Вниз
Скачать: CL | DM;

PopupMenu.Items.Width   Найти похожие ветки 

 
webpauk   (2007-10-02 12:12) [0]

Подскажите как определить width для PopupMenu.Items[I]


 
webpauk   (2007-10-02 12:14) [1]

или как выровнять PopupMenu.Popup() по правому краю


 
DimaBr ©   (2007-10-02 13:55) [2]


procedure TForm1.N1DrawItem(Sender: TObject; ACanvas: TCanvas;ARect: TRect; Selected: Boolean);
var s: string;
begin
 S := TMenuItem(Sender).caption;
 if Selected
   then ACanvas.Brush.Color := clRed
   else ACanvas.Brush.Color := clBtnFace;
 ACanvas.FillRect(ARect);
 DrawText(ACanvas.Handle,PChar(S),Length(S),ARect,dt_Right)
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.03 c
2-1191334323
Sergl
2007-10-02 18:12
2007.10.28
Кнопка на форме в процессе выполнения программы


9-1162040068
Зм1й
2006-10-28 16:54
2007.10.28
Прозрачность и текстура


15-1191493416
OrdJONY
2007-10-04 14:23
2007.10.28
Разработка протокола


4-1177292492
Cj
2007-04-23 05:41
2007.10.28
Раскрытие процесса


15-1191269789
Delphi User
2007-10-02 00:16
2007.10.28
VLK




   Наверх