OSShell>defaultFont change

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

OSShell>defaultFont change

Postby PhotonDemon » Mon Apr 27, 2009 7:50 am

Hi All,

I'm upgrading from VAST 5.5.2 to the new VA Smalltalk V8. I have a few changes to 5.5.2 that I would like to drop if I can find a better way to do it. I have changed OSShell>defaultFont to look like:

defaultFont
"Private - Answer the default font for the receiver."
"Test for DialogFrame instead of Dialog, so windows with parents don't use small fonts."
"Changed by LL of KSC."

" self isDialog ifTrue: [^DialogFont]."
self isDialogFrame ifTrue: [^DialogFont].
^DefaultFont.

I have a lot of windows that by the isDialog test (that looks for a parent) look like a dialog and therefore get the DialogFont and its smaller size. Is there a better way to do this without changing this base Smalltalk code?

Lou
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou@Keystone-Software.com http://www.Keystone-Software.com
PhotonDemon
[|]
 
Posts: 176
Joined: Thu Dec 20, 2007 1:45 pm

Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest