Page 3 of 5

Re: Billing system

Posted: Mon Oct 10, 2011 10:53 am
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

Re: Billing system

Posted: Mon Oct 10, 2011 2:14 pm
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

Re: Billing system

Posted: Mon Oct 10, 2011 2:25 pm
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

Re: Billing system

Posted: Mon Oct 10, 2011 2:56 pm
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.

Re: Billing system

Posted: Mon Oct 10, 2011 3:24 pm
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.

Re: Billing system

Posted: Mon Oct 10, 2011 3:52 pm
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

Re: Billing system

Posted: Mon Oct 10, 2011 3:59 pm
by mol
It would be great to disable ACTION KEY's while activating top or context menu.

Re: Billing system

Posted: Mon Oct 10, 2011 4:00 pm
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.

Re: Billing system

Posted: Mon Oct 10, 2011 4:03 pm
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.

Re: Billing system

Posted: Mon Oct 10, 2011 4:04 pm
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