Statusbar Statusitem updating ...

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
DenCo
Posts: 32
Joined: Wed Dec 29, 2010 5:12 pm
Location: Tennessee / USA
Contact:

Statusbar Statusitem updating ...

Post by DenCo »

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
User avatar
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 ...

Post by Rathinagiri »

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
The point is, it is not automatically done. We have to run this statement whenever the value of mPath changes.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
gfilatov
Posts: 1116
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Statusbar Statusitem updating ...

Post by gfilatov »

Hello,

Try the following line after updating of mPath variable:

Code: Select all

...
wind_1.StatusBar.Item(1) := "Schedule Tracking : Current Line Selected : " +mPath
Hope that helps :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
DenCo
Posts: 32
Joined: Wed Dec 29, 2010 5:12 pm
Location: Tennessee / USA
Contact:

Re: Statusbar Statusitem updating ...

Post by DenCo »

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
Post Reply