View Issue Details

IDProjectCategoryView StatusLast Update
0022071LazarusPackagespublic2020-03-28 12:14
ReporterWYC Assigned ToJuha Manninen  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Platformwin32/win64OSWIN7 
Summary0022071: ActionList Images store
DescriptionPlease run the Upload project1.

1. Both of the Form2 and the Form3 ActionList Images resources files
comes from of Form1 ImageList1.

I had set the Button Active form Actionlist, but the Button
GlyphShowMode property has no effect.
If you set button Action property from ActionList,
all Button Images resource are on the Form, not on the Form1.
When the Application have many forms, and ecah froms uses the same
images.
the application will be very Fat.
The images should be saved in the of Form1 ImageList1 save, rather
than stored in the resources of each Form.


2. If you change button Action from A Action to B Action. the button image did not changes.

TagsNo tags attached.
Fixed in Revision
LazTarget-
Widgetset
Attached Files

Relationships

related to 0021927 resolvedJuha Manninen issue TActionList 
related to 0035810 resolvedJuha Manninen The icons in the ActionlistEditor are shown very indistinctly. 

Activities

2012-05-19 04:50

 

120519.zip (133,624 bytes)

Vojtech Cihak

2012-05-19 11:35

reporter   ~0059730

I can confirm the second ikssue.

Ihor Lavrynyuk

2012-05-19 11:45

reporter   ~0059732

http://bugs.freepascal.org/view.php?id=21927
http://www.youtube.com/watch?v=AxlWUtPXluQ

and I confirm =))

Juha Manninen

2020-02-17 19:22

developer   ~0121146

Last edited: 2020-02-17 19:31

View 4 revisions

Please test with r62642.
I removed a test for Glyph.Empty from TCustomBitBtn.ActionChange. I also removed a "with" block to make it more readable.
Now the image changes at least when the ImageList is on the same form. In some tests it didn't work when using ImageList from Form1. But then it worked ... this needs more testing.
Anyway test for Glyph.Empty was wrong. It prevented swithing to another image.

There is a DebugLn note from main.pp line 5600 which may be relevant :
 Note: (lazarus) [TMainIDE.DoFixupComponentReferences] UNRESOLVED BEFORE loading 0 Root=Form3:TForm3 RefRoot=Form1 Refs="ImageList1"

DoFixupComponentReferences is a long method. It will take time to study and debug it. The text sounds like it could cause a problem when ImageList1 is referred from another form.

I added debug code to TCustomBitBtn.ActionChange. It is now commented out but please uncomment for testing and debugging.

Issue History

Date Modified Username Field Change
2012-05-19 04:50 WYC New Issue
2012-05-19 04:50 WYC File Added: 120519.zip
2012-05-19 11:02 Marco van de Voort Project FPC => Lazarus
2012-05-19 11:35 Vojtech Cihak Note Added: 0059730
2012-05-19 11:45 Ihor Lavrynyuk Note Added: 0059732
2012-05-19 12:12 Juha Manninen Relationship added related to 0021927
2020-02-17 19:12 Juha Manninen Assigned To => Juha Manninen
2020-02-17 19:12 Juha Manninen Status new => assigned
2020-02-17 19:22 Juha Manninen Status assigned => feedback
2020-02-17 19:22 Juha Manninen LazTarget => -
2020-02-17 19:22 Juha Manninen Note Added: 0121146
2020-02-17 19:28 Juha Manninen Note Edited: 0121146 View Revisions
2020-02-17 19:30 Juha Manninen Note Edited: 0121146 View Revisions
2020-02-17 19:31 Juha Manninen Note Edited: 0121146 View Revisions
2020-03-28 12:14 Juha Manninen Relationship added related to 0035810