Oxygen Basic
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Latest OxygenBasic.zip at GitHub
(Click on the Wizard)
Home
Help
Search
Login
Register
Oxygen Basic
»
Programming
»
Example Code
»
User Interface
»
Compiling with Resources
« previous
next »
Print
Pages: [
1
]
Author
Topic: Compiling with Resources (Read 3731 times)
0 Members and 1 Guest are viewing this topic.
Charles Pegge
Guest
Compiling with Resources
«
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
.
Logged
JRS
Guest
Re: Compiling with Resources
«
Reply #1 on:
November 20, 2013, 09:30:17 PM »
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
Logged
Charles Pegge
Guest
Re: Compiling with Resources
«
Reply #2 on:
November 21, 2013, 01:27:31 AM »
There is some useful reference material here:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa381043(v=vs.85).aspx
Logged
Charles Pegge
Guest
Re: Compiling with Resources
«
Reply #3 on:
November 21, 2013, 01:45:26 PM »
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
Logged
JRS
Guest
Re: Compiling with Resources
«
Reply #4 on:
November 21, 2013, 04:00:51 PM »
I was just
About
to say ...
Logged
Print
Pages: [
1
]
« previous
next »
Oxygen Basic
»
Programming
»
Example Code
»
User Interface
»
Compiling with Resources