I have been though the POFFS database (offline!) but I still can't figure out how to do something.
Using PB/DLL 6.0 SDK/API-style (non-DDT) I have a dialog box; one of the controls on the box is a 5-line "edit" control which I am using for output. The resource file (*.rc) entry:
The way the dialog works (and it DOES work!) is the user plays around with the controls to set some values, then presses an "OK" button. At that point I do some calculations (they do NOT work yet) and display the results in this edit control. The user can then change values and press "OK" again to get new calculations (or press "Quit" to exit).
What I want to do with this control is twofold.
First, I would like to "color" the control so that the output stands out on the screen; ie... does not just look like a dark area on the screen. (Just blue/red text on white background would be fine).
Second (and this may not even be possible). If the user changes something on the screen which means a "recalculation" is necessary, I wish to then "dim" or "recolor" the control's text (not erase it!) so the user knows that what's in the output box is no longer valid. (Actually, this could just revert to the default colors).
I could just disable the "OK" button unless the current output is valid, but that does not have the visual impact I am seeking.
Can anyone point me in the right direction? Do I need to change to a "richedit" control to do this? Subclass the edit control?
FWIW, this is not a "for profit" venture - my plans are to give away the executable program (it's an IBM mainframe VSAM allocation space calculator) with lots of advertising in the "about" box which says, "see, I *can* do Windows as well as mainframe."
Thanks in advance,
------------------
Michael Mattias
Racine WI USA
[email protected]
Using PB/DLL 6.0 SDK/API-style (non-DDT) I have a dialog box; one of the controls on the box is a 5-line "edit" control which I am using for output. The resource file (*.rc) entry:
Code:
EDITTEXT IDD_OUTPUT_BOX, 156, 132, 108, 56, ES_LEFT|ES_READONLY|ES_MULTILINE, WS_EX_CLIENTEDGE
What I want to do with this control is twofold.
First, I would like to "color" the control so that the output stands out on the screen; ie... does not just look like a dark area on the screen. (Just blue/red text on white background would be fine).
Second (and this may not even be possible). If the user changes something on the screen which means a "recalculation" is necessary, I wish to then "dim" or "recolor" the control's text (not erase it!) so the user knows that what's in the output box is no longer valid. (Actually, this could just revert to the default colors).
I could just disable the "OK" button unless the current output is valid, but that does not have the visual impact I am seeking.
Can anyone point me in the right direction? Do I need to change to a "richedit" control to do this? Subclass the edit control?
FWIW, this is not a "for profit" venture - my plans are to give away the executable program (it's an IBM mainframe VSAM allocation space calculator) with lots of advertising in the "about" box which says, "see, I *can* do Windows as well as mainframe."
Thanks in advance,
------------------
Michael Mattias
Racine WI USA
[email protected]
Comment