GET-PICTURE-Problem

GET-PICTURE-Problem

Postby byte-one » Wed Oct 19, 2016 11:53 am

If i insert a text from clipboard the text is not converted to uppercase, if the get has picture clausula "@!". Other pictures i have not tested.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: GET-PICTURE-Problem

Postby karinha » Wed Oct 19, 2016 12:00 pm

Example?

Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7814
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: GET-PICTURE-Problem

Postby Antonio Linares » Wed Oct 19, 2016 6:38 pm

Günther,

In Class TGet (source/classes/get.prg) try this:

Code: Select all  Expand view

      case nMsg == WM_PASTE
           if GetFocus() == ::hWnd
              CallWindowProc( ::nOldProc, ::hWnd, WM_PASTE, 0, 0 )
#ifdef UTFREVN
              if ::lWideChar
                 ::oGet:buffer   := ::GetText()
                 ::oGet:pos := ::nPos := nHiWord( ::SendMsg( EM_GETSEL ) ) + 1
                 ::SetText( ::oGet:buffer )
              else
                 if ValType( ::oGet:Original ) $ "CM"
                    SetWindowText( ::hWnd, SubStr( GetWindowText( ::hWnd ), 1, Len( ::oGet:Original ) ) )
                 endif
                 ::oGet:Buffer = GetWindowText( ::hWnd )
                 ::oGet:Pos   =  nLoWord( ::SendMsg( EM_GETSEL ) ) + 1
              endif

#else
              if ValType( ::oGet:Original ) $ "CM"
                 SetWindowText( ::hWnd, SubStr( GetWindowText( ::hWnd ), 1, Len( ::oGet:Original ) ) )
              endif

              ::oGet:Buffer = GetWindowText( ::hWnd )
              ::oGet:Pos = GetCaretPos()[ 2 ]
#endif
              ::oGet:UpdateBuffer()  // New !!!
              ::Assign()
              if ::bChange != nil
                 Eval( ::bChange,,, Self )
              endif
           endif
           return 0
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42094
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests