473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

status bar

lee123
556 512MB
hello there, i have a question i have a status bar on my form it displays the time, the date if i wanted a message to appear in it how can i do that? well what i mean is at a certain time is there a way to display "Break Time" or "lunch time" in one of the panels. or can i use a text box to display these things from the time in the panels.

lee 123
Oct 18 '07 #1
9 2996
ADezii
8,834 Expert 8TB
hello there, i have a question i have a status bar on my form it displays the time, the date if i wanted a message to appear in it how can i do that? well what i mean is at a certain time is there a way to display "Break Time" or "lunch time" in one of the panels. or can i use a text box to display these things from the time in the panels.

lee 123
Displaying Text in the Status Bar is a very straightforward and simple operation.

To display Text in the Status Bar:
Expand|Select|Wrap|Line Numbers
  1. Dim varRet As Variant
  2. varRet = SysCmd(acSysCmdSetStatus, "Place Text to display in the Status Bar here")
To remove Text from the Status Bar:
Expand|Select|Wrap|Line Numbers
  1. Dim varRet As Variant
  2. varRet = SysCmd(acSysCmdClearStatus)
Oct 18 '07 #2
lee123
556 512MB
does this work when the clock reaches a certain time so when it hits...oh lets say 12:00 P.M the message will say lunch time

lee123
Oct 19 '07 #3
lee123
556 512MB
and where do i put the code behind the status bar

lee123
Oct 19 '07 #4
ADezii
8,834 Expert 8TB
does this work when the clock reaches a certain time so when it hits...oh lets say 12:00 P.M the message will say lunch time

lee123
  1. Set the Form's Timer Interval to 1000 (1 second).
  2. Declare a Form Level Variable.
    Expand|Select|Wrap|Line Numbers
    1. Dim varRet As Variant
  3. Clear the Status Bar in the Open() Event of the Form.
    Expand|Select|Wrap|Line Numbers
    1. Private Sub Form_Open(Cancel As Integer)
    2.   varRet = SysCmd(acSysCmdClearStatus)
    3. End Sub
  4. Place similar code in the Form's Timer() Event.
    Expand|Select|Wrap|Line Numbers
    1. Private Sub Form_Timer()
    2. If Time() = #12:00:00 PM# Then
    3.   varRet = SysCmd(acSysCmdSetStatus, "Time for lunch")
    4. ElseIf Time() = #1:00:00 PM# Then
    5.   varRet = SysCmd(acSysCmdSetStatus, "Lunch is over - back to work guys!")
    6. ElseIf Time() = #1:05:00 PM# Then
    7.   'Clear Status Bar at 1:05 PM
    8.   varRet = SysCmd(acSysCmdClearStatus)
    9. Else
    10. End If
    11. End Sub
Oct 19 '07 #5
lee123
556 512MB
ok i tried this but not getting anything.

to see if i did this right and understand what you are explaining i got this
in the forms timer i entered the code you gave me then in the open event of the form i placed the other code. the variable i place in the timer event or was i suppose to place this in the open event? anyway this is what i did.

lee123
Oct 19 '07 #6
ADezii
8,834 Expert 8TB
ok i tried this but not getting anything.

to see if i did this right and understand what you are explaining i got this
in the forms timer i entered the code you gave me then in the open event of the form i placed the other code. the variable i place in the timer event or was i suppose to place this in the open event? anyway this is what i did.

lee123
Place this Variable Declaration in the General ==> Declarations sections of the Form's Code Module.
Expand|Select|Wrap|Line Numbers
  1. Dim varRet As Variant
Oct 19 '07 #7
lee123
556 512MB
ok adezii i have done everything you said and still nothing. question, do i have to set anything in the status bar such as text or anything because i have done what you said to do and no text in the status bar does the time and the date have to be in a certain panel because i have the date in the first panel and the time in the 7th panel

lee123
Oct 19 '07 #8
ADezii
8,834 Expert 8TB
ok adezii i have done everything you said and still nothing. question, do i have to set anything in the status bar such as text or anything because i have done what you said to do and no text in the status bar does the time and the date have to be in a certain panel because i have the date in the first panel and the time in the 7th panel

lee123
You do not have to do anything else in the Status Bar. You will see nothing in the Status Bar until 12:00:00 PM (Noon) and again at 1:00:00 PM (after lunch). Did you set the Form's Timer Interval to 1000?
Oct 20 '07 #9
lee123
556 512MB
yes but when it hits that time there is nothing no text nothing

lee123
Oct 20 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: mark4asp | last post by:
Why won't the window.status message change ? IE ver. 6.0.2800.1106 displays the tooltip OK. <td> <A HREF="editAuthor.asp?item=4" title="Edit author details"...
2
by: Charles Mendell | last post by:
1. When I go to http://www.w3schools.com/js/default.asp and choose: 2. JS HTML DOM and then choose: 3. the Window object and then choose: 4. Write some text in the windows status bar ( a link)...
6
by: Ada | last post by:
i have a little bit of issue getting the status bar to work properly. this is what happens now. when the program loaded, the status is "READY..." the code is inside the FORM LOAD. i also...
19
by: Frances | last post by:
Firefox is not respecting window.status, examples in this pg http://www.csua.berkeley.edu/~jgwang/jsform02.htm are ignored by Firefox.. why is this.. is there a solution.. thank you.. Frances
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?...
4
by: Mark | last post by:
Hey folks, I'm looking at making the following query more efficient potentially using the ranking functions and I'd like some advice from the gurus. The purpose of the following is to have a...
3
by: bharathreddy | last post by:
This article will explain you how to find the status of the fax operation. (Using FAXCOM.dll). Author: Bharath Reddy VasiReddy Reference to the FAXCOM.DLL Reference to import FAXCOM...
0
by: Edwin.Madari | last post by:
updated creature running in its own thread will get you started. try it foryourself, change sleep times per your need. import os, sys, threading, time class Creature: def __init__(self,...
9
by: tshad | last post by:
I have a Windows App that is doing some work and then writing a "Now Processing..." line to the status line of the window as well as the Textbox on the form. But the problem is that the work is...
0
by: tvnaidu | last post by:
I wrote a status page HTML code, here I have 8 port status, it prints first 7 and last status it won't print, from there onwards it won't print footer also, if I make 10 instead 8, then it prints...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.