Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-10

TDBNavigator icons break symmetry

20 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ajeandro Gonzalo

Maintaining Symmetry is a basic principle of good design. It's broken here in 2 ways. Since the nbInsert icon is "+", the nbDelete icon MUST be "-". Also, using the trash can icon could be confusing - it resembles the Windows Recycle Bin so a user might think it deletes the whole file, not just the current record.

Secondly, the nbCancel icon is different from the bkCancel icon for TBitBtn.

Another quibble: the VisibleButtons in the Object Inspector are in alphabetical order, they should be in the same order as displayed to avoid confusion.

Now that with version 1.0 Lazarus is (mostly) stable I thought it was time the bring up less urgent matters like this.

A. G.

Reply by email

Bart
to Ajeandro Gonzalo
Ajeandro Gonzalo wrote
Since the nbInsert icon is "+", the nbDelete icon MUST be "-". Also, using the trash can icon could be confusing - it resembles the Windows

I normally do not associate "-" with "delete", that's why I replaced it with th trashcan icon.

Bart

Reply by email

Graeme Geldenhuys
to Bart
Bart wrote
I normally do not associate "-" with "delete", that's why I replaced it with th trashcan icon.

Even my computer illiterate clients know "+" is adding something, and "-" is subtracting (deleting) something. This is a well established metaphor in computers.

I'm not saying the trashcan icon is wrong (I haven't even seen how it looks like), I'm just pointing out that a "-" is a well known symbol for a delete action.

Graeme.

Reply by email

Kostas Michalopoulos
to Graeme Geldenhuys

Usually a red X is more common. Also searching for "database toolbar" in Google images shows a bunch of toolbars using a black "+" for adding and a red "X" for deleting.

Graeme Geldenhuys wrote 23 lines
On 2012-10-01 21:52, Bart wrote: > > I normally do not associate "-" with "delete", that's why I replaced > it with th trashcan icon. Even my computer illiterate clients know "+" is adding something, and "-" is subtracting (deleting) something. This is a well established metaphor in computers. I'm not saying the trashcan icon is wrong (I haven't even seen how it looks like), I'm just pointing out that a "-" is a well known symbol for a delete action. Graeme. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antonio Fortuny
to Ajeandro Gonzalo: Maintaining Symmetry is a basic principle of good design. It's broken here in 2 ways. …

Le 01/10/2012 21:30, Ajeandro Gonzalo a ?crit :

Show quoted text 7 lines
Maintaining Symmetry is a basic principle of good design. It's broken here in 2 ways. Since the nbInsert icon is "+", the nbDelete icon MUST be "-". Also, using the trash can icon could be confusing - it resembles the Windows Recycle Bin so a user might think it deletes the whole file, not just the current record. Secondly, the nbCancel icon is different from the bkCancel icon for TBitBtn. Another quibble: the VisibleButtons in the Object Inspector are in alphabetical order, they should be in the same order as displayed to avoid confusion. Now that with version 1.0 Lazarus is (mostly) stable I thought it was time the bring up less urgent matters like this.

Since I use Pascal with Delphi I've always seen "+" and "-" in the TDBNavigator. This means that the users I'm working for are used to see those two images.
On the other hand when I use either a TButton or a TBitButton oe a TSpeedButton I'm used to insert a blank page for insert and a red cross for delete. They are still the same in Delphi XE.
This means that I do rather prefer Alejandro's position instead of the current pics in the TDBNavigator

Antonio.

Reply by email

Dimitri Smits
to Graeme Geldenhuys
Show quoted text 6 lines
> Usually a red X is more common. True, that is also a very popular glyph used. Graeme.

I'd say that in Delphi-tradition, the red X means Cancel, rather than Delete.

So it goes better with a "rollback", especially when you use the green V (check) as a "commit" or "OK".

kind regards,
Dimitri Smits

Reply by email

Bart
to Ajeandro Gonzalo: Maintaining Symmetry is a basic principle of good design. It's broken here in 2 ways. …
Ajeandro Gonzalo wrote 5 lines
.... It's broken here in 2 ways. Since the nbInsert icon is "+", the nbDelete icon MUST be "-". Also, using the trash can icon could be confusing - it resembles the Windows Recycle Bin so a user might think it deletes the whole file, not just the current record.

Maybe we could make the glyphs customizable, and keep everybody happy?

Bart

Reply by email

Graeme Geldenhuys
to Bart
Bart wrote
Maybe we could make the glyphs customizable, and keep everybody happy?

Very true. And frankly, I'm quite surprise that the TDBNavigator doesn't have an ImageList property to do just that. Those buttons are just TSpeedButton descendants anyway. It would also mean that the DBNavigator could blend in better with the icon theme used in the application.

Regards,
- Graeme -

Reply by email

Flávio Etrusco
to Graeme Geldenhuys
Graeme Geldenhuys wrote 12 lines
On 2012-10-02 20:45, Bart wrote: > > Maybe we could make the glyphs customizable, and keep everybody happy? Very true. And frankly, I'm quite surprise that the TDBNavigator doesn't have an ImageList property to do just that. Those buttons are just TSpeedButton descendants anyway. It would also mean that the DBNavigator could blend in better with the icon theme used in the application. Regards, - Graeme -

At least Lazarus is "compatible" with this hack ;-) http://delphi.about.com/od/usedbvcl/l/aa090203a.htm

IIRC the official way to do it on Delphi was to override the resource, I'm not sure it's easy or possible with FPC...

Best regards,
Fl?vio

Reply by email

Graeme Geldenhuys
to Flávio Etrusco
Fl?vio Etrusco wrote
At least Lazarus is "compatible" with this hack ;-) http://delphi.about.com/od/usedbvcl/l/aa090203a.htm

Such hacks should never be used or needed in Lazarus. Delphi is closed-sourced, and not released often, and very slow to listen to developers needs. LCL is open source, and should cater for the developer's needs. LCL should not simply be a feature-for-feature and worse, bug-for-bug clone of VCL - it should be an improvement over the VCL.

Regards,
- Graeme -

Reply by email

Bart
to Flávio Etrusco: On Tue, Oct 2, 2012 at 7:28 PM, Graeme Geldenhuys At least Lazarus is "compatible" with…
Fl?vio Etrusco wrote 16 lines
>> Maybe we could make the glyphs customizable, and keep everybody happy? > > Very true. And frankly, I'm quite surprise that the TDBNavigator doesn't > have an ImageList property to do just that. Those buttons are just > TSpeedButton descendants anyway. It would also mean that the DBNavigator > could blend in better with the icon theme used in the application. > > > Regards, > - Graeme - At least Lazarus is "compatible" with this hack ;-) http://delphi.about.com/od/usedbvcl/l/aa090203a.htm IIRC the official way to do it on Delphi was to override the resource, I'm not sure it's easy or possible with FPC...

Yep, the icons for TDBNavigator are in a .lrs file.

For Delphi compatibility (where you cannot assign an imagelist to the control) we should probably derive a new TCustomizableDBNavigator from TDBCustomNavigator?

Who's up for the task?

Bart

Reply by email

Graeme Geldenhuys
to Bart
Bart wrote
For Delphi compatibility (where you cannot assign an imagelist to the control) we should probably derive a new TCustomizableDBNavigator from TDBCustomNavigator?

How would that solve the problem. You still wouldn't have shared code between Delphi and Lazarus. Also having a completely new class, would mean a lot more IFDEF in your code - something I like to avoid at all costs.

[ See my next post about "delphi compatibility" ]

Regards,
- Graeme -

Reply by email

Bart
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
On 2012-10-03 11:45, Bart wrote: > > For Delphi compatibility (where you cannot assign an imagelist to the > control) we should probably derive a new TCustomizableDBNavigator from > TDBCustomNavigator? How would that solve the problem. You still wouldn't have shared code between Delphi and Lazarus. Also having a completely new class, would mean a lot more IFDEF in your code - something I like to avoid at all costs.

If I drop a TDBNavigator on a form and have code like

DBNavigator.VisibleButtons := [nbFirst,nbPrior,nbNext,nbLast];

My form (renamed to .dfm) and my unit would still compile on Delphi. (Mind you: there is no need to keep the LCL libraries compilable in Delphi, so no need for {ifdef}'s there)

Choosing a component in my program that does not exist in Delphi will makse my program incompatible with Delphi, but that would be a design decision then. Which IMO is an entirely diferent scenario.

FWIW: I don't mind if "we" allow this kind of extensions on VCL components. I have dropped Delphi permanently since 0.9.26 (I think).

Bart

Reply by email

Bart
to Graeme Geldenhuys: Very true. And frankly, I'm quite surprise that the TDBNavigator doesn't have an…
Graeme Geldenhuys wrote 8 lines
On 2012-10-02 20:45, Bart wrote: > > Maybe we could make the glyphs customizable, and keep everybody happy? Very true. And frankly, I'm quite surprise that the TDBNavigator doesn't have an ImageList property to do just that. Those buttons are just TSpeedButton descendants anyway. It would also mean that the DBNavigator could blend in better with the icon theme used in the application.

File a feature request in the bugtracker?
Otherwise it will be forgotten.

Bart

Reply by email

Ajeandro Gonzalo
to Bart

Does anyone have a source fot suitable icons (also i need a gear one)? Maybe put them in a zip file and attach thwm to a message? Or upload to a free host like http://www.zippyshare.com?

Thanks.

A. G.

Bart wrote 25 lines
From: Bart Subject: Re: [Lazarus] TDBNavigator icons break symmetry To: "Lazarus mailing list" Date: Saturday, October 13, 2012, 5:15 AM On 10/10/12, Graeme Geldenhuys wrote: > On 2012-10-09 23:12, Bart wrote: >> >> File a feature request in the bugtracker? >> Otherwise it will be forgotten. > > http://bugs.freepascal.org/view.php?id=23097 > I implemented it in r39065. Please test and report any bugs. Bart -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

William Oliveira Ferreira
to Ajeandro Gonzalo

Could some of these?
http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png http://www.famfamfam.com/lab/icons/silk/

2012/10/19 Ajeandro Gonzalo

Show quoted text 42 lines
Does anyone have a source fot suitable icons (also i need a gear one)? Maybe put them in a zip file and attach thwm to a message? Or upload to a free host like http://www.zippyshare.com? Thanks. A. G. --- On Sat, 10/13/12, Bart wrote: > From: Bart > Subject: Re: [Lazarus] TDBNavigator icons break symmetry > To: "Lazarus mailing list" > Date: Saturday, October 13, 2012, 5:15 AM > On 10/10/12, Graeme Geldenhuys > wrote: > > On 2012-10-09 23:12, Bart wrote: > >> > >> File a feature request in the bugtracker? > >> Otherwise it will be forgotten. > > > > http://bugs.freepascal.org/view.php?id=23097 > > > > I implemented it in r39065. > Please test and report any bugs. > > Bart > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
________________________________ William de Oliveira Ferreira -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20121020/0e9a2704/attachment.html>

Reply by email