my grid work. just have a look pls

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
ILKNUR
Posts: 24
Joined: Thu Apr 22, 2010 7:16 am
Location: Istanbul- Turkey

my grid work. just have a look pls

Post 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.
Attachments
dchoice.rar
(614.48 KiB) Downloaded 296 times
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: my grid work. just have a look pls

Post 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().
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
ILKNUR
Posts: 24
Joined: Thu Apr 22, 2010 7:16 am
Location: Istanbul- Turkey

Re: my grid work. just have a look pls

Post by ILKNUR »

yes , I got it. thanx ;)

pls tell if you see anything else seems wrong.
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: my grid work. just have a look pls

Post 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. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
ILKNUR
Posts: 24
Joined: Thu Apr 22, 2010 7:16 am
Location: Istanbul- Turkey

Re: my grid work. just have a look pls

Post by ILKNUR »

ok , i will protect users hands promise :D

thanks for sharing
Post Reply