Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
"Process messages" waht it does?
and if i wanted to free a certain speedbutton that was created on runtime,how do i do that?
botao.Free;
[/ignore]Nordlund said:You tell windows to "process messages"
Nordlund said:You tell windows to "process messages"
if (Temp is Tspeedbutton) then
var
x: Integer;
Temp: TComponent;
begin
for x := ToolBar1.ComponentCount - 1 downto 0 do
if Toolbar1.Components[x] is TSpeedButton then
begin
Temp := Toolbar1.Components[x];
Temp.Free;
end;
end;
var
x: Integer;
Temp: TComponent;
begin
for x := ToolBar1.ComponentCount - 1 downto 0 do
if Toolbar1.Components[x] is TSpeedButton then
begin
Temp := Toolbar1.Components[x];
(Temp as TSpeedButton).Parent := GroupBox1;
// exchange GroupBox1 for the appropriate parent control
end;
end;
var
x: integer;
Temp: TControl;
begin
for x := main.ToolBar1.ControlCount - 1 downto 0 do
begin
Temp := main.ToolBar1.Controls[x];
if (Temp is Tspeedbutton) then
RemoveComponent(Temp);
end;
end;