bugGNUstep - Bugs: bug #10596, NSButtonCell does not show...

Group
 
 

bug #10596: NSButtonCell does not show selected state

Submitter:  Benhur Stein <benhur>
Submitted:  Wed 06 Oct 2004 01:13:28 PM UTC
   
 
Category:  Gorm Severity:  2 - Minor
Item Group:  Change Request Status:  Invalid
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 24 Nov 2004 01:28:50 AM UTC, comment #5: 

Again and again people seem to make the assumption that somehow the objects in Gorm are "simulated" or "not real".  The objects are the ones from AppKit, or any palettes which are linked in, nothing more or less.  They are the real objects.

I'm not sure what to say here except to reiterate that the behavior of widgets in Gorm's Test Interface mode is dictated by the implementation AppKit/gui.   This means that, however they would behave in a running app is how they will behave in Gorm's test mode.

Attached (onoffbuttons.gorm.tgz) is a file which does what you want.  Basically I changed the button to "Push On/Off" instead of "Momentary Push" in the button inspector.

This bug is user/developer error.  Invalid.

GJC

Gregory John Casamento <gcasa>
Group administrator
Mon 08 Nov 2004 03:42:22 PM UTC, comment #4: 

No, it is not a new behaviour!
Button cells used to show their selected state by changing
their background color. Maybe this should not always
be the case, depending on the type of button, but it
was the way buttons worked before, and it is how they worked
in Openstep 4.1.

Benhur Stein <benhur>
Mon 08 Nov 2004 03:29:43 PM UTC, comment #3: 

With your example, it will not work, because you forget to change the prototype button type to NSOnOffButton or NSPushOnPushOffButton which are needed to have a radio behavior with a matrix of NSButton (when the prototype isn't set to the NSRadioButton type)…
This needed adjustement matches the InterfaceBuilder behavior, even if I'm not sure that the right choice…
Anyway, you are saying this behavior is new, then I will said it is probably related to Gorm changes which I'm not aware of.

Quentin Mathé <qmathe>
Group Member
Mon 08 Nov 2004 02:39:20 PM UTC, comment #2: 

I still can reproduce it.
I've just upgraded from cvs (both core and gorm).
Attached is a gorm file (just a matrix of buttons
in a window). To reproduce the problem,
just download it in gorm, click on 'test interface',
click on a button. It should highlight and remain
highlighted (that's what it used to do, and I think
is the correct way to show the 'selected' state of
a button), but it does not, at least here. Does
it highlight in your installation?

Benhur

Benhur Stein <benhur>
Sun 07 Nov 2004 09:33:49 PM UTC, comment #1: 

I'm unable to reproduce it with 2004/11/07 cvs version… In the case you are able to reproduce it with this recent cvs version, let me know.

Quentin Mathé <qmathe>
Group Member
Wed 06 Oct 2004 01:13:28 PM UTC, original submission:  

Selected cells in a matrix of NSButtonCells are displayed
the same way as not selected ones.

To test, create a matrix of buttons in Gorm, in radio mode,
and test the interface. the last clicked cell shoud be
displayed differently from the others, but it is not.
In previous versions (one month ago), selected cells
were displayed on a white background.

Benhur Stein <benhur>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #2086:  onoffmatrix.gorm.tgz added by gcasa (6KiB - application/x-gtar)
file #1962:  buttons.gorm.gz added by benhur (6KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 10 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-11-24 gcasa Open/ClosedOpen Closed
2004-11-24 gcasa StatusRemind Invalid
    Assigned toqmathe gcasa
    Attached File- Added onoffmatrix.gorm.tgz, #1910
2004-11-08 qmathe CategoryGui/AppKit Gorm
    Item GroupBug Change Request
    StatusWorks For Me Remind
2004-11-08 benhur Attached File- Added buttons.gorm.gz, #1849
2004-11-07 qmathe StatusNone Works For Me
    Assigned toNone qmathe

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code