` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: View only form (using existing form) -- Code Template
1999-08-20 -- Kevin Jackson
 
I wrote a small code template to do this, you add it to the Open Window (Priority) within the Thiswindow.Init method. It will disable all controls except the one's you specify not to, also it doesn't disable sheets or tabs. It's as below :- #CODE(DisableControlsExcept,'Disable All Controls Except') #TAB('%Controls') #BUTTON('Controls...'),MULTI(%Cntrls2,%ControlEqu2) #PROMPT('Control :',CONTROL),%ControlEqu2,REQ #ENDBUTTON #ENDTAB #FOR (%Control) #IF (%ControlType = 'TAB' OR %ControlType = 'SHEET' OR %ControlType = 'PROMPT' OR %ControlType = 'STRING') #CYCLE #END DISABLE(%Control) #FOR (%Cntrls2) #IF (%Control = %ControlEqu2) ENABLE(%Control) #BREAK #ENDIF #ENDFOR #ENDFOR


Today is May 5, 2024, 5:45 am
This article has been viewed 35123 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: