Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C++ Style Toolkit

Featured Replies

Posted

Just found a great article on CodeProject a few minutes ago and it just seemed too good not to share. I realize many of you will visit there already. But this just seemed like a gem, worthy of mentioning.

The idea is to programmatically build up an image using layers, in much the same way as Photoshop. After these layers have been assembled, a single bitmap is created showing the result of combining them. This means that re-draws are lightning-quick, since all the hard-work has already been done, and the code is just blasting a HBITMAP back onto the screen.

Like all articles it comes with full source, though you've got to be a member to download them. So I'll just provide a link to the original article as well as the downloads for it.

P2_TealPane.png

This image above was created using the shield as a png, and just 7 lines of code! - OOps, I mean 9 lines of code.

P1_DemoProgram.png

This image just shows some of things possible.

I'm a bit of two minds, as to whether our std practice of including images for everything is going to be better, or if this appraoch will be better. I suppose that if it doesn't suit you, you can always return it :tongue:

No, to be fair - the thing I like about it most, is the ability to provide a complex interface that the user can customize the colours of at run-time, without us having to (a) include as many different colour schemes as we can think of, or ( B) do all the dirty work needed to colorize images used for interface items. In any case, it seems pretty damn neat from where I'm sitting.

You can read the article here: [s]http://www.codeproject.com/KB/cpp/Style_Toolkit.aspx

[EDIT] The article has since been moved to: http://www.codeproject.com/KB/GDI-plus/Style_Toolkit.aspx

- thanks Azmo.

StyleToolkit_src.zip

StyleToolkit_exe.zip

StyleToolkit_demo_src.zip

Edited by enhzflep

http://www.codeproject.com/KB/cpp/Style_Toolkit.aspx

Page Not Found :(

try this

http://www.codeproject.com/KB/GDI-plus/Style_Toolkit.aspx

azmo

thanks azmo and enhzflep :D

zugo

enhzflep, thx for sharing.

Nice.. will keep me occupied tonight :)

  • 3 weeks later...

thx for sharing.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.