FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MDI Unicode Problem
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
MDI Unicode Problem
Posted: Mon Jul 15, 2019 06:19 PM
Hi
I open over 10 Child Windows in MDI
I can't click I define MENUINFO this menuitem.
Please view it below:

Code (fw): Select all Collapse
DEFINE WINDOW poWnd MDI                                                 ;
            FROM 0, 0 TO 38, 130                                             ;
            TITLE ...   ;
            MENUINFO 9 VSCROLL HSCROLL                                       ;
            BRUSH oBrush MENU ::Build_FW_Menu()

METHOD Build_FW_Menu() CLASS TWinCraneErp
LOCAL oMenu

          MENU oMenu FONT oFnt4 2013 ADJUST ;
                    NOBORDER ; ...

         MENUITEM "&W.視窗"
         MENU … ENDMENU


Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MDI Set MenuInfo not work
Posted: Mon Jul 15, 2019 08:17 PM

Dear Richard
I try to see where the problem may be and I'll come back with you

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: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: MDI Set MenuInfo not work
Posted: Tue Jul 16, 2019 02:46 AM
Question 2

This is my define HEIGHT 1.85


This is Open Child Window in MDI


I don't know. it's incompatible Unicode ...
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MDI Set MenuInfo not work
Posted: Wed Jul 17, 2019 05:01 PM

Dear Richard:
Question 1 -

Well, Windows does not show more than 9 child window items, it does not depend on Fw. From there he puts a message of "More windows"
We will have to program some way to manage the list of childs windows so we do not encounter this problem.

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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MDI Set MenuInfo not work
Posted: Wed Jul 17, 2019 05:02 PM

Question 2:

Is it possible that you can send me an example with the menu you are doing?

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: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: MDI Set MenuInfo not work
Posted: Thu Jul 18, 2019 05:06 AM
cnavarro wrote:Dear Richard:
Question 1 -

Well, Windows does not show more than 9 child window items, it does not depend on Fw. From there he puts a message of "More windows"
We will have to program some way to manage the list of childs windows so we do not encounter this problem.


Hi Cnavarro,
I remember Old FWH source code to make EXE that can do it.
This program write FWH source code. RUN Windows 10 1903

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MDI Set MenuInfo not work
Posted: Thu Jul 18, 2019 08:16 AM

Richard
That should be his normal behavior
Show a dialog with the list of windows.
What version of Fw do you use?

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: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: MDI Set MenuInfo not work
Posted: Thu Jul 18, 2019 09:15 AM
cnavarro wrote:Richard
That should be his normal behavior
Show a dialog with the list of windows.
What version of Fw do you use?


Mr.Cnavarro
I use FWH 1807
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: MDI Set MenuInfo not work
Posted: Thu Jul 18, 2019 09:49 AM
cnavarro wrote:Question 2:

Is it possible that you can send me an example with the menu you are doing?


Mr.Cnavarro
This sample from Mr.RAO. Non set Menu, only define Window menu.
Child window title heigh no problem.

Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

   local oWnd, oBar

   FW_SetUnicode( .t. )

   DEFINE WINDOW oWnd MDI TITLE "吊車管理系統-堃"
   DEFINE BUTTONBAR oBar OF oWnd SIZE 100,32 2007
   DEFINE BUTTON PROMPT "客戶" OF oBar ACTION Child1()
   DEFINE BUTTON PROMPT "廠商" OF oBar ACTION Child2()
   ACTIVATE WINDOW oWnd

return nil

static function Child1()

   local oWnd, oIco, cText := Space( 40 )

//   DEFINE ICON oIco FILE "c:\fwh\icons\books.ico"

   DEFINE WINDOW oWnd MDICHILD OF WndMain() ;
      TITLE "客戶資料" //ICON oIco

   @ 40,40 GET cText SIZE 200,24 PIXEL OF oWnd

   @ 90,40 BUTTON "確定(OK)" SIZE 100,30 PIXEL OF oWnd ;
      ACTION MsgInfo( cText )

//   oWnd:bPostEnd := { || oIco:End() }

   ACTIVATE WINDOW oWnd

return nil

static function Child2()

   local oWnd, oIco, cText := Space( 40 )

//   DEFINE ICON oIco FILE "c:\fwh\icons\books.ico"

   DEFINE WINDOW oWnd MDICHILD OF WndMain() ;
      TITLE "廠商資料" //ICON oIco

   @ 40,40 GET cText SIZE 200,24 PIXEL OF oWnd

   @ 90,40 BUTTON "確定(OK)" SIZE 100,30 PIXEL OF oWnd ;
      ACTION MsgInfo( cText )

//   oWnd:bPostEnd := { || oIco:End() }

   ACTIVATE WINDOW oWnd

return nil




This sample code, Sent to your mail.Please check your mail.
MENUITEM too heigh and set MENUINFO 2 not work.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MDI Set MenuInfo not work
Posted: Thu Jul 18, 2019 10:34 AM
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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MDI Set MenuInfo not work
Posted: Thu Jul 18, 2019 10:53 AM

Richard
Please wait, I have to do some tests

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: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: MDI Set MenuInfo not work
Posted: Thu Jul 18, 2019 11:00 AM
cnavarro wrote:Richard
Please wait, I have to do some tests


Suggestion
Please look my code and try to remove oFnt or remove 2013 ... very strange.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MDI Set MenuInfo not work
Posted: Fri Jul 19, 2019 06:55 AM

Richard
As explained in the link I have put in one of my previous posts, the list of windows mdi that appears in the menu is built from the titles of the windows that are created. When modifying the titles of the mdi windows in version 19.06 so that they can also display unicode characters, the previous code that showed the mdi window list was no longer compatible.
In any case, all the problems have been fixed: list of windows with unicode characters are shown properly, the height of the item has been adjusted and the action of the "More windows" item has been implemented to show the list of all active mdi windows and allow their selection.

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: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: MDI Set MenuInfo not work
Posted: Fri Jul 19, 2019 07:28 AM
cnavarro wrote:Richard
As explained in the link I have put in one of my previous posts, the list of windows mdi that appears in the menu is built from the titles of the windows that are created. When modifying the titles of the mdi windows in version 19.06 so that they can also display unicode characters, the previous code that showed the mdi window list was no longer compatible.
In any case, all the problems have been fixed: list of windows with unicode characters are shown properly, the height of the item has been adjusted and the action of the "More windows" item has been implemented to show the list of all active mdi windows and allow their selection.


Dear C. Navarro
Thanks a lot. Now, it's working for Unicode MDI Window.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: MDI Set MenuInfo not work=>Solved
Posted: Fri Jul 19, 2019 07:21 PM
Dialog selection child window "More Windows"


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