GET with ACTION Wrong!

GET with ACTION Wrong!

Postby JC » Wed Aug 27, 2008 5:29 pm

I try to use the GET with ACTION clausule, but the right align still wrong

The value still behind the button! Very ugly!


Image
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Actions in Gets

Postby ukoenig » Wed Aug 27, 2008 6:17 pm

Hello JC,

There was a topic in the forum < Button in Get problem >,
a few days ago, about this problem.

Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Antonio Linares » Wed Aug 27, 2008 6:44 pm

Júlio,

We are currently working on it, to solve that problem and also the horizontal scrolling issue.
regards, saludos

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

Postby JC » Wed Aug 27, 2008 6:46 pm

Antonio Linares wrote:Júlio,

We are currently working on it, to solve that problem and also the horizontal scrolling issue.


Ok! Thanks for your answer!
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby demont frank » Thu Sep 25, 2008 9:41 am

Antonio Linares wrote:Júlio,

We are currently working on it, to solve that problem and also the horizontal scrolling issue.


Is it solved in 8.9 ?

Frank
demont frank
 
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Postby Antonio Linares » Thu Sep 25, 2008 10:00 am

Frank,

No, not yet.

We plan to have it ready in a few days.
regards, saludos

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

Postby Max HK » Wed Oct 15, 2008 4:26 pm

Has this problem been fixed in 8.10?

Thks.
Max HK
 
Posts: 23
Joined: Wed Oct 15, 2008 1:04 pm

Postby Antonio Linares » Wed Oct 15, 2008 5:23 pm

No, it has not been solved, though the source code is in 8.10.

Please review source\classes\tget.prg and look for WM_NCCALCSIZE
regards, saludos

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

Postby Patrick Mast » Thu Oct 16, 2008 8:27 am

Antonio Linares wrote:No, it has not been solved, though the source code is in 8.10.Please review source\classes\tget.prg and look for WM_NCCALCSIZE
I'm also waiting for this fix before I can use it :)

Patrick
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Postby Antonio Linares » Thu Oct 16, 2008 9:20 am

Patrick,

The source code for it is in 8.10, but if we apply it the client area gets reduced and the button is not visible.

We are not sure yet if it can get visible, or if we have to place it out of the GET, not as a child control.
regards, saludos

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

Postby Max HK » Fri Nov 07, 2008 9:07 am

Hi Antonio:

Will you solve it in 8.11?

I have searched this feature for a long time. Waiting for it since I want to start a new project massively using this feature.

Thanks.
Max HK
 
Posts: 23
Joined: Wed Oct 15, 2008 1:04 pm

Postby JC » Fri Nov 07, 2008 12:19 pm

Antonio Linares wrote:Patrick,

The source code for it is in 8.10, but if we apply it the client area gets reduced and the button is not visible.

We are not sure yet if it can get visible, or if we have to place it out of the GET, not as a child control.


Antonio,

Maybe the button must be a child of the owner of "get"... painted beside him.
Will stay beautiful.
What you think about this?
Image
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby Antonio Linares » Fri Nov 07, 2008 1:09 pm

This is a proposed solution by mcfox. We appreciate your feedback:

Modify these lines in Class TGet:
Code: Select all  Expand view
         case lAnd( GetWindowLong( ::hWnd, GWL_STYLE ), ES_RIGHT )
              SetTextAlign( ::hDC, TA_RIGHT )
              if ::lSpinner
                 ExtTextOut( ::hDC, 1, ::nWidth() - 7 - GetSysMetrics( SM_CYHSCROLL ),; 
                    { 0, 0, ::nHeight(), ::nWidth() }, GetWindowText( ::hWnd ) )
              else
                 ExtTextOut( ::hDC, 1, ::nWidth() - 7 ,; 
                    { 0, 0, ::nHeight(), ::nWidth() }, GetWindowText( ::hWnd ) )
              endif


with this if:
Code: Select all  Expand view
         case lAnd( GetWindowLong( ::hWnd, GWL_STYLE ), ES_RIGHT )
              SetTextAlign( ::hDC, TA_RIGHT )
              if ::lSpinner
                 ExtTextOut( ::hDC, 1, ::nWidth() - 7 - GetSysMetrics( SM_CYHSCROLL ),; 
                    { 0, 0, ::nHeight(), ::nWidth() }, GetWindowText( ::hWnd ) )
              else
                  if ValType( ::bAction ) == "B"  // Agregar
                      ExtTextOut( ::hDC, 1, ::nWidth() - 7 - ::nHeight,;  //agregar
                    { 0, 0, ::nHeight(), ::nWidth() }, GetWindowText( ::hWnd )  ) //agregar
                 else  //agregar
                    ExtTextOut( ::hDC, 1, ::nWidth() - 7 ,; 
                    { 0, 0, ::nHeight(), ::nWidth() }, GetWindowText( ::hWnd ) )
                  endif //agregar               
              endif
           


Finally, in:
Code: Select all  Expand view
::SetMargins( 1, 1 )

Modify it to:
Code: Select all  Expand view
    if ValType( ::bAction ) == "B" // new
       ::SetMargins( 1, ::nHeight) //new
    else //new
        ::SetMargins( 1, 1 )
    endif //new
regards, saludos

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

Postby JC » Wed Nov 12, 2008 6:56 pm

Antonio,

The solution of mcfox works very fine! Now, it's all ok!
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 86 guests