![]() |
StatusBar Date and Time |
Post Reply ![]() |
Author | |
Juzzy ![]() Newbie ![]() Joined: 06 April 2006 Location: Australia Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
Juzzy ![]() Newbie ![]() Joined: 06 April 2006 Location: Australia Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
Anyone?
|
|
![]() |
|
gshawn ![]() Senior Member ![]() Joined: 04 October 2004 Status: Offline Points: 227 |
![]() ![]() ![]() ![]() ![]() |
In your CommandBars_Update event, just do:
Is it really worth adding extra functionality to the control when this can be handled with 1 line of code? :) |
|
![]() |
|
Juzzy ![]() Newbie ![]() Joined: 06 April 2006 Location: Australia Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
How often does the CommandBars_Update event get fired? If my app is just sitting there with no interaction, will it get updated? Is |
|
![]() |
|
gshawn ![]() Senior Member ![]() Joined: 04 October 2004 Status: Offline Points: 227 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
barianto ![]() Groupie ![]() ![]() Joined: 01 May 2006 Location: Indonesia Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() |
Yes, the time on statusbar won't update.
Do we have to set our own timer? |
|
![]() |
|
gshawn ![]() Senior Member ![]() Joined: 04 October 2004 Status: Offline Points: 227 |
![]() ![]() ![]() ![]() ![]() |
You don't need to set a timer, just use the CommandBars_Update event.... Read my post above for a sample. |
|
![]() |
|
barianto ![]() Groupie ![]() ![]() Joined: 01 May 2006 Location: Indonesia Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() |
sorry, i miss that one... :(
you're right |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |