`
Templates: Set icon on all windows to prevent memory leak 1999-03-07 -- Craig E Ransom Newsgroups: topspeed.products.c5ee Editors note: Please note that some lines may wrap in the template code. Hi Arnor! > Freeware? Mind stuffing them on the icetips fpt server if so? > Great big silly me! I thought SOMEONE had already posted one of these. It's not template rocket science, after all! Just populate it in the GLOBAL Extensions, not the Frame, and you have to populate it in ALL of your apps, including your dll apps, not just the parent (exe) app. #TEMPLATE(DefaultIcon,'This sets the default icon for the entire app'),FAMILY('CW20'),FAMILY('ABC') #!------------------------------------------------------------- #EXTENSION(DefaultIcon,'Select default icon for the entire app'),DESCRIPTION('Select default icon for the entire app'),FIRST #PROMPT('Select Icon File',OPENDIALOG('Select Icon for App','Icons|*.ICO')),%IconFile,REQ #AT(%CustomGlobalDeclarations) #PROJECT(%IconFile) #ENDAT #AT(%AfterWindowOpening) IF CLIP(0{PROP:Icon}) = '' 0{PROP:Icon} = '~%IconFile' END #ENDAT -- Craig (The Data Ferret) Using Virtual Access 4.02 build 244 (32-bit) in Win95 Clarion Prof Dev 2.1 / Clarion for DOS 3.x Clarion for Windows 1.0, 1.5, 2.0 / C4b / C5 Enterprise Pervasive.SQL / SQL Anywhere 5.5 CPCS CCS CLACom WinEvent CWA JANUS/Ada 83 95 CLAW "Do not meddle in the affairs of FERRETS...." Printed November 21, 2024, 6:43 am This article has been viewed/printed 35242 times. Google search has resulted in 28 hits on this article since January 25, 2004. |