bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bugs #12224] Font panel doesn't work well in Gorm


From: Gregory John Casamento
Subject: [bugs #12224] Font panel doesn't work well in Gorm
Date: Mon, 7 Mar 2005 01:35:56 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040921

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=12224>

                 Summary: Font panel doesn't work well in Gorm
                 Project: GNUstep
            Submitted by: qmathe
            Submitted on: Sat 03/05/2005 at 22:03
                Category: Gorm
                Severity: 3 - Ordinary
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

GNUstep cvs (Gorm included) 1/03/2005

I know Font panel is usable to change widgets text fontÂ… but I'm unable to
remember how to do it most of the time (like now ;-). I already talked to
Gregory for this problem in the past.

How it should work with text field to take an example :
- you click on your widget to select it or you double-click on it to select
widget's text completely
- you choose "Font panel" in "Edit" menu
- you change the selected Font
- you click on "Set" button in "Font panel"
Result : The widget text font has been updated, that's not the case currently
in my experience.

There are other problems related to it :
- Font panel isn't on a higher window level than the widget's window (that's
not specific to Gorm)
- Widget's text selection is lost when the widget's window isn't key; when
you click inside Font panel to take an example 

    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 03/07/2005 at 01:32       By: Gregory John Casamento <gcasa>
I have added the documentation on how it should work to the wiki in the FAQ
section and to the same area in the Documentation directory under Gorm.

<i>And I think to document the way it works currently is not the right
solution to hmm "correct the problem",</i>

I don't recall ever saying that right solution to "correct the problem" is
documentation, simply that it should *be* documented.  I'm simply giving the
facts, further I am able to get the desired result 9i.e. changing of the
font) when doing exactly what you describe above on my machine.  Also, a
little less "hmmm attitude" would be nice.  That said... read on.

Whether or not changeFont: is called on a given object in a window or not is
dictated by the responder chain (please see NSFontManager.m and NSFont.m). 
If the window is main or key and the widget is selected, then the message
will be sent to the right object, if not it won't.  I've tested this under
MOSX and it seems to work in the same way.

There does seem to be a minor bug in Gorm which prevents this from working
when a document is first opened, so the bug could be related to how the main
window and first responder statuses get set and when.  This is likely the
cause of the issue. To get around this, it is necessary to click on the
window and click on the widget (as shown in the attached swf) to allow the
font panel to change the font.

-------------------------------------------------------
Date: Sun 03/06/2005 at 22:26       By: Quentin Mathé <qmathe>
I know it can work when the font panel "isn't on a higher level than the
widget's window", I was just arguing this issue doesn't help.
And I think to document the way it works currently is not the right solution
to hmm "correct the problem", it should just work intuitively like in Mac OS
X Interface Builder (my previous proposal), then no documentation would be
needed.

-------------------------------------------------------
Date: Sun 03/06/2005 at 04:38       By: Gregory John Casamento <gcasa>
I shall document how to change the font in the Gorm manual both in the
Documentation directory and on the mediawiki.

Attached is a snapshot which disproves the assertion that if the font panel
"isn't on a higher level than the widget's window" that it won't work.







    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 03/06/2005 at 04:38  Name: fontchange.jpg  Size: 47.13KB   By:
gcasa
Shows font changed to bold in the button with the font panel below the
window.
<http://savannah.gnu.org/bugs/download.php?item_id=12224&item_file_id=2284>

    _______________________________________________________

This item URL is:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=12224>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]