Billing system

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Billing system

Post by esgici »

mol wrote: I've installed last version of DBA, but ca't find Floating Buttons, where they are?
Please look at DBAFBtns.Prg

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Billing system

Post by esgici »

Hi Marek
mol wrote:...where they are?
Perhaps I misunderstood your question :(

Floating buttons are file (table) name(s) at top (head) of browse of each table ;)

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Billing system

Post by esgici »

Hi Marek
mol wrote:...I've used arrow keys to navigate in "excel" style...
Did you tried SET NAVIGATIONMODE EXCEL ( mentioned here )

Regards

--

Esgici
Last edited by esgici on Mon Oct 10, 2011 3:54 pm, edited 1 time in total.
Viva INTERNATIONAL HMG :D
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: Billing system

Post by Rathinagiri »

Hi Esgici,

Set navigationmode is to navigate inside a grid and that too in inplaceedit.

This navigation is inside a main window navigating through various buttons. Normally buttons can be navigated using tab. Marek has changed this to move around using arrow keys.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Billing system

Post by mol »

Writing
I've used arrow keys to navigate in "excel" style
I had reactions on arrow keys on my mind.

But, I had to disable "ON KEY arrow-key ACTION...." phrases because they caused problem in Main Menu - it was almost impossible to use this menu by keyboard - only with mouse it worked good.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Billing system

Post by esgici »

Hi Rathi and Marek

Thanks for valuable explanations :)

Playing keyboard's keys interested me since beginning of HMG ( aaah, that old-gold days, where is my INKEY(0) :?: ) :(

And IMHO, ON KEY is a weird command, by complexity and limits ( definable only for whole window, not for one control or a control groups) :(

It's also dangerous by probable complications with other tasks, especially activities of OS itself. :?

So I wonder everything about that subject.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Billing system

Post by mol »

It would be great to disable ACTION KEY's while activating top or context menu.
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: Billing system

Post by Rathinagiri »

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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
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: Billing system

Post by Rathinagiri »

mol wrote:It would be great to disable ACTION KEY's while activating top or context menu.
Hi Marek,

You can use above sample to enable lFocus whenever the user is in at least one button. If all the buttons are lost focus you just disable lFocus.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Billing system

Post by esgici »

rathinagiri wrote: By this way, we can restrict the key usage to a single control.
Thanks Rathi :)

Nice idea :idea:

I will try it.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
Post Reply