How to drag and drop ?
Moderator: Rathinagiri
- serge_girard
- Posts: 3167
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: How to drag and drop ?
I understand !
Does the touchscreen work fine?
Serge
Does the touchscreen work fine?
Serge
There's nothing you can do that can't be done...
- zolysoftsolutions
- Posts: 139
- Joined: Wed Feb 29, 2012 3:33 am
- Location: Gyulakuta, Erdélyország
- Contact:
Re: How to drag and drop ?
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
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!
Open eyes for you!
- serge_girard
- Posts: 3167
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: How to drag and drop ?
Maybe Claudio knows a solution?
Serge
Serge
There's nothing you can do that can't be done...
Re: How to drag and drop ?
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.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
How to drag and drop ?
Ummm... very interesting !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..
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:
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
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- zolysoftsolutions
- Posts: 139
- Joined: Wed Feb 29, 2012 3:33 am
- Location: Gyulakuta, Erdélyország
- Contact:
Re: How to drag and drop ?
Thank you very much Pablo and Mol.
_______________________________
Open eyes for you!
Open eyes for you!
Re: How to drag and drop ?
Hi Zoly,
Edward.
PS You can improve by changing into OnMouseOverLabelButton()
I don't have a touch screen to check the program works properly, but check this solution: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
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.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
How to drag and drop ?
Thank you Edward for sharing.
It's working perfectly !
Very nice. Congrats
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
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- zolysoftsolutions
- Posts: 139
- Joined: Wed Feb 29, 2012 3:33 am
- Location: Gyulakuta, Erdélyország
- Contact:
Re: How to drag and drop ?
Thank you so much Edward and Pablo.. a big problem has been solved.
Regards,
Zoly B.
Regards,
Zoly B.
_______________________________
Open eyes for you!
Open eyes for you!
Re: How to drag and drop ?
Zoly, Nincs mit.
Lengyel, magyar – két jó barát, együtt harcol, s issza borát.
Lengyel, magyar – két jó barát, együtt harcol, s issza borát.