MDI Unicode Problem

MDI Unicode Problem

Postby richard-service » Mon Jul 15, 2019 6: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: Select all  Expand view  RUN

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.視窗"
         MENUENDMENU
 


Image
Last edited by richard-service on Tue Jul 23, 2019 9:13 am, edited 3 times in total.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: MDI Set MenuInfo not work

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

Re: MDI Set MenuInfo not work

Postby richard-service » Tue Jul 16, 2019 2:46 am

Question 2

This is my define HEIGHT 1.85
Image

This is Open Child Window in MDI
Image

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

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: MDI Set MenuInfo not work

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

Re: MDI Set MenuInfo not work

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

Re: MDI Set MenuInfo not work

Postby richard-service » Thu Jul 18, 2019 5: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

Image
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: MDI Set MenuInfo not work

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

Re: MDI Set MenuInfo not work

Postby richard-service » Thu Jul 18, 2019 9: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 (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: MDI Set MenuInfo not work

Postby richard-service » Thu Jul 18, 2019 9: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: Select all  Expand view  RUN

#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
 


Image

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

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: MDI Set MenuInfo not work

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

Re: MDI Set MenuInfo not work

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

Re: MDI Set MenuInfo not work

Postby richard-service » 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 (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: MDI Set MenuInfo not work

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

Re: MDI Set MenuInfo not work

Postby richard-service » Fri Jul 19, 2019 7: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 (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: MDI Set MenuInfo not work=>Solved

Postby cnavarro » Fri Jul 19, 2019 7:21 pm

Dialog selection child window "More Windows"

Image
Image
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: 6552
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Next

Return to FiveWin for Harbour/xHarbour

Who is online

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