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

User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

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

Post 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
Antonio Mart.
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Post by Antonio Mart. »

James,

No running. Never mind, It's not neccesary for me.

Code: Select all

   ACTIVATE dialog oDlg CENTER ;
                ON INIT ( oScrDlg:=  TScrDlg():New( oDlg, 1, 35, 1, 99 ),;
                msginfo("hi !"),;
                oDlg:oVScroll:hide(),;
                nil)
Regards
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Antonio Mart.
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Post by Antonio Mart. »

Antonio,

Thanks.

Another thing, please:

As can translate Harbour following ?

Code: Select all

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

Code: Select all

# define IS_POINTER_FLAG_SET_WPARAM (wParam, flag) (nand(nHIWORD(wParam,flag)) == (flag))
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

Antonio,

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

Antonio Linares
www.fivetechsoft.com
Antonio Mart.
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

Antonio,

There is an error here:

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

it should be:

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

Antonio Linares
www.fivetechsoft.com
Antonio Mart.
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Post by Antonio Mart. »

Antonio,

Woowww, ok ! thanks
Antonio Mart.
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Post by Antonio Mart. »

I have a small improvement for DlgEndOnLostFocus (). If anyone needed it, I would publish.
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

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

Post by Romeo »

Antonio Mart. wrote:Hi,

Calling to new Windows 8 virtual keyboard from fwh:

Code: Select all

ShellExecute(, "open", "TabTip.Exe")
Regards

How to close from fwh the keyboard ?

tks
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

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

Post by cnavarro »

Antonio Mart. wrote:I have a small improvement for DlgEndOnLostFocus (). If anyone needed it, I would publish.
Antonio, puedes publicarlo?
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Antonio Mart.
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Post 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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

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

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

Otto,

Please review FWH\samples\Testmmov.prg and FWH\samples\TestMov2.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

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

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Post Reply