Jump to content

Icons missing after reboot; ok if restart app...


Recommended Posts

Hi all,

I've got an app with a gui with a number of icons, where the icons are created as such:

$btnDelete0 = guictrlcreatepic("delete.jpg", 420,  30, 16, 16)
    $btnDelete1 = guictrlcreatepic("delete.jpg", 420,  60, 16, 16)
    $btnDelete2 = guictrlcreatepic("delete.jpg", 420,  90, 16, 16)
    $btnDelete3 = guictrlcreatepic("delete.jpg", 420, 120, 16, 16)
    $btnDelete4 = guictrlcreatepic("delete.jpg", 420, 150, 16, 16)
    $btnDelete5 = guictrlcreatepic("delete.jpg", 420, 180, 16, 16)
    $btnDelete6 = guictrlcreatepic("delete.jpg", 420, 210, 16, 16)

Nothing special, as far as I can see.

The app is run on start up, via a setting in the HKLM/Software/Windows/Current Version/Run registry setting.

But I (and other users) are seeing a problem where the icons are missing on first start. If we exit and re-start the application, everything is OK.

Anyone got any suggestions?

Thanks in advance,

Andy

Link to comment
Share on other sites

Include this line at the top of your script:

MsgBox(0, "Current working directory:", @WorkingDir)

It's possible that the program is given a different working directory when run at startup through the registry. If this is the case, you should notice a difference in the contents of the message box when you start the program yourself, as opposed to having it started automatically.

Link to comment
Share on other sites

Sokko,

Many thanks for the advice. I've been looking into it over the weekend, and got it working by moving the auto start up from the registry setting to the Start->All Programs->Startup option.

At least, it worked on my PC, I've not tested others' PCs.

I'll try your suggestion anyway, to give me another option.

Thanks again,

Andy

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...