Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

File open dialog

2»

Comments

  • I see. So you would programmatically generate the XML based on the png files being dropped onto the control. Do I understand you correctly?

    If so, how would you know which commands the png file would be associated with?
  • edited October 2
    If I knew the button name I could find the appropriate line in the XML file. I laready have the XML file completed, all that's missing from the XML is the SmallIcon or LargeIcon value. BTW the names I used are generated via code and they match the associated original menu names, and I use a simple Send_Event to the (now hidden) menu.

    I have a ton of lines that look like the following (with <> removed below)

    Button Key="BTN_FILE_REGISTER"
    Command Key="FILE_REGISTER" Caption="Register" KeyboardTip="" Shortcut="" SmallIcon="" Tooltip="Register"
    Button
  • Or I could drop the file, save the name and then click on the button I wanted to assign the png file to.

    I'll just do it it with a seperate edit table that I'll parse the XML text into and have one column be the location of the png file that I will populate via drag and drop.
  • edited October 4
    Got it working by using an edit table, drag and drop png file on to the relevant line of the XML (displayed in the edit table), update xml with new png file, update toolbar by resting and telling it to use the new XML.
Sign In or Register to comment.