Author Topic: Compiling with Resources  (Read 3730 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

.

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

Charles Pegge

  • Guest
Re: Compiling with Resources
« Reply #2 on: November 21, 2013, 01:27:31 AM »

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

JRS

  • Guest
Re: Compiling with Resources
« Reply #4 on: November 21, 2013, 04:00:51 PM »
I was just About to say ...