Changing Command Window Font Programmatically
This code uses Editor functions from Foxtools.fll. See George Tasker's Extended Foxtools Help Download #9333 on UT for more info.
| This is sample code. Add error handling and adjust to your requirements as necessary. |
LOCAL ARRAY laEnv[25] SET LIBRARY TO FoxTools ADDITIVE ACTIVATE WINDOW Command * Get the whandle for the current window lnwhandle = _WonTop() lnResult = _EdGetEnv( lnwHandle, @laEnv ) * Make sure that call succeed and the handle belongs to the Command Window IF lnResult <> 0 AND laEnv[25]=0 && Font Name laEnv[22] = "Consolas" && Font Size laEnv[23] = 13 IF _EdSetEnv( lnwHandle, @laEnv ) <> 0 ? "Success" ELSE ? "Could not set Command Window Font" ENDIF ELSE ? "Could not get Command Window handle" ENDIF
Recent comments
1 week 5 days ago
1 week 5 days ago
2 weeks 2 hours ago
2 weeks 1 day ago
2 weeks 2 days ago
2 weeks 5 days ago
3 weeks 5 days ago
3 weeks 6 days ago
4 weeks 14 hours ago
4 weeks 4 days ago