Status Bar

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Status Bar

Post by Vanguarda »

Hello HMG Users,

I have a form main with a StatusBar. when i try this command:
Main.StatusBar.Item(1) := " Text of status bar" :D

in my module main.prg, work fine. But when i try in other module it don´t work. :shock:

My form main is called in main.prg module.

When i try in another module, i get a message of error in line of command (Main.StatusBar.Item(1)) erro like "."

what´s going on?
Anybody help me?

PS: Sorry my bad english :lol:

Tank´s a lot, for your attention.
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
mol
Posts: 3728
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Status Bar

Post by mol »

Did you try to declare window MAIN in other module:
DECLARE WINDOW MAIN
before line that changes status line?

Marek
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Status Bar

Post by Vanguarda »

Hello Marek,

i don´t understand your question :?:


Regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Status Bar

Post by Rathinagiri »

To refer a window in a different prg file, we have to use "declare window windowname" command before referring it. That is what Marek says.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Status Bar

Post by esgici »

Hi Paulo


In addition to DEFINE WINDOW, we have a DECLARE WINDOW statement:

According to HMG Documentation:
DECLARE WINDOW : Declares a window name..

Syntax : DECLARE WINDOW <WindowName>

A window must be declared using this command, if you need to refer to it prior
its definition in code, or when you refer to it in a different .prg file from
the one it was defined using semi-oop syntax.

Saludos

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Status Bar

Post by Vanguarda »

i don´t try it. I´ll try today, in my house.

Thank very much Marek, rathinagiri, esgici.

you are amazing.



regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
CCH4CLIPPER
Posts: 140
Joined: Tue Mar 03, 2009 8:59 am

Re: Status Bar

Post by CCH4CLIPPER »

Hi Marek, Rathinagiri & Esgici

Tx for providing an answer to one of my unasked questions :D

CCH
http://cch4clipper.blogspot.com
Post Reply