Hiding windchild commands

Hiding windchild commands

Postby Silvio.Falconi » Fri Jan 14, 2022 9:16 am

at init I have

Image


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




Image

it's normal ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Hiding windchild commands

Postby cnavarro » Fri Jan 14, 2022 1: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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Hiding windchild commands

Postby Silvio.Falconi » Sat Jan 15, 2022 9: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: Select all  Expand view


#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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Hiding windchild commands

Postby cnavarro » Sat Jan 15, 2022 9: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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Hiding windchild commands

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Hiding windchild commands

Postby James Bott » Tue Feb 15, 2022 5: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Hiding windchild commands

Postby Silvio.Falconi » Tue Feb 15, 2022 6: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Hiding windchild commands

Postby James Bott » 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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Hiding windchild commands

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 43 guests