FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Hiding windchild commands
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Hiding windchild commands
Posted: Fri Jan 14, 2022 09:16 AM
at init I have




then If I move the mouse near "Aiuto" menuitem on winMain the command of winchild are hided






it's normal ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Hiding windchild commands
Posted: Fri Jan 14, 2022 01:32 PM

Silvio, do you have any little example i can try?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Hiding windchild commands
Posted: Sat Jan 15, 2022 09:08 AM
cnavarro wrote:Silvio, do you have any little example i can try?


I think the problem is

MENUITEM "Aiuto" HELP
MENU
MENUITEM "Aiuto"
..... and when the menu is 2015 style
MENU oMenu 2015

If I rem Help then I not have that error

I create a small test

Code (fw): Select all Collapse
 

#include "FiveWin.ch"

static oWnd

function Main()

   local oWnd,oBar
   local oBtns[1]

   DEFINE WINDOW oWnd TITLE "Test" MDI ;
   MENU buildMenu()

      DEFINE BUTTONBAR oBar OF oWnd _3D 2015

   DEFINE BUTTON oBtns[1] FILENAME "blab.png" OF oBar NOBORDER ;
      ACTION Test(oBtns[1])

   ACTIVATE WINDOW oWnd

return nil


Function test(oBtn)
   local oWinClients
   oBtn:disable()
    DEFINE WINDOW oWinClients MDICHILD ;
      FROM 0, 0 TO 24, 79   ;
      TITLE "test"       ;
      of oWnd
     ACTIVATE WINDOW oWinClients MAXIMIZED
return nil


Function BuildMenu
   local oMenu
   MENU oMenu 2015
     MENUITEM "Aiuto" HELP
            MENU
               MENUITEM "Aiuto"
               ENDMENU
               ENDMENU
               RETURN oMen


try to rem this line
MENU oMenu //2015
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Hiding windchild commands
Posted: Sat Jan 15, 2022 09:25 AM

Silvio, thanks for the little sample
You are right, but not only with 2015 style, also with 2007, 2010, 2013 and without style but with the COLORS clause, when the HELP clause is included in a MENUITEM and the window is MDICHILD ( maximized ).
I will look at this

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Hiding windchild commands
Posted: Tue Feb 15, 2022 10:32 AM
cnavarro wrote:Silvio, thanks for the little sample
You are right, but not only with 2015 style, also with 2007, 2010, 2013 and without style but with the COLORS clause, when the HELP clause is included in a MENUITEM and the window is MDICHILD ( maximized ).
I will look at this


Cris,
do you have you solved this problem? can you send me the solution?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Hiding windchild commands
Posted: Tue Feb 15, 2022 05:26 PM

Instead of using a MDI window you could use a panel (TPanel class).

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Hiding windchild commands
Posted: Tue Feb 15, 2022 06:58 PM
James Bott wrote:Instead of using a MDI window you could use a panel (TPanel class).


Panel ????????
I made Windows child for each procedure or I use dialogs as mdichild
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Hiding windchild commands
Posted: Fri Feb 18, 2022 11:11 PM

Silvio,

I take it you have never used panels? There should be some samples in the \Samples directory. Panels are completely blank with no title bar and no default controls. You can use them instead of MDI windows and dialogs. If I remember correctly the Explorer Bar samples use panels.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Hiding windchild commands
Posted: Fri Feb 18, 2022 11:26 PM
Silvio.Falconi wrote:
cnavarro wrote:Silvio, thanks for the little sample
You are right, but not only with 2015 style, also with 2007, 2010, 2013 and without style but with the COLORS clause, when the HELP clause is included in a MENUITEM and the window is MDICHILD ( maximized ).
I will look at this


Cris,
do you have you solved this problem? can you send me the solution?


Silvio, not solved yet
At moment not use any style and not use COLORS clause with HELP clause into menuitem command and MDICHILD as container
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion