Hey developers! 👋 Are you working with Uniface and want to enhance your forms with visual highlighting? Let me introduce you to the curoccvideo statement - a powerful tool for setting video properties in your Uniface applications.
🔍 What is curoccvideo?
The curoccvideo
statement allows you to set video properties for fields of the current occurrence in Uniface forms. Think of it as your styling tool for creating visual feedback and highlighting in your applications.
📝 Basic Syntax
curoccvideo {/inner | /up} {/off} {Entity} {, AttributeList}
🎯 Example Usage
curoccvideo "CUSTOMER", "HLT"
🛠️ Qualifiers Explained
Qualifier | Description |
---|---|
/inner |
🎭 Apply properties to all inner entities, but not the specified entity itself |
/up |
⬆️ Apply properties only to inner entities painted as up entities |
/off |
❌ Turn off video highlighting for the current occurrence |
📊 Parameters
Entity Parameter
- 🏷️ Type: String
- 📝 Purpose: Name of an entity to affect
- ✨ Special: Use "*" to apply to all entities in the form
AttributeList Parameter
- 🎨 DEF: Sets default video attributes
- 🚫 NON: Sets no special video attributes
- 🎪 Custom attributes: Separated by semicolons (;) or commas (,)
🌈 Video Attributes Available
Code | Effect | Description |
---|---|---|
BLI |
✨ | Blinking text |
BOR |
🔲 | Border around field |
BRI |
💡 | Bright/bold text |
HLT |
🎯 | System highlight color (takes precedence!) |
INV |
🔄 | Inverse colors |
UND |
📝 | Underlined text |
COL=n |
🎨 | Custom color (sum of foreground + background) |
💡 Practical Examples
Example 1: Blue Background for Customer Fields
curoccvideo/up "CUSTOMER", "COL=57"
This creates white text on blue background for inner entities within Customer. The color 57 = 56 (black foreground) + 1 (blue background). 🔵
Example 2: Turn Off Highlighting
curoccvideo/inner/off "ENT1"
This disables highlighting for all inner entities within ENT1, but not ENT1 itself. 🔕
⚙️ Advanced Configuration
You can enhance your application's visual feedback using these assignment settings:
- 🔧 $CUROCC_VIDEO: Enable highlighting for all forms
- 🎨 $DEF_CUROCC_VIDEO: Define default video attributes
- 🎯 $CUROCC_VIDEO_HLT: Custom highlight color when needed
🔍 Important Notes
⚠️ Priority Order: Video attributes follow this precedence:
1. fieldvideo statement (highest)
2. $ACTIVE_FIELD setting
3. curoccvideo statement (lowest)
🎪 The curoccvideo statement works only with entities painted with multiple occurrences, unless the entity is painted as an up entity.
🎯 Conclusion
The curoccvideo
statement is a versatile tool for enhancing your Uniface applications with visual feedback. Whether you're highlighting active records, creating status indicators, or improving user experience, this function gives you the flexibility to make your forms more intuitive and user-friendly! 🚀
Have you used curoccvideo in your projects? Share your experiences in the comments below! 👇
📚 Based on Uniface Documentation 10.4 | 🤖 Created with AI assistance