Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002518 [tweak] Any minor always 01-17-06 14:31 01-17-06 14:59
Reporter bert View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Product Build
Summary 0002518: Font in InputFields
Description Setting the font in CInputFields does not work reliably. If set to something else than the default font, clicking into the field resets the font. Same happens when setting a string value:

myFont := (TextStyle named: #BitstreamVeraSans) fontOfPointSize: 12.
p := CInputField open.
p font: myFont; waitTick.
f1 := p font.
p hand keyboardFocus: p; waitTick.
f2 := p font.
p font: myFont; waitTick.
f3 := p font.
p value: 'test'; waitTick.
f4 := p font.
p close.
{f1. f2. f3. f4} collect: [:ea | ea = myFont]
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003524 - 272 - 316 - 316 - 316 - 316 - 316)
01-17-06 14:59

Found a workaround - instead of using #font:, set the value to a one-character-space text:

    p value: (Text string: ' ' attribute: (TextFontReference toFont: myFont))

After that, setting the value to a string sees to preserve the font, even if the string is empty.

- Issue History
Date Modified Username Field Change
01-17-06 14:31 bert New Issue
01-17-06 14:59 bert Note Added: 0003524

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
31 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker