Dialog templates

Dialog templates

Postby frose » Tue May 19, 2009 10:35 am

Hello,

just planning my first dialogs in FiveWin and I don’t want to invent something again and again :wink:. So I'm looking for some modules or samples which approach my needs or are similar. Of course, there are mass of dialogs which aren’t generic at all, but I'm thinking of two dialogs, which I can use for nearly each module/work area:

First dialog: Edit all (or selected) fields, as an input array, of a work area with the following functions/items:
- Select one or more records in a browse and start this dialog
- Replace a string (term) in all fields:
-- Get for the string to search
-- Get for the string to replace
-- Radio button for ‘case sensitive’ and ‘case insensitive’
- Check boxes for each field to prevent for unwanted changes
- Get fields for each field with an optional drop down box
- Folders for further fields, when the dialog size isn't big enough for all fields

Second dialog: Set a filter for a work area, with the following functions/items:
- Get for the search string (term)
- Radio button for ‘term as part of’, ‘complete term’
- Radio button for ‘case sensitive’ and ‘case insensitive’
- List box with all fields, source
- List box with all selected fields, destination
- Buttons for add a new condition with ‘.AND.’ and ‘.OR.’
- Functions to select, deselect fields by keyboard or ‘drag & drop’
- Radio button for the encoding: OEM, UTF-8, ANSI
- Get box to show (perhaps edit) the complete filter condition
- Buttons for ‘Cancel’, ‘Set filter’, ‘Store’ and ‘Load’ for previous designed filter conditions

Example:
1. Condition: WildMatch( [*SEARCH1*], HB_AnsiToOEM( Upper( FIELD->One + FIELD->Two ) ), .F. )
2. Condition: WildMatch([*SEARCH2*], HB_AnsiToOEM( Upper( FIELD->Three ) ), .F. )
Result: { || WildMatch( [*SEARCH1*], HB_AnsiToOEM( Upper( FIELD->One + FIELD->Two ) ), .F. ) .AND. WildMatch([*SEARCH2*], HB_AnsiToOEM( Upper( FIELD->Three ) ), .F. ) }

I appreciate to get any samples, comments or suggestions for a different approach and of course, if the dialogs are not yet available, I will share them here when finished.
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 73 guests