Hi,

I tried the Editor Toolbar package under Win2000 with latest Lazarus
(svn).  I noticed that under Windows I can't hide existing toolbar
buttons.  The code below works fine under Linux, but not under Win32.
I created a small test app and added two buttons. Tried to hide them
at runtime and the same problem occurs.

Can anybody else confirm this problem under Win32?

---------------------------------
 TB.BeginUpdate;
 try
   lbl.Caption := IntToStr(TB.ButtonCount);  // to test ButtonCount
which is correct.
   for i := TB.ButtonCount-1 downto 0 do
     TB.Buttons[i].Visible := False;
 finally
   TB.EndUpdate;
 end;
---------------------------------


--
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to