Skip to content

Instantly share code, notes, and snippets.

@CarlTBarnes
Last active September 22, 2022 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CarlTBarnes/25110b330fa9b34c33bfe0904c5fbae9 to your computer and use it in GitHub Desktop.
Save CarlTBarnes/25110b330fa9b34c33bfe0904c5fbae9 to your computer and use it in GitHub Desktop.
00 Index of my GIST because there does not seem to be options to list them by file name or description
Backup_CW_Project.BAT https://gist.github.com/CarlTBarnes/bbb936e418226d55ff8651bb1bfbf7e4 Backup Clarion Project BAT files
CBAltWin7Fix.tpl https://gist.github.com/CarlTBarnes/5e0e7d5a3e3f0b5c991e8f0601e69004 Fix Alt key lockup problem with the latest version of Windows 10 that I wrote and published in ClarionMag
CascadeMdiChildren.clw https://gist.github.com/CarlTBarnes/ed29557b7142ec4695f7d460cabef3fd Cascade open MDI Child windows like Clarion RTL STD:CascadeWindow using Windows API
Clarion_Hub_Interesting.txt https://gist.github.com/CarlTBarnes/aabb812d5a34fcfe69d2421702799aef Clarion Hub links of interest
CloseWindowHook.clw https://gist.github.com/CarlTBarnes/f86f6b695276b2b3327f5959e5c57682 Prop:CloseWindowHook Example Clarion
DateSplit.clw https://gist.github.com/CarlTBarnes/77ebb46ddcce3ed7c4040f9c31bd571c DateSplit(Date, Month, Day, Year) much faster than calling MONTH() DAY() YEAR() separately
DayOfWeek.clw https://gist.github.com/CarlTBarnes/b4ec3d3968ccc8de0f5d81d9f4ada7cf Day of Week from Clarion Date
DebugOutput.clw https://gist.github.com/CarlTBarnes/d3c7a3779b094f0ed48186d04a9b45e6 OutputDebugString wrapper for Clarion String
DebugViewDetect.clw https://gist.github.com/CarlTBarnes/c88a85373873f6ff54b79071e1a67d80 Debug Viewer Detection for OutputDebugString
DropListLeftAlign_Test.clw https://gist.github.com/CarlTBarnes/6b2812bf95e9b8de1cc84f934efcd969 DROP List is Left Aligned by Class for Combo/List Control. Normally RTL aligns Right. CBDropLeftClass
DropListPretty.clw https://gist.github.com/CarlTBarnes/c100da879ac9f5992b4dd7358132b8de DROP List more visble and easiler to read colored
DEP_Policy_Test.clw https://gist.github.com/CarlTBarnes/d0f94d5ec6df1d4385909d67dbf49bd2 DEP Policy View and Test in Clarion (does not require 13620)
Error4Message.clw https://gist.github.com/CarlTBarnes/a6ee0a195aaaab54d7ac3abd55aade84 Format ErrorCode() & Error() etc ... to show in a Message() Stop() Halt(), or format on 1 line for a Log file or debug/tracing
ExistsDirectory_or_File.clw https://gist.github.com/CarlTBarnes/d301e2cffa475820f6cc4e9fd7895ff9 ExistsDirectory() or ExistsFile() using GetFileAttributes() instead of Clarion Exists()
FileAttributes.clw https://gist.github.com/CarlTBarnes/2d89615faa064f0b8437c6a66d0f80e2 File Attributes Strip Read Only - GetFileAttributes / SetFileAttributes
FileExtensionFromName.clw https://gist.github.com/CarlTBarnes/45e9e2f25ac304e44451a5558490e36d Find the File .EXT on the end of a File Name after last period
Get_SetWindowLong.CLW https://gist.github.com/CarlTBarnes/d2248102dc06873df577f31ad3db1be8 GetWindowLong() then SetWindowLong() applying an OFF and ON Bitmask
GroupMoveChildren.CLW https://gist.github.com/CarlTBarnes/a2d910ecea78d4d3ddea6201ee72adba Move a Group and all of its Child Controls
Hex8_FromLong.clw https://gist.github.com/CarlTBarnes/a05f6318fd1c7eece9802b0aacda4e3d Hex String from LONG
LenFastClip.clw https://gist.github.com/CarlTBarnes/ea0c8cafb1fd8b6e428f4160058330eb LenFastClip replaces LEN(CLIP()) in ClaRUN.DLL as NAME('Cla$FASTCLIP')
ListDropDown.clw https://gist.github.com/CarlTBarnes/7d0b7c6e8547447de87b04f6211fc1d3 LIST and COMBO -- Show the DROP List or Hide it .. see also "DropXxxx" above
LoadLibraryExample.clw https://gist.github.com/CarlTBarnes/9fcde37b3b5278083cb594244fb9361f LoadLibrary Example
Manifest_WindowsXX.Manifest https://gist.github.com/CarlTBarnes/4c7f97d922a3e19ea5592c73c999ad41 Manifest files for Windows 10 8.1 8 7 with Visual Styles
ManifestFixupFunction.clw https://gist.github.com/CarlTBarnes/2abf8a7be95cd14da586c7b9c17173f4 Manifest Fixup Controls for Hand Code
MenuOpenMessage.clw https://gist.github.com/CarlTBarnes/e2902bb0280fe25554aa67b2e9292c51 Menu Open Windows Message to modify menus before opening
MonthName.clw https://gist.github.com/CarlTBarnes/e39ff03a571295a3a9a0c89d10a6daaf Month name from Date or Month number
Option2DropList.clw https://gist.github.com/CarlTBarnes/e73b02cee9c2d5b73eab8a35e841f618 Generate LIST,DROP,FROM based on OPTION and RADIOs
ParseTokenStringIntoQueue.clw https://gist.github.com/CarlTBarnes/709d454636f2d441072fb40714c5138e Parse String with Delimited with Tokens into a Queue
PathExists.clw https://gist.github.com/CarlTBarnes/e2b1f07fcc306192c32995c03249d28b Path Exists or File Exists functions versus Clarion Exists()
PopupUnder.clw https://gist.github.com/CarlTBarnes/297557ade046558cdeb183fdd27bb1df Popup() Menu Under or Beside a Control so Menu appears to drop under a Button
RED Clarion110.red https://gist.github.com/CarlTBarnes/bb8f31ff45896db9cacaee79c732ca8e Clarion 11 RED file to Copy Debug ClaRUN.DLL to Project Folder during Debug build Region_Drag_Window.clw https://gist.github.com/CarlTBarnes/3bc3f0164071bc0548df2db8b2fd6963 Region dragging with mouse example, e.g. for Splash Window with no title bar
RemoveDirectoryOfFiles.clw https://gist.github.com/CarlTBarnes/67e8a4e53c12ec820d9d6ebbba6957a3 Remove Directory of Files using Directory() and API DeleteFile
RemoveFileWithAPI.clw https://gist.github.com/CarlTBarnes/e5d553a8ffe4287b0e19deac9c432202 Remove file using API DeleteFile() to avoid bugs and slow speed of in RTL REMOVE()
RemoveMinButton.clw https://gist.github.com/CarlTBarnes/86b64b19d5309a1ca00d1fce2bb225a3 Remove Minimize button so window can have ICON() but user cannot minimize
ReplaceString.clw https://gist.github.com/CarlTBarnes/03a1929c5ddcba80ea657ffe04e93c94 Search and Replace Substring in a String
ReportManualPaging.clw https://gist.github.com/CarlTBarnes/1e0ddd480e083f8feedb4a98f53176a4 Report Manual Page class and Template - To control page breaks by counting lines
ReportPrintWithDebugLogging.clw https://gist.github.com/CarlTBarnes/cd99310728b490cf4e085d8c4cccd2c6 ReportPrint() procedure Prints Details while logging to OutputDebugString. Can also add STRING to printed BAND to Identify it.
ReportTest.clw https://gist.github.com/CarlTBarnes/29f78a2ca43813e83489dc62a4d5e0c0 Report Scratch program and test Framework
Scratch.clw https://gist.github.com/CarlTBarnes/87e1b615288409b86b7f7af4488e8dbd Scratch source I use when I want to write a quick test of some code
SmashSpaces.clw https://gist.github.com/CarlTBarnes/09bdf8ad4870f366749e9ec64d6a97b8 Smash (remove) spaces from a STRING
TimeSplitAndJoin.clw https://gist.github.com/CarlTBarnes/95ce2526c6ad74511cb475cd469ca0fd TimeHMSh (Hour,Min,Sec) like DATE(). Also TimeSplit() Faster than using Hoiur() Minute() Second()
UnsignCSharp.cs https://gist.github.com/CarlTBarnes/441066055dff8fdbc011c2d20b3b7511 C++ remove Codesigning Certificates #1 - also OptionalHeader DataDirectory IMAGE_DIRECTORY_ENTRY_SECURITY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment