Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple panel in status bar

Status
Not open for further replies.

sggaunt

Programmer
Jul 4, 2001
8,620
GB
Hi
Has anyone had this problem with the SimplePanel option in a statusbar.
The bar is set to simplepanel := False by default, but as soon as my application writes to SimpleText
e.g. StatusBar.SimpleText := stringvariable;
the status bar changes to a simple Panel.
Which it should not do until I set SimplePanel := True.
Whats going On ?.

Steve

 
Hi Steve,

I have looked it up in the help file and it should work as
you state above. Maybe there is an error in your code which
causes this to happen. Maybe you have forgotten to delete
a part of old or test coding. That happens to me sometimes.
Or maybe another procedure, function or event fires and
sets it to true. But it's most likely to be your own
mistake (sorry). What I suggest is you check your code very
carefully, especially the events that fire before the procedure your talking about.

I hope this helps,

BobbaFet Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
Be a nice guy 'n press that little ol'
VVV---(this one) for me ;-)
 
Hi Bobbafet

ER try this..
Start a blank project and drop a statusbar and a button on the form.

Make 4 panels in the status bar , no default text.
this is the button method :-

procedure TForm1.Button1Click(Sender: TObject);
begin
StatusBar1.SimpleText := 'Hello Mum';
end;

Click the button and see what happens.
I have tried this in seperate installations of D3, D4 and D6
same result !!!.

Steve.

 
With the status bar, simpletext is reserved for use with simplepanel. If you set simplepanel to false you should manipulate the items of it's Panel propoerty.
 
Hi bearsite4

Yes I know how to set up and use normal statusbar panels
I was trying to toggle between a set of panels and a line of simple text.
So are you saying that it is Not possible to pre-load a line of simpletext and reveal it as required. by toggling the value of simplepanel. at least not without the stautus bar switching to simplepanel as soon as the simpletext is assigned (as seems to be the case).

I have abandoned this now and get the same effect by changing the text in panel[0] and extending its width to the width of the status bar.

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top