I'm having a problem with the Tab Control - it seems that they have a problem with Option controls outside the Tab. Below is a short example showing the problem ... the comments explain what's going on. I've tried this with both XP and Vista.
Code:
#INCLUDE "win32api.inc" FUNCTION PBMAIN () AS LONG LOCAL hDlg AS LONG LOCAL Tab1 AS LONG ' Create the Main Dialog DIALOG NEW 0, "Tab Test",,, 200, 150, %WS_SYSMENU TO hDlg ' Add a couple of options ' These seem to fail if a single control is added to the Tab below ' They do not fail for other types of control here CONTROL ADD FRAME, hDlg, -1, "", 10, 9, 90, 40 CONTROL ADD OPTION, hDlg, 1001, "Option 1", 20, 18, 70, 12 CONTROL ADD OPTION, hDlg, 1002, "Option 2", 20, 32, 70, 12 ' Add a Tab control CONTROL ADD TAB, hDlg, 1003, "", 10, 60, 175, 60 ' Add Tab page TAB INSERT PAGE hDlg, 1003, 1, 0, " Tab 1 " TO Tab1 ' Add a Control to the Tab ' The following line causes the Option controls above to fail ' It does not seem to matter which type of control is added here ' If no control is added to Tab1 then the above Options are OK CONTROL ADD LABEL, Tab1, -1, "Hello", 10, 10, 250, 12 ' Display the main dialog box DIALOG SHOW MODAL hDlg END FUNCTION
Comment