Billing system

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
esgici
Posts: 4513
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Re: Billing system

Post by esgici » Mon Oct 10, 2011 10:53 am

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: 4513
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Mon Oct 10, 2011 2:14 pm

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: 4513
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Mon Oct 10, 2011 2:25 pm

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: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Mon Oct 10, 2011 2:56 pm

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: 3219
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 125 times
Contact:

Post by mol » Mon Oct 10, 2011 3:24 pm

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: 4513
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Mon Oct 10, 2011 3:52 pm

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: 3219
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 125 times
Contact:

Post by mol » Mon Oct 10, 2011 3:59 pm

It would be great to disable ACTION KEY's while activating top or context menu.

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Mon Oct 10, 2011 4:00 pm

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: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Mon Oct 10, 2011 4:03 pm

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: 4513
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Mon Oct 10, 2011 4:04 pm

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