Page 1 of 1

my grid work. just have a look pls

Posted: Tue Dec 21, 2010 11:46 am
by ILKNUR
Hi,

I tried to write a function for grid. With parameters I can call it from anywhere .

Field names, headers, window and grid sizes , file name ,column controls , key - and- button functions ...etc

OK , you will say . "Then what ?" :oops:
As I am a beginner , would you please be kind to look at my code and tell me your opinion so that I will see my faults....

in dchoice function you will see the parameters explanation .. and also a dbf for sample running.

Re: my grid work. just have a look pls

Posted: Tue Dec 21, 2010 1:11 pm
by Rathinagiri
Nice work Ilknur.

I am sure you can find the difference between child/modal windows. In your application, if you press the run button again, keeping the child window open, you will get run time error, because, a window can be defined only once.

To avoid this, you can make the window to be modal, so that, the user has to close first the window to click the run button again. Otherwise, you have to check for iswindowdefined()/iswindowactive().

Re: my grid work. just have a look pls

Posted: Tue Dec 21, 2010 1:25 pm
by ILKNUR
yes , I got it. thanx ;)

pls tell if you see anything else seems wrong.

Re: my grid work. just have a look pls

Posted: Tue Dec 21, 2010 3:17 pm
by Rathinagiri
ILKNUR wrote:yes , I got it. thanx ;)

pls tell if you see anything else seems wrong.
Even though it might not be wrong, IMHO, it is better to have the controls 'tight' inside a window. That is, we should not leave empty space anywhere. This will save movement of mouse, there by avoiding some ache in hands. :)

Re: my grid work. just have a look pls

Posted: Tue Dec 21, 2010 3:59 pm
by ILKNUR
ok , i will protect users hands promise :D

thanks for sharing