This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compile('***',_WIDTH32_) | |
ANSI EQUATE('A') | |
*** | |
omit ('***',_WIDTH32_) | |
ANSI EQUATE('') | |
*** | |
!-Rely On Once due to IDE Navigation Bugs-! omit('*** ifdef API_CommonDialog ***',ifDef_API_CommonDialog) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: this batch file, created: by mark@tradesmens.com on Jan/19/2011 | |
:: | |
:: see http://support.microsoft.com/kb/296264 | |
:: see http://www.dataaccess.com/whitepapers/opportunlockingreadcaching.html#Making_Windows_Registry_Changes | |
:: | |
@echo You are about to configure your machine for Multi-user simulataneous sharing of files: | |
@echo\ | |
@echo\ | |
:: | |
:: 0123456789 123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FRAME_WndProc Procedure(HWND arghwnd, UINT argmessage, WPARAM argwParam, LPARAM arglParam) !LRESULT,PASCAL | |
_WM_ACTIVATEAPP EQUATE(28) | |
RetVal LRESULT | |
CODE | |
CASE argMessage | |
OF _WM_ACTIVATEAPP ; IF argWParam | |
oGlo.OnGainFocus() | |
ELSE oGlo.OnLoseFocus() | |
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!=========================================================================================== | |
SpellNum PROCEDURE(REAL pInputNum)!,STRING | |
!Region Documentation | |
! ============================================================ | |
! Purpose : Spell out a number | |
! Assume Dollars and Cents | |
! ex: 63.46 -> Sixty Three Dollars and 46 Cents | |
! Assume American System of Numbers | |
! I`ve read that 10^9 is Milliard not Billion in the British System of Numbers | |
! I`ve read that trillion in the British System is 10^18 not 10^12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!NOTE should be worked into https://github.com/MarkGoldberg/CwUnit/blob/master/Libsrc/ctDateTimeLong.inc | |
gtDateTime GROUP,TYPE | |
_Date DATE | |
_Time TIME | |
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TestDragAndDrop PROGRAM | |
MAP | |
Frame | |
DragFrom | |
DragTo | |
END | |
! Note: if you don't have debuger.inc then just rem all lines using DBG -- it's just for sending event info to OutputDebugString | |
! which you can view with DebugView++ or DbgView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEMBER | |
! http://www.odata.de/Clarion/colored_background_for_appframe | |
! the above from Wolfgang Orth says this code was from Jim Gambon on the newsgroups | |
! that sounds right, but somehow I forgot to give credit in the class. (blush) | |
MAP | |
MODULE('Win32API') | |
GetClassLong (LONG _hWnd,LONG _Index ),LONG, PASCAL,NAME('GetClassLongA') | |
SetClassLong (LONG _hWnd,LONG _Index,LONG NewValue),LONG,PROC,PASCAL,NAME('SetClassLongA') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!Below is a simplified version of code that I call after opening every window | |
MOD:LineHeight LONG(9) | |
CorrectControls PROCEDURE(*Window xWin) | |
CurrFEQ SIGNED !No Auto | |
IsFrame BOOL,AUTO | |
CODE | |
IsFrame = CHOOSE( xWin{PROP:Type} = CREATE:application ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
END | |
END | |
CODE | |
TextFile{PROP:Name} = 'Yada.txt' | |
DO CreateFile | |
SYSTEM{PROP:DataPath} = 'C:\TMP' | |
DO CreateFile |