BUTTON_AutoButton

AmigaOS users can make feature requests in this forum.
User avatar
mritter0
Posts: 214
Joined: Mon Aug 25, 2014 9:41 pm
Location: Bettendorf, IA, USA

BUTTON_AutoButton

Post by mritter0 »

Could you add BAG_POPDATE to the list of built-in BUTTON_AutoButton images? A calendar image of some sort.
Workbench Explorer - A better way to browse drawers
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: BUTTON_AutoButton

Post by salass00 »

There's a BAG_POPTIME. Have you tried using that?
User avatar
mritter0
Posts: 214
Joined: Mon Aug 25, 2014 9:41 pm
Location: Bettendorf, IA, USA

Re: BUTTON_AutoButton

Post by mritter0 »

That's what I am using; calendar just more accurate for what the gadget is for. I will probably switch to a PNG image down the road. Just asked for completeness.
Workbench Explorer - A better way to browse drawers
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: BUTTON_AutoButton

Post by salass00 »

A requirement for BAG_POPDATE is that support for GLYPH_POPDATE and an appropriate DrawList based vector image would need to be added to glyph.image first. I'd do it but I'm not sure if I can make a calendar image that will be recognisable as such.
chris
Posts: 562
Joined: Sat Jun 18, 2011 11:05 am
Contact:

Re: BUTTON_AutoButton

Post by chris »

salass00 wrote:A requirement for BAG_POPDATE is that support for GLYPH_POPDATE and an appropriate DrawList based vector image would need to be added to glyph.image first. I'd do it but I'm not sure if I can make a calendar image that will be recognisable as such.
A small grid with the last line missing the last couple of squares would probably do it.
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: BUTTON_AutoButton

Post by salass00 »

chris wrote: A small grid with the last line missing the last couple of squares would probably do it.
First attempt:
Image

Good enough?
User avatar
Raziel
Posts: 1170
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: BUTTON_AutoButton

Post by Raziel »

Fits perfectly to the other buttons, if i were asked
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
Petrol
Beta Tester
Beta Tester
Posts: 175
Joined: Mon Dec 20, 2010 6:19 pm
Location: France

Re: BUTTON_AutoButton

Post by Petrol »

Nice work!
Is it possible to lock aspect ratio to avoid enlargement of the glyph inside the button?
The best would to allow to use custom graphics (vector or bitmap)!
regards,
User avatar
trixie
Posts: 409
Joined: Thu Jun 30, 2011 2:54 pm
Location: Czech Republic

Re: BUTTON_AutoButton

Post by trixie »

Petrol wrote:Is it possible to lock aspect ratio to avoid enlargement of the glyph inside the button?

Code: Select all

CHILD_WeightedHeight, 0,
CHILD_WeightedWidth, 0,
/.../
The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
User avatar
mritter0
Posts: 214
Joined: Mon Aug 25, 2014 9:41 pm
Location: Bettendorf, IA, USA

Re: BUTTON_AutoButton

Post by mritter0 »

Works for me.
Workbench Explorer - A better way to browse drawers
Post Reply