Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttons with ICON Pics Troubles

Status
Not open for further replies.

jsams

Programmer
Aug 22, 2000
73
US
Our app is written in FPW 2.6 and recompiled for an EXE in VFP 6.0. Yesterday I tried to execute one of our client's EXE's and when the screen came up any buttons with icon pictures were disabled. Buttons with text only, no problems.

If I run the .PRG in VFP 6.0, it works fine, picture buttons are enabled. Some of the client EXE's have not been touched for months. IF I run the EXE's from the VFP 6.0 CMD window and they will work OK. The problem occurs when EXE's are started in their own sub-dirs.

Each client EXE exists in its own sub-dir with its own tables and VFP runtime DLL's in root with the EXE's.

If I run the EXE's from other workstations, they work OK. If I recompile on my machine, the new EXE's will work OK on other workstations. Obviously I have hosed something on my setup.

I tried reloading VFP 6.0 with service packs thru SP 5.0, no relief. Our workstations are Gateway PIII-500mhz, 256mb ram, W2000 Opsys.

Would appreciate any comments on where I go from here.

Thanks in advance,
John
jsams@lrs.com


 
Is it just the picture that "looks" disabled? Does the button still work?
Sometimes video cards play tricks. Go to the advanced button on the Setting tab of the display properties. And try to reduce the hardware acceleration, see if that helps.
 
Buttons are truly disabled. They do not function. Took the acceleration all the way to MIN and no difference.

I forgot to mention that out of the 5 picture buttons at the bottom of one of the EXE's that, there is one that is enabled and works. Have checked to code and there is nothing special about that button. All the icons are pulled from the same sub-dir when the EXE's are built.

John
 
Go the problem fixed. It was the desktop shortcuts! Found that I could execute the EXE from Windows Explorer and everything works OK!

Not sure what the problem is but discovered that the shortcuts that weren't working had targets like:

\\servername\dept_subdir\working\prgm.exe

Recreated the shortcut, only this time it looks like:

T:\working\prgm.exe

We are using W2000 Servers and W2000 Workstations.

We had some problems about a month ago where everyone lost their drive mappings when we logged into the LAN one morning. Things magically reappeared about 2 hours later. Don't know why the 1st Target addressing quit working yesterday, but evidently the drive letter mapping is working back to the server correctly.

Thanks to Mgagnon for your quick reply. Just glad to solve this one!!!

John

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top