Grid in Tab

Forum help and suggestions to improve this forum.

Moderator: Rathinagiri

Post Reply
User avatar
dodogo
Posts: 17
Joined: Thu Feb 11, 2010 9:14 pm
Location: Prešov, Slovakia, EU

Grid in Tab

Post by dodogo »

Hi all.
I have little problem. I have grid in tab. I can not refresh this grid. Look picture.

what is problem?

dodo
Attachments
tab_0.JPG
tab_0.JPG (28.72 KiB) Viewed 5079 times
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: Grid in Tab

Post by Rathinagiri »

Even though it is placed in the tab, it should be referred as FormName.ControlName only.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
dodogo
Posts: 17
Joined: Thu Feb 11, 2010 9:14 pm
Location: Prešov, Slovakia, EU

Re: Grid in Tab

Post by dodogo »

THX rathinagiri.
But when I try. Result is not OK.
Attachments
tab_1.JPG
tab_1.JPG (28.19 KiB) Viewed 5073 times
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Grid in Tab

Post by mol »

I've met the problem like this.
Try to test if tab is already defined.
So add phrase to function GRID_ZAKAZKY_ONCHANGE():

Code: Select all

if !IsControlDefined(TAB_0, FORM_0)
 return
endif
From my observations (I didn't study sources of hmg) , controls placed on tab are defined before definition of tab, later the tab is defined and controls are added in tab at the end... So, this order causes problems while init time.
Strange...
Maybe I'm wrong?
User avatar
dodogo
Posts: 17
Joined: Thu Feb 11, 2010 9:14 pm
Location: Prešov, Slovakia, EU

Re: Grid in Tab

Post by dodogo »

THX Marek.
I handly edit file form_0.frm. I just remove grid_polozky to first position in Tab def. Every is Ok now.

imho. Last summer I was in Krakow three days. nice ..
dodo
Attachments
maja.JPG
maja.JPG (84.08 KiB) Viewed 5063 times
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: Grid in Tab

Post by Rathinagiri »

Application GUI design looks nice Dodo. Cool.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Grid in Tab

Post by mol »

dodogo wrote:THX Marek.
I handly edit file form_0.frm. I just remove grid_polozky to first position in Tab def. Every is Ok now.

imho. Last summer I was in Krakow three days. nice ..
dodo
Last winter I was riding on Snowboard in Slovakia in Zuberec :lol:
I'd love this place.
Post Reply