I'm new, and I've been away for awhile, but it's all been spent working and learning with HMG , 3 series ....
I'm having good luck with it... Today's question is a simple topic...
I have a main window ,, wind_1 The statusbar / statusitem looks like this
STATUSITEM "Schedule Tracking : Current Line Selected : " +mPath
mPath is a PUBLIC variable that holds the path and name of the area we are working with.....
When the program starts ,, mPath is set to the last place we were working with when we quit the last time ...
The window signs on looking like ;; Current Line Selected : c:\sch39m\Line594
It all works well .... I have a routine that allows us to change locations. That works good,,,, mPath value changes to the correct new path information....
All other processes work and open the correct files in the correct location we have changed to (mPath) .... The mechanicals work...
My problem,,, I can't get the statusitem on my main window to update and show the changed value of (mPath) in the statusitem...
I'm sorry for a long post over a cosmetic item ... It's the little stuff I have problems with.
Bill
Statusbar Statusitem updating ...
Moderator: Rathinagiri
- Rathinagiri
- Posts: 5482
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Statusbar Statusitem updating ...
The point is, it is not automatically done. We have to run this statement whenever the value of mPath changes.DenCo wrote:I'm new, and I've been away for awhile, but it's all been spent working and learning with HMG , 3 series ....
I'm having good luck with it... Today's question is a simple topic...
I have a main window ,, wind_1 The statusbar / statusitem looks like this
STATUSITEM "Schedule Tracking : Current Line Selected : " +mPath
mPath is a PUBLIC variable that holds the path and name of the area we are working with.....
When the program starts ,, mPath is set to the last place we were working with when we quit the last time ...
The window signs on looking like ;; Current Line Selected : c:\sch39m\Line594
It all works well .... I have a routine that allows us to change locations. That works good,,,, mPath value changes to the correct new path information....
All other processes work and open the correct files in the correct location we have changed to (mPath) .... The mechanicals work...
My problem,,, I can't get the statusitem on my main window to update and show the changed value of (mPath) in the statusitem...
I'm sorry for a long post over a cosmetic item ... It's the little stuff I have problems with.
Bill
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Statusbar Statusitem updating ...
Hello,
Try the following line after updating of mPath variable:
Hope that helps 
Try the following line after updating of mPath variable:
Code: Select all
...
wind_1.StatusBar.Item(1) := "Schedule Tracking : Current Line Selected : " +mPathKind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Re: Statusbar Statusitem updating ...
Thank You both for your replies..
I knew I would have to restate the value for it to update,,, just every syntax I could think of either threw an error,, or did nothing ...
Gfilatov,, your example worked perfectly ! .... Thanks again ...
Bill
I knew I would have to restate the value for it to update,,, just every syntax I could think of either threw an error,, or did nothing ...
Gfilatov,, your example worked perfectly ! .... Thanks again ...
Bill