SendToBack

SendToBack

Postby Otto » Wed Jan 09, 2019 7:39 am

Hello,
is the a equivalent function to BringWindowToTop()
for SendToBack().
Thank you and best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6255
Joined: Fri Oct 07, 2005 7:07 pm

Re: SendToBack

Postby Antonio Linares » Wed Jan 09, 2019 8:47 am

Dear Otto,

You may use SetWindowPos() with the HWND_BOTTOM flag:

https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-setwindowpos
regards, saludos

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

Re: SendToBack

Postby Otto » Wed Jan 09, 2019 9:30 am

Dear Antonio
thank you.
I made following adds in the ItemPopupMenu of EasyReport.
Best regards
Otto

Code: Select all  Expand view

function SendToBack( hWnd )
    //HWND_BOTTOM
    SetWindowPos( hWnd,1,0,0,0,0,3)

RETURN nil

//----------------------------------------------------------------------------//


function ItemPopupMenu( oItem, nItem, nArea, nRow, nCol )

   local oMenu
   LOCAL cItemDef  := AllTrim( GetDataArea(  "Items",  AllTrim(STR(nItem,5)),, oER:aAreaIni[nArea] ))
   local oItemInfo := VRDItem():New( cItemDef )

   MENU oMenu POPUP
    MENUITEM "Send To Back" ACTION SendToBack( oItem:hWnd )
   
   MENUITEM GL("&BringWindowToTop") + chr(9) + GL("Ctrl+I") RESOURCE "B_EDIT" ;
      ACTION BringWindowToTop( oItem:hWnd )
   
   MENUITEM GL("&Item Properties") RESOURCE "PROPERTY" ;
      ACTION ItemProperties( nItem, nArea )

 


Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6255
Joined: Fri Oct 07, 2005 7:07 pm

Re: SendToBack

Postby Antonio Linares » Wed Jan 09, 2019 9:39 am

Dear Otto,

I may give you write access to the EasyReport repository so you can commit your changes directly to the repository

Please register on bitbucket (its free) and let me know your email there so I can give you developer rights.

many thanks
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

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