The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog question
#1
i can initialize a control before the ShowDialog(), c3Che = 1
but
in a Dlg Procedure, i cannot change the state of the checkbox with c3Che = 0
Code:
Copy      Help
str c3Che e4 b5But

c3Che = 1 ;; initializes checkbox with a check

int hDlg=ShowDialog("" &sub.DlgProc &controls 0 1 1)

___________________________________________________
sel wParam
    case IDOK
    case IDCANCEL
    case 5         ;;button
        c3Che = 0  ;; doesnt work 

can you explain why it doesnt work in the sub procedure?  it recognizes that 3 is a control via the Case... does it not recognize the str variable?  whats the better option for changing state of controls in sub-procedure. thanks


Messages In This Thread
Dialog question - by ilcaa - 07-22-2020, 08:09 PM
RE: Dialog question - by Kevin - 07-23-2020, 12:18 AM
RE: Dialog question - by ilcaa - 07-23-2020, 12:44 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)