FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FONT has changed (not by code)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM

FONT has changed (not by code)

Posted: Mon Aug 28, 2017 04:31 AM
I've access to some menu 3 times. Global DEFINE FONT has changed. The code does not change or define anything about FONT.
VDO
https://youtu.be/xGI-gU_X2O4
Thanks in advance.
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM

Re: FONT has changed (not by code)

Posted: Mon Aug 28, 2017 05:10 AM
It has changed every object that FONT concerned. Even menu, say (label), get and everything. Because I use Global define oFont in all the program.
This is another VDO that shows change effect access a procedure 3 times.
https://youtu.be/i9F_ehiPS9g
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: FONT has changed (not by code)

Posted: Mon Aug 28, 2017 06:30 AM

I had a similar problem. I solved it locally by declaring the font for each POPUP menu

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM

Re: FONT has changed (not by code)

Posted: Mon Aug 28, 2017 07:28 AM
Dear Natter,

It has fixed, thank you so much.
Natter wrote:I had a similar problem. I solved it locally by declaring the font for each POPUP menu
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: FONT has changed (not by code)

Posted: Mon Aug 28, 2017 11:16 AM

Dutch, Natter

Please send me a small example, is it possible?

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: 1598
Joined: Fri Oct 07, 2005 05:56 PM

Re: FONT has changed (not by code)

Posted: Wed Aug 30, 2017 07:12 AM

Dear Navarro,

I'm so sorry, I cannot split from main module for sample to you. Because when I make a new sample, it doesn't has a problem.

I don't understand why. But It solved when I define font in separate PRG file independently.

Thanks for your kind help.

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: FONT has changed (not by code)

Posted: Wed Aug 30, 2017 07:38 AM

I have the same thing. I was not able to make an example with an error. I just realized that changing the font in xBrowse is associated with multiple (>1) by calling POPUP menu on it. If you create your font for each POPUP menu, then everything is fine

FWH 17.04/xHarbour BCC7

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: FONT has changed (not by code)

Posted: Wed Aug 30, 2017 12:21 PM
dutch wrote:Dear Navarro,

I'm so sorry, I cannot split from main module for sample to you. Because when I make a new sample, it doesn't has a problem.

I don't understand why. But It solved when I define font in separate PRG file independently.

Thanks for your kind help.


Dear Dutch
Problem is with a menu popup into XBrowse control?
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: 1598
Joined: Fri Oct 07, 2005 05:56 PM

Re: FONT has changed (not by code)

Posted: Wed Aug 30, 2017 01:12 PM

Dear Navarrow,

No, the problem is
1. Define FONT with public variable in main PRG
2. Right for POPUP MENU
3. Open Dialog in 2nd PRG but use public FONT variable from main PRG 3 times, the public variable FONT has change to BOLD or LARGER size.

Thanks

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: FONT has changed (not by code)

Posted: Wed Aug 30, 2017 01:36 PM
dutch wrote:Dear Navarrow,

No, the problem is
1. Define FONT with public variable in main PRG
2. Right for POPUP MENU
3. Open Dialog in 2nd PRG but use public FONT variable from main PRG 3 times, the public variable FONT has change to BOLD or LARGER size.

Thanks


Dear Dutch
Yes, I understood from the beginning, but my question is:


2. Right for POPUP MENU


What control does the popup menu show?
It is to try to make an example similar to your working environment
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: 2706
Joined: Fri Oct 07, 2005 01:50 PM

Re: FONT has changed (not by code)

Posted: Wed Aug 30, 2017 01:41 PM

Dutch

Just my 2 cents worth here .. I never create a public font ... I always try to compartmentalize all my module into one .prg and have Static Functions within that monolithic .Prg .. Like for example .. I may have a Customer module that has a xBrowse component to view customer records, I will have a Add, Edit and Delete routine ..

I create my fonts at the top of my monolithic .prg .. then pass oFont down as a parameter to each Static Function in the .prg .. when I leave that module .. I release oFont and move on to the next monolithic module.

I think of fonts like a table in a database .. Open when I need them and close them when I am done.

Thanks
Rick Lipkin

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM

Re: FONT has changed (not by code)

Posted: Wed Aug 30, 2017 03:11 PM

Dear Rick,

My program is produce for Multi-language and Public FONT variable is make me easy to DEFINE ONE use in ALL DIALOGS. I just ONE DEFINE and will effect all.

My opinion.

Thanks for your idea and it fixed my problem in this case.

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)

Continue the discussion