- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
An edit box on a dialog box, how would you make it visible or not visible on the dialog box?
For example:
if a check box is checked then the edit box is visible and if the check box is not checked then the edit box is not visible.
Any help is appreciated. Thanks.
For example:
if a check box is checked then the edit box is visible and if the check box is not checked then the edit box is not visible.
Any help is appreciated. Thanks.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SUBROUTINE OnCheckBoxChange(Dlg,ID,iEvent)Also, take a look at XFLOGM extension on my home page -- it has DLG_VISIBLE control index as an extentsion.
USE DFWIN
...
iret = DlgGet(Dlg, IDC_CHECKBOX, bState)
IF (bState) THEN
iShow = SW_SHOW
ELSE
iShow = SW_HIDE
END IF
iret = ShowWindow(GetDlgItem(Dlg%hWnd, IDC_EDITBOX), iShow)
(See also this recent reply of mine -- there are issues if you need it at dialog startup).
Jugoslav

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page