How to format a Button

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
Bernd
Posts: 2
Joined: Thu Jun 14, 2007 10:19 am

How to format a Button

Post by Bernd »

Hello,

could someone please help me.

How can I format a Button?

I add a Button like this :
with XLSRW.Sheet[intNSh].ControlsObjects.Buttons.Add do
begin
Text := 'Start';
Col1 := 12;
Row1 := 0;
Col2 := 13;
Row2 := 1;
MacroName := 'Schaltfl1_BeiKlick';
end;
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

What is the problem?


Lars Arvidsson
Bernd
Posts: 2
Joined: Thu Jun 14, 2007 10:19 am

Post by Bernd »

Hello,

I want the

Text := 'Start'; to be in the center of the Button,

in Excel it is quite easy, but how do I do it in my programm?
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

Sorry, but you can't format the button text.


Lars Arvidsson
Post Reply