Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - StatusBar Date and Time
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

StatusBar Date and Time

 Post Reply Post Reply
Author
Message
Juzzy View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Australia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Juzzy Quote  Post ReplyReply Direct Link To This Post Topic: StatusBar Date and Time
    Posted: 17 April 2006 at 7:25pm

When will Date and Time types be added to the StatusBar objects?

Currently there is CapLock, NumLock and (the ever useful) ScrollLock, but unlike even the basic VB6 standard statusbar, there is no Date or Time (or Kana) objects.

All your competitors have this and as I said, even the normal VB6 control has it.

I don't want to use the others or the standard VB6 one, because I want the extra functionality that CodeJock offers, and I don't want to have to set my own timer to handle it either.

Back to Top
Juzzy View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Australia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Juzzy Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2006 at 11:29pm
Anyone?
Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2006 at 2:05am

In your CommandBars_Update event, just do:

StatusBar.Pane(1).Text = Now  'displays date and time
StatusBar.Pane(2).Text = Date 'displays date
StatusBar.Pane(3).Text = Time 'displays time

Is it really worth adding extra functionality to the control when this can be handled with 1 line of code? :)

Back to Top
Juzzy View Drop Down
Newbie
Newbie
Avatar

Joined: 06 April 2006
Location: Australia
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Juzzy Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2006 at 1:52am

How often does the CommandBars_Update event get fired?

If my app is just sitting there with no interaction, will it get updated?

Is

Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2006 at 6:35am

By default it is fired every 100ms, although you can modify the UpdatePeriod property if this does not suit your needs.

Try adding a Debug.Print Timer, "CommandBars_Update event fired!" to your code and you can see how it works.

Back to Top
barianto View Drop Down
Groupie
Groupie
Avatar

Joined: 01 May 2006
Location: Indonesia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote barianto Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2006 at 1:32am
Yes, the time on statusbar won't update.
Do we have to set our own timer?
Back to Top
gshawn View Drop Down
Senior Member
Senior Member


Joined: 04 October 2004
Status: Offline
Points: 227
Post Options Post Options   Thanks (0) Thanks(0)   Quote gshawn Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2006 at 4:08am

You don't need to set a timer, just use the CommandBars_Update event.... Read my post above for a sample.

Back to Top
barianto View Drop Down
Groupie
Groupie
Avatar

Joined: 01 May 2006
Location: Indonesia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote barianto Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2006 at 4:24am
sorry, i miss that one... :(

you're right
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.