View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0022071||Lazarus||Packages||public||2012-05-19 04:50||2020-03-28 12:14|
|Reporter||WYC||Assigned To||Juha Manninen|
|Summary||0022071: ActionList Images store|
|Description||Please 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
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.
|Tags||No tags attached.|
|Fixed in Revision|
120519.zip (133,624 bytes)
||I can confirm the second ikssue.|
and I confirm =))
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.
|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|