Page 4 of 5
Re: Billing system
Posted: Mon Oct 10, 2011 4:06 pm
by Rathinagiri
Yes. This I have used in many projects. If a grid is focused and an user presses DEL key, I will delete the row. However, if he presses DEL key outside the grid, the normal operation will continue.
Re: Billing system
Posted: Mon Oct 10, 2011 5:36 pm
by mol
rathinagiri wrote:I too get this problem Esgici.
But I have avoided by using like this.
Code: Select all
public lFocused := .f.
define window blah blah
define grid blah
row 10
col 10
on gotfocus lFocused := .t.
on lostfocus lFocused := .f.
end grid
on key DOWN action doarrowaction()
end window
function doarrowaction
if lFocused
endif
return nil
By this way, we can restrict the key usage to a single control.
very smart and interesting idea !
I'll try to implement it... It's easy because all buttons are defined in the loop, so few lines of code will be enough to realise it.
THX Rathi!
Re: Billing system
Posted: Mon Oct 10, 2011 6:19 pm
by mol
I've modified code, but ... Main menu doesn't take focus from other controls ...
So, this idea is not for use...
Maybe I'll find something different.
Best regards, Marek
Re: Billing system
Posted: Mon Oct 10, 2011 6:52 pm
by Rathinagiri
I will try a small sample Marek.
Re: Billing system
Posted: Sat Oct 22, 2011 1:22 pm
by bpd2000
Dear Marek
Interest to see Billing system source code
Re: Billing system
Posted: Mon Oct 24, 2011 6:12 am
by mol
I've send you link in private message. So, happy testing!
Re: Billing system
Posted: Tue Oct 25, 2011 5:26 am
by bpd2000
Dear Marek
No word for your Excellant code
It is not code but, is BIBLE for me to learn somthing
Thank you for sharing your hard work
Re: Billing system
Posted: Tue Oct 25, 2011 7:28 am
by mol
It's my pleasure to help you!
Best regards, Marek
Re: Billing system
Posted: Tue Nov 08, 2011 1:37 pm
by mol
I've made some changes in function displaying table of invoices. It's incredible, how relations can slow down the program in the network environment:
You can watch old version with relations and filter:
http://www.molsystemy.pl/hmg/1-stara-wersja.avi
and quick new version:
http://www.molsystemy.pl/hmg/2-nowa-wersja.avi
Re: Billing system
Posted: Tue Nov 08, 2011 1:52 pm
by mrduck
Hi Malek,
it would be nice to know which are the changes you did in the code
Francesco