Oxygen Basic
		Programming => Example Code => User Interface => Topic started by: Charles Pegge on November 20, 2013, 02:52:40 AM
		
			
			- 
				
 Stand-alone demo with icon, menu, dialog, and manifest.
 
 Compile with OxygenBasic.
 then Attach resources using batch file: CompLinkReso.bat
 
 .
- 
				Charles,
 
 Could you add a button and another control that shows it's using themes? The menu alone is hard to validate that theming is working.
 
 John
- 
				There is some useful reference material here:
 
 http://msdn.microsoft.com/en-us/library/windows/desktop/aa381043(v=vs.85).aspx
- 
				Actually, there is a button on the help / about dialog
 
 Buttons have to be contained within a dialog.
 
 You can experiment with other dialog controls in the resource.rc and resource.h scripts (no need to recompile with oxygen):
 
 // Our "about" dialog.
 IDD_ABOUTDIALOG DIALOGEX 0, 0, 147, 67
 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
 CAPTION "About"
 FONT 8, "MS Shell Dlg", 400, 0, 0x1
 BEGIN
 ICON             IDI_APPICON,IDC_STATIC,7,7,20,20
 LTEXT            "Win32 Test application.",IDC_STATIC,34,7,86,8
 LTEXT            "www.oxygenbasic.org",IDC_STATIC,34,17,86,8
 DEFPUSHBUTTON    "OK",IDOK,90,46,50,14,WS_GROUP
 AUTORADIOBUTTON "A", IDRB_A, 5, 35, 30,10
 AUTORADIOBUTTON "B", IDRB_B, 5, 45, 30,10
 END
 
- 
				I was just About to say ...
 
 (http://files.allbasic.info/O2/wine_o2res.png)