FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with / Question about menus in button bar (Solved)
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Problem with / Question about menus in button bar (Solved)
Posted: Mon Aug 31, 2015 09:23 PM
Hello,

Problem with menus in the button bar :

Since FWH 15.07 I now or then notice some strange behaviour happening to the titles of my menus.

If I go over the titles with my mouse from the right to the left, the titles vanish one after another. If I go over the titles with my mouse from the left to the righ, the titles appear again.

Question about menus in the button bar :

Is it possible to make the width of the titles of the menus wider? How can I do that?


Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with / Question about menus in the button bar
Posted: Mon Aug 31, 2015 09:38 PM

Michel,

The strings that you use for your menu are AllTrim()ed ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem with / Question about menus in the button bar
Posted: Mon Aug 31, 2015 10:06 PM
driessen wrote:Hello,

Problem with menus in the button bar :

Since FWH 15.07 I now or then notice some strange behaviour happening to the titles of my menus.

If I go over the titles with my mouse from the right to the left, the titles vanish one after another. If I go over the titles with my mouse from the left to the righ, the titles appear again.

Question about menus in the button bar :

Is it possible to make the width of the titles of the menus wider? How can I do that?


Thanks a lot in advance.


Michel

You can give an example of their menus

It has proved an example:. \ Samples \ testxbr3.prg?

You can try this example?

https://www.dropbox.com/s/ifi9zs8iw6vip ... 0.PRG?dl=0
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: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem with / Question about menus in the button bar
Posted: Mon Aug 31, 2015 10:31 PM

Yes, Antonio, my menuitems are alltrim()ed.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with / Question about menus in the button bar
Posted: Tue Sep 01, 2015 06:32 AM

Michel,

Could you try Cristobal example ?

Also please build samples\fivedit.prg and let me know if its menu does the same as you describe, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem with / Question about menus in the button bar
Posted: Wed Sep 02, 2015 02:07 PM

I can't build an example since I got a whole list of undefined externals. Don't know why.

But meanwhile, I have found out what causes the problem.

I changed the standard fontsize for the menues from 9 to 11. Normally the size of the menu is adjusted automatically to the font and fontsize used.
In FWH, the menues are not adjusted. The width of the menu doesn't change if I change the fontsize from 9 to 11. It can happen than that titles of menues are put one above the other. But also the presentation of the menuitems is wrong if I have defined a function key to certain menuitems. The function key is put on the menuitem itself.

Why do I need to change the fontsize? Since I use a 24" screen, my menues are becoming very small, hardly to read.

Anyone an idea for this problem?

Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with / Question about menus in the button bar
Posted: Wed Sep 02, 2015 04:21 PM

Michel,

> if I change the fontsize from 9 to 11

Have you changed it in Windows settings or from your PRG ?

Cristobal recently has done a great job on FWH menus so surely his advise will be of great help

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem with / Question about menus in the button bar
Posted: Wed Sep 02, 2015 05:54 PM

Antonio, I changed the fontsize in Windows.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem with / Question about menus in the button bar
Posted: Wed Sep 02, 2015 06:10 PM
driessen wrote:
I changed the standard fontsize for the menues from 9 to 11. Normally the size of the menu is adjusted automatically to the font and fontsize used.
In FWH, the menues are not adjusted. The width of the menu doesn't change if I change the fontsize from 9 to 11. It can happen than that titles of menues are put one above the other. But also the presentation of the menuitems is wrong if I have defined a function key to certain menuitems. The function key is put on the menuitem itself.


You are right
Solved

I have been informed of the modifications to Antonio

I remain at your disposal for any additional comments

Thanks
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: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem with / Question about menus in the button bar
Posted: Wed Sep 02, 2015 06:18 PM

Great job, Christobal.

Thank you so much.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with / Question about menus in the button bar
Posted: Thu Sep 03, 2015 08:39 AM

Thank you Cristobal :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem with / Question about menus in the button bar
Posted: Thu Sep 03, 2015 10:43 AM

Antonio,

What changes need to be made?

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with / Question about menus in the button bar
Posted: Thu Sep 03, 2015 11:35 AM

Michel,

I email you the modified FWH libs

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem with / Question about menus in the button bar
Posted: Thu Sep 03, 2015 12:30 PM

Thanks a lot, Antonio.

But I'm afraid the problem is not completely solved.

I send you some pictures of my menu's be e-mail.

Hope this helps to solve the problem.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem with / Question about menus in the button bar
Posted: Thu Sep 03, 2015 01:53 PM
driessen wrote:Thanks a lot, Antonio.

But I'm afraid the problem is not completely solved.

I send you some pictures of my menu's be e-mail.

Hope this helps to solve the problem.


You can send me the pictures?
navarro . cristobal at gmail . com (at = @ and remove spaces)
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