FONT has changed (not by code)

FONT has changed (not by code)

Postby dutch » Mon Aug 28, 2017 4: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 19.01 / 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)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: FONT has changed (not by code)

Postby dutch » Mon Aug 28, 2017 5: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 19.01 / 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)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: FONT has changed (not by code)

Postby Natter » Mon Aug 28, 2017 6:30 am

I had a similar problem. I solved it locally by declaring the font for each POPUP menu
Natter
 
Posts: 1203
Joined: Mon May 14, 2007 9:49 am

Re: FONT has changed (not by code)

Postby dutch » Mon Aug 28, 2017 7: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 19.01 / 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)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: FONT has changed (not by code)

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

Re: FONT has changed (not by code)

Postby dutch » Wed Aug 30, 2017 7: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 19.01 / 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)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: FONT has changed (not by code)

Postby Natter » Wed Aug 30, 2017 7: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
Natter
 
Posts: 1203
Joined: Mon May 14, 2007 9:49 am

Re: FONT has changed (not by code)

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

Re: FONT has changed (not by code)

Postby dutch » Wed Aug 30, 2017 1: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 19.01 / 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)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: FONT has changed (not by code)

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

Re: FONT has changed (not by code)

Postby Rick Lipkin » Wed Aug 30, 2017 1: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
User avatar
Rick Lipkin
 
Posts: 2663
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: FONT has changed (not by code)

Postby dutch » Wed Aug 30, 2017 3: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 19.01 / 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)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 43 guests