sSpeedButton Tied To TAction Not Updating Image

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #37079
    TAZ
    Participant

    Version 11.03

    The example I am including contains 2 speed buttons, 1 button, 2 images and an action list with 2 images in an image list.

    Both speed buttons are tied to the action.

    Pressing the right button is suppose to change the image from yellow to red.

    • First speed button is not changing. Action change has no effect.[*]Second speed button is changing because I am calling the speed buttons image index directly instead of the actions image index.[*]First image is changing. It is calling the action image index.[*]Second image is changing. It is calling the speed buttons image index.

    You can also see the problem when you create a project with an action list and assign the speed button an action and the image index is not changed which means no image.

    #55396
    Support
    Keymaster

    Thank you for the demo, I'll try to improve it in the nearest release.

    #55433
    TAZ
    Participant

    It is not working. I have an idea what is happening.

    I built another project with an skin manager, skin provider, action list, skin image list, skin virtual image list and an image list.

    I put 2 image in each image list. Added one action and set the image index to 0.

    I then set the action list images to ImageList1. The image appears in the action list.

    I then changes the action list images to sAlphaImageList1. The image does not appear in the action list. I tried the same with sVirtualImageList1. Same result.

    I had been wondering why the image was not appearing beside the action. It use to if I remember right.

    Could this be part or the whole problem I am observing?

    I also add a non skin project that correctly changes the image from one to another at design time.

    Sorry for the trouble. I have been using your components for 6 years and I appreciate you effort to expand their capabilities.

    #55441
    Support
    Keymaster

    Some limitations exists in the TsAlphaImageList because it's not standard imagelist, standard property editor can't handle it correctly.

    I have researched this issue some time ago, but have no idea how to make it still, unfortunately.

    #55444
    TAZ
    Participant

    No problem. I have a work around. Just requires a few more lines of code.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.