LB Booster
« A problem with font under LBB302 »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:14am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: A problem with font under LBB302  (Read 972 times)
SarmedNafi
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 93
xx Re: A problem with font under LBB302
« Reply #11 on: Sep 19th, 2015, 04:40am »

> You mean restore the resource leak?

No, Richard

I don't say that.
But give the user the ability to delete the unused font like what we did with BMP.
Or there is a check box option either we delete it manually or let LBB do it automatically (the default). In that case we win the compatibility with LB and the best performance of LBB. With some little notes on help file.
I hardly hope you will reconsider this matter.

Regards,
Sarmed
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: A problem with font under LBB302
« Reply #12 on: Sep 19th, 2015, 07:18am »

on Sep 19th, 2015, 04:40am, SarmedNafi wrote:
Or there is a check box option either we delete it manually or let LBB do it automatically (the default).

Unfortunately the internal architecture of LBB means that making it a user-selected option is not practical (the code involved is in the LBLIB emulator library not the compiler).

However I think I have worked out how to check the font handle against all the other child controls, to determine if it should be deleted or not, so if that works it should be a full solution.

Richard.
User IP Logged

Rod
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 110
xx Re: A problem with font under LBB302
« Reply #13 on: Sep 19th, 2015, 9:08pm »

What happens if arial is set as the default font. Can that be done in preferences and then only exceptions need set?
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: A problem with font under LBB302
« Reply #14 on: Sep 19th, 2015, 9:38pm »

on Sep 19th, 2015, 9:08pm, Rod wrote:
What happens if arial is set as the default font. Can that be done in preferences and then only exceptions need set?

I've hopefully fixed the issue reported by Sarmed in LBB v3.03. When you send a FONT command to a child control this version checks whether the 'old' font is currently in use by any of its sibling controls, and only deletes it if not.

So for example if a window has two child controls, and you set the font of both by sending a FONT command to the parent window, changing the font of just one control will not result in the old font being deleted, but subsequently changing the font of the other control will.

Achieving this is a little messy, and will make the FONT command somewhat slower, but normally that won't matter.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls