Thanks
Simon
Set the Autoscroll property to true. The control will then display scrollbars
if any of the controls in it extend beyond the controls client area. You can
also set the scrollbars range properties manually if you leave Autoscroll
false.
Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
Note: I'm unable to visit the newsgroups every day at the moment,
so be patient if you don't get a reply immediately.
Thanks
Simon
"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.0000782...@antispam.compuserve.com...
Something is not right here. I just made a simple test program, one scrollbox,
with all properties at default (Autoscroll = true, autosize = false), one
button with
procedure TForm1.Button1Click(Sender: TObject);
var
y, w: Integer;
i: Integer;
begin
y:= 0;
w:= scrollbox1.ClientWidth - getsystemmetrics( SM_CXVSCROLL );
for i:= 1 to 10 do
with TPanel.Create( self ) do begin
parent := scrollbox1;
setbounds( 0, y, w, 50 );
caption := Format('Panel %d at %d', [i, y ] );
Inc(y, 50 );
end;
end;
Run, click button => scrollbox full of panels and with a beautiful vertical
scrollbar. (D6, Win2K)
Thanks for your continued help. I have "fixed" the problem by increasing the
width of the form by 1 and then back again. Not a very nice fix but it
seemed to work!
Not sure if I'm supposed to ask another unrelated question without starting
a new thread but...
is there anyway of setting the font attributes of a single item in a tree
view? I want to use bold and colour to make the display a bit more user
friendly and indicate state to the user of certain items - namely coloured
silver for unavailable. I tried using images but it looked awful!
Thanks in advance
Simon
"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.0000785...@antispam.compuserve.com...
You are not <g>.
> is there anyway of setting the font attributes of a single item in a tree
> view? I want to use bold and colour to make the display a bit more user
> friendly and indicate state to the user of certain items - namely coloured
> silver for unavailable. I tried using images but it looked awful!
You have to use the custom draw support build into the TTreeview class. Look
at the help for OnAdvancedCustomDrawItem. Search for examples in the archives,
this is a fairly frequent question.
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be