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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10596: NSButtonCell does not show selected state

Submitted by:  Benhur Stein <benhur>
Submitted on:  Wed 06 Oct 2004 01:13:28 PM UTC  
 
Category: GormSeverity: 2 - Minor
Item Group: Change RequestStatus: Invalid
Privacy: PublicAssigned to: Gregory John Casamento <gcasa>
Open/Closed: Closed

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>
Project AdministratorIn charge of this item.
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>
Project 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>
Project 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>

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 10 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 24 Nov 2004 01:40:41 AM UTCgcasaOpen/ClosedOpen=>Closed
Wed 24 Nov 2004 01:28:50 AM UTCgcasaStatusRemind=>Invalid
  Assigned toqmathe=>gcasa
  Attached File-=>Added onoffmatrix.gorm.tgz, #1910
Mon 08 Nov 2004 03:29:43 PM UTCqmatheCategoryGui/AppKit=>Gorm
  Item GroupBug=>Change Request
  StatusWorks For Me=>Remind
Mon 08 Nov 2004 02:39:20 PM UTCbenhurAttached File-=>Added buttons.gorm.gz, #1849
Sun 07 Nov 2004 09:33:49 PM UTCqmatheStatusNone=>Works For Me
  Assigned toNone=>qmathe

Back to the top


Powered by Savane 3.1-cleanup1