How to drag and drop ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: How to drag and drop ?

Post by serge_girard »

I understand !
Does the touchscreen work fine?
Serge
There's nothing you can do that can't be done...
User avatar
zolysoftsolutions
Posts: 139
Joined: Wed Feb 29, 2012 3:33 am
Location: Gyulakuta, Erdélyország
Contact:

Re: How to drag and drop ?

Post by zolysoftsolutions »

Yes Serge, work fine.
Is just three thinghs with problem:
- I need grid with higher rows, but with normal fontsize (maybe some empty pictures will solve it)
- The drag and drop issue, in the way to solve :)
- The password reading by touch is a big problem. I use some labels (tried also buttons) to read the numeric password, but the click event is to slow..when I touch wery fast on the same button, or label, the click event is executed just one time. By example when I have code 007, if I type fast, what is normal after a time, in the pasword box will appear just 07, and is very frustrating. I solved with a card reader and I also try to use a fingerprint reader. Unfortunatelly no faster solution in HMG..the labels and buttons have no dblclick event :(
_______________________________
Open eyes for you!
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: How to drag and drop ?

Post by serge_girard »

Maybe Claudio knows a solution?

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: How to drag and drop ?

Post by mol »

Last autumn I wrote procedures for touchscreen in the restaurant. I wrote my minigrid based on labels. In this case I have full control on row height, cell colours etc. You can find my solution on the forum.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

How to drag and drop ?

Post by Pablo César »

zolysoftsolutions wrote: Thu Feb 23, 2017 4:54 pm I will not use mouse.. I will use on touchscreen and is more practical to drag-and-drop than a lot of clicks..
Ummm... very interesting ! :)

So sorry Zoly, Could not with DRAG & DROP. This must be because the DRAGITEMS function already exists.

I was able to show you what Andy said.

Sorry, I'm focused on my interest in HMG_DOC project and I could not. Who knows at some other time or another colleague is willing to do something in C.

Any way, this is my changes:
 
Demo3.rar
Source files
(2.3 KiB) Downloaded 212 times
 
See here it's a C code: https://www.codeproject.com/Articles/36 ... op-ListBox

It has more to do with events and also give a dragging effect ...

Probably to elaborate an Event control would be posible and the efects: I would change mouse pointers at the time. ;)
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
zolysoftsolutions
Posts: 139
Joined: Wed Feb 29, 2012 3:33 am
Location: Gyulakuta, Erdélyország
Contact:

Re: How to drag and drop ?

Post by zolysoftsolutions »

Thank you very much Pablo and Mol.
_______________________________
Open eyes for you!
edk
Posts: 911
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: How to drag and drop ?

Post by edk »

Hi Zoly,
zolysoftsolutions wrote: Thu Feb 23, 2017 6:01 pm The password reading by touch is a big problem. I use some labels (tried also buttons) to read the numeric password, but the click event is to slow..when I touch wery fast on the same button, or label, the click event is executed just one time. By example when I have code 007, if I type fast, what is normal after a time, in the pasword box will appear just 07, and is very frustrating. I solved with a card reader and I also try to use a fingerprint reader. Unfortunatelly no faster solution in HMG..the labels and buttons have no dblclick event :(
I don't have a touch screen to check the program works properly, but check this solution:

Edward.

PS You can improve by changing into OnMouseOverLabelButton()

Code: Select all

IF cControl='L' .AND. (nMouseMess=513 .OR. nMouseMess=515)
	SetProperty(cForm, cControl, 'BACKCOLOR', {128,0,0})
	Wpass.pass.value:=Wpass.pass.value+SUBSTR(cControl,2)
	Millisec(50)
	SetProperty(cForm, cControl, 'BACKCOLOR', {128,128,128})
ENDIF
Attachments
Pass_touch.7z
(1.06 MiB) Downloaded 219 times
Last edited by edk on Fri Feb 24, 2017 11:32 am, edited 2 times in total.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

How to drag and drop ?

Post by Pablo César »

Thank you Edward for sharing.

It's working perfectly !

Very nice. Congrats
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
zolysoftsolutions
Posts: 139
Joined: Wed Feb 29, 2012 3:33 am
Location: Gyulakuta, Erdélyország
Contact:

Re: How to drag and drop ?

Post by zolysoftsolutions »

Thank you so much Edward and Pablo.. a big problem has been solved.
Regards,
Zoly B.
_______________________________
Open eyes for you!
edk
Posts: 911
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: How to drag and drop ?

Post by edk »

Zoly, Nincs mit.
Lengyel, magyar – két jó barát, együtt harcol, s issza borát. :D
Post Reply