This very simple code freezes when I click on the option control. Is it obvious why?
[/CODE]
Code:
[CODE]#Compile Exe #Dim All #Include "Win32API.inc" Global hDlg As Dword Function PBMain() As Long Dialog New Pixels, 0, "Test Code",300,300,600,500, %WS_OverlappedWindow To hDlg AddTAB Control Add Option, hDlg, 150, "Pick Me!", 20,290, 100,20 Dialog Show Modal hDlg End Function Sub AddTab Local hPage1 As Dword, hPage2 As Dword Control Add Tab, hDlg, 540, "", 400,370,150,75 Tab Insert Page hDlg, 540, 1,0,"Page1" To hPage1 Control Add Label, hPage1, 550, "Label1", 20,20,60,20 End Sub
Comment