Re: does a singleton StatusBar controller sound corrrect?
Tech-Archive recommends: Fix windows errors by optimizing your registry
- From: "Ignacio Machin \( .NET/ C# MVP \)" <machin TA laceupsolutions.com>
- Date: Tue, 12 Jun 2007 17:03:02 -0400
Hi,
"giddy" <gidisrael@xxxxxxxxx> wrote in message
news:1181676886.496331.33240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi ,
Does a singleton statusbas controller sound correct. I mean , is that
how its done?
IT does not sounds correct, as a matter of fact it DOES sound incorrect. The
statusbar is just another control in a form, you should let the form control
it.
I have a big app and i need to control the statusbar from within a
number of custom controls , dynamic menus and toolbars etc. So should
i have the aforementioend class? I'm thinking singleton so its
instance is globally accesssible?
you better define an interface (that your forms can implement) in such a way
that it return the instance of the correct statusbar. Then you can just call
a method (defined in the interface) to make the update.
.
Relevant Pages
- ANN: New TMS TAdvOfficeStatusBar, TAdvOfficeTabSet released and TMS Advanced ToolBars & Menus up
... blinking text in the statusbar panel. ... TAdvOfficeTabSet offers a separate tab control with a look similar to the ... (borland.public.delphi.thirdpartytools.general) - Re: Clone control in run-time?
... you want to "copy" the statusbar of one form to ... I do not think the clone way is correct here. ... certain value of the first statusbar makes no sense while placing on another ... Generally, if you want to clone a control, we first create a new instance of ... (microsoft.public.dotnet.framework.windowsforms.controls) - Re: More than 127 characters in the SimpleText property of a StatusBar control?
... The SimpleText property of a StatusBar control does not support more than ... you can place a picturebox in one of the status bar ... PictureBox In Status Bar ... (microsoft.public.vb.general.discussion) - Re: Dock?
... Right click on the control and select "Bring To Front". ... > Now, the TreeView takes up all the space of the form, and it doesn't ... > take in regard the space taken by the ToolBar and StatusBar. ... (microsoft.public.dotnet.framework.windowsforms) - Re: Things in an OnLoad event
... I know that the StatusBar is created because I already have other text ... the repro was developed from the ground up. ... >could you try loading your user control in the run-time instead, ... >think this issue needs further investigation, a repro sample is needed to ... (microsoft.public.dotnet.framework.windowsforms) |
|