I am having a strange problem with using child windows with the %DS_CONTROL
property along with a radio style pushbutton. Here's the problem whenever
you place any control on the child window (ie. Label, Button, Frame) the ap
locks up when you push one of the radio style buttons. If there is no
controls on the child window, the radio button works fine. Here is an
example piece of code that shows the problem.
Anyone have any idea's why this would be locking up like this?? I have
been playing around with this all night and have no clue...
Scott
------------------
property along with a radio style pushbutton. Here's the problem whenever
you place any control on the child window (ie. Label, Button, Frame) the ap
locks up when you push one of the radio style buttons. If there is no
controls on the child window, the radio button works fine. Here is an
example piece of code that shows the problem.
Code:
#Compile Exe #Dim All #Include "win32api.inc" CallBack Function DlgProc Select Case CbMsg Case %WM_COMMAND Select Case LoWrd(CbWparam) Case 100 Case 110 Case 120 Dialog End CbHndl, 0 End Select End Select End Function Function PbMain As Long Local hDlg As Long Local hDlg2 As Long Dialog New 0, "Test W/Child Window",,,200,120 To hDlg ' Child Window for Start of a TAB Control - But when this ' Window has anything in it, and the AUTORADIOBUTTON style ' buttons are defined below the app locks up whenever one ' of those buttons is pushed! Dialog New hDlg,"" , 5, 55, 141, 38, %WS_CHILD Or %DS_CONTROL, 0 To hDlg2 Dialog Show Modeless hDlg2 Call DlgProc ' With the label below Commented out the ap will not lock ' up, but with the label un-commented the ap locks up as ' soon as you press one of the two image buttons (blank) ' Anyone know why????? Control Add Label, hDlg2, -1, "Test Label", 3, 3, 80, 8 Control Add ImgButton, hDlg, 100, "", 165, 20, 27, 25, _ %BS_AUTORADIOBUTTON Or %BS_PUSHLIKE Or %BS_ICON Or _ %WS_GROUP Control Add ImgButton, hDlg, 110, "", 165, 50, 27, 25, _ %BS_AUTORADIOBUTTON Or %BS_PUSHLIKE Or %BS_ICON Control Add Button, hDlg, 120, "&Quit", 165, 80, 27, 25 Dialog Show Modal hDlg Call DlgProc End Function
been playing around with this all night and have no clue...

Scott
------------------
Comment