Page 4 of 6

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Sun Apr 28, 2013 4:01 pm
by James Bott
I wanted to remove the scrollbar of the dialogues. Because you can not delete them then I thought of greater width.

But then I did something: hide! How to hide, if Windows does not allow it?


Have you tried oDlg:oVScroll:hide() ?

Regards,
James

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Mon Apr 29, 2013 12:45 pm
by Antonio Mart.
James,

No running. Never mind, It's not neccesary for me.
Code: Select all  Expand view
  ACTIVATE dialog oDlg CENTER ;
                ON INIT ( oScrDlg:=  TScrDlg():New( oDlg, 1, 35, 1, 99 ),;
                msginfo("hi !"),;
                oDlg:oVScroll:hide(),;
                nil)


Regards

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Mon Apr 29, 2013 5:46 pm
by Antonio Linares
Antonio,

You could disable it doing:

oDlg:oVScroll:SetRange( 0, 0 )

in order to hide it, I think there is no other way but to remove the style WS_VSCROLL from the dialog hWnd.

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Mon Apr 29, 2013 9:20 pm
by Antonio Mart.
Antonio,

Thanks.

Another thing, please:

As can translate Harbour following ?
Code: Select all  Expand view

# define IS_POINTER_FLAG_SET_WPARAM (wParam, flag) (((DWORD) HIWORD (wParam) & (flag)) == (flag))


So ?
Code: Select all  Expand view

# define IS_POINTER_FLAG_SET_WPARAM (wParam, flag) (nand(nHIWORD(wParam,flag)) == (flag))

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Tue Apr 30, 2013 6:08 am
by Antonio Linares
Antonio,

Si, se ve bien, Lo has probado ? :-)

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Tue Apr 30, 2013 7:23 am
by Antonio Mart.
Antonio,

If you've tried it. I have not got what I expected. So my question was if I could be right or not.

Thanks in any case for your attention.

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Tue Apr 30, 2013 7:37 am
by Antonio Linares
Antonio,

There is an error here:

(nand(nHIWORD(wParam,flag)) == (flag))

it should be:

( nand( nHIWORD( wParam ),flag ) == ( flag ) )

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Tue Apr 30, 2013 8:50 am
by Antonio Mart.
Antonio,

Woowww, ok ! thanks

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Tue Apr 30, 2013 11:46 pm
by Antonio Mart.
I have a small improvement for DlgEndOnLostFocus (). If anyone needed it, I would publish.

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Tue Sep 10, 2013 5:17 pm
by Romeo
Antonio Mart. wrote:Hi,

Calling to new Windows 8 virtual keyboard from fwh:
Code: Select all  Expand view
ShellExecute(, "open", "TabTip.Exe")


Regards



How to close from fwh the keyboard ?

tks

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Sun Mar 09, 2014 10:47 pm
by cnavarro
Antonio Mart. wrote:I have a small improvement for DlgEndOnLostFocus (). If anyone needed it, I would publish.


Antonio, puedes publicarlo?

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Fri Mar 14, 2014 3:59 pm
by Antonio Mart.
Carlos,

Perdona por el retraso.
Mira, hará un mes o así, Antonio Linares publicó una solución que, sin haber entrado en detalles, me pareció mucho mejor que la mia.
La solución de Linares consistía en capturar el mouse para el dialogo actual, y si el click se producia fuera de los limites del dialogo entonces se hacia cerrar. Esa funcion/ rutina tiene que estar en el foro, no se si spanish o english. Si no la encuentras, avisa, que yo la guardé como oro en paño.

Si después de todo lo anterior, sigues queriendo que publique las modificaciones, lo hago: a mandar.

Saludos

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Thu Apr 30, 2015 7:29 am
by Otto
Hello,

Is there somewhere a running sample of a DIALOG which you can operate from the touch with your finger.
Thanks in advance
Otto

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Thu Apr 30, 2015 7:47 pm
by Antonio Linares
Otto,

Please review FWH\samples\Testmmov.prg and FWH\samples\TestMov2.prg

Re: Tablet and form style for Windows 8 (desktop ver.)

PostPosted: Thu Apr 30, 2015 9:05 pm
by Otto
Dear Antonio,
thank you.
But I mean an example with input fields and the use of the virtual keyboard.
Thanks in advance and best regards,
Otto