Page 1 of 1

Grid in Tab

Posted: Fri Apr 13, 2012 10:54 am
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

Re: Grid in Tab

Posted: Fri Apr 13, 2012 11:00 am
by Rathinagiri
Even though it is placed in the tab, it should be referred as FormName.ControlName only.

Re: Grid in Tab

Posted: Fri Apr 13, 2012 11:10 am
by dodogo
THX rathinagiri.
But when I try. Result is not OK.

Re: Grid in Tab

Posted: Fri Apr 13, 2012 11:21 am
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?

Re: Grid in Tab

Posted: Fri Apr 13, 2012 11:45 am
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

Re: Grid in Tab

Posted: Fri Apr 13, 2012 12:30 pm
by Rathinagiri
Application GUI design looks nice Dodo. Cool.

Re: Grid in Tab

Posted: Fri Apr 13, 2012 12:34 pm
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.