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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foxpro 2.6 Window Icons 1

Status
Not open for further replies.

RWF

Programmer
Apr 16, 2001
24
US
I have seen it before, but cannot remember where. I do believe it is possible to change the Foxpro icon in a window to one of your choosing. This is not the Icon File in the the Windows Style button, but the icon that appears in the title bar of every window.

Thanks in advance, RWF.
 
For each Screen, with the screen open for Edit, in the Menu choose Screen -> Layout... -> Window Style, then click on the Icon File button.

For adding it to the code file - .EXE's only - use the ADDICON.PRG (i.e. for viewing in shortcuts and Explorer.)

For adding it to the Main FP Window, in your main .PRG, add a line like:
MODIFY WINDOW SCREEN ICON myicon.ico

Rick
 
I appreciate your answer Rick, however, I specifically stated in my question I do not want the information relating to "Windows Style" in the Screen Designer.

Once again, I want to change the icon in the Title bar of the open window. This cannot be done through Foxpro.
 
OK to clarify, if the "Window" is one that is created by a screen, then the Window Style Icon IS the only way to do it. However it is critical that the .ICO file have a 16x16x16 (Height x Width x Colors) - if at least this is not available FPW will use the default "foxhead".

If the &quot;Window&quot; is one of your own creation (DEFINE WINDOW ...), then you can include the ICON <iconfile.ico> option here or later in a MODIFY WINDOW ... - much like the third example (where SCREEN is just a special, predefined window). Note: The 16x16x16 requirement applies here too.

Rick
 
I'm triying to modify a field in a database using MODIFY STRUCTURE, but it appears like a read only file and display a window saying:&quot;DATABASE NOT OPENED EXCLUSIVELY&quot;. How can I modify these database fields?

Thanks,Ped.
 
Ped,

You'll need to open the table Exclusively before you can change it's structure.

USE mytable EXCLUSIVE
MODIFY STRUCTURE

an alternative is:

SET EXCLUSIVE ON
USE mytable
MODIFY STRUCTURE

Rick

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top