Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2008.05.18;
Скачать: CL | DM;

Вниз

Как удалить полосы прокрутки в компоненте treeview?   Найти похожие ветки 

 
VictoR407   (2008-04-17 13:46) [0]

Ввожу длинное имя ветки в treeview. Появляются полосы прокрутки. После ввожу короткое имя ветки. Полося прокрутки не исчезают. Как полосы скрыть?


 
Kolan ©   (2008-04-17 14:11) [1]

Я делал так:

unit KNoHScrollTreeView;

interface

uses
 Windows, SysUtils, Classes, Controls, ComCtrls, Messages;

type
 TNoHScrollTreeView = class(TTreeView)
 private
   { Private declarations }
 protected
   { Protected declarations }
   procedure WMNCCalcSize(var msg: TMessage); message WM_NCCALCSIZE;
 public
   { Public declarations }
 published
   { Published declarations }
 end;

procedure Register;

implementation

procedure Register;
begin
 RegisterComponents("KSoftWare", [TNoHScrollTreeView]);
end;

{ TNoHScrollTreeView }

procedure TNoHScrollTreeView.WMNCCalcSize(var msg: TMessage);
var
Style: Integer;
begin
 Style := GetWindowLong(Handle, GWL_STYLE );
 if (Style and WS_HSCROLL) <> 0 then
   SetWindowLong(Handle, GWL_STYLE, style and not WS_HSCROLL);
inherited;
end;

end.



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

Текущий архив: 2008.05.18;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.021 c
3-1197891322
Emish
2007-12-17 14:35
2008.05.18
select * from #PAY_ORDER Выдается сообщение "Ошибка синтаксиса в"


15-1207559622
Kostafey
2008-04-07 13:13
2008.05.18
Я вернулся


2-1208322639
Sw
2008-04-16 09:10
2008.05.18
SQL запрос


2-1208420080
operator
2008-04-17 12:14
2008.05.18
TGauge для вывода сколько процентов файла обработано.


15-1207627805
Slider007
2008-04-08 08:10
2008.05.18
С днем рождения ! 8 апреля 2008 вторник