Author Topic: Vertical toolbar with iPhone style buttons  (Read 7016 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7619
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Vertical toolbar with iPhone style buttons
« on: November 25, 2012, 01:39:46 PM »
I confess I don't particularly like the style but these minimal style interfaces are becoming popular due to their use in gadgets like iPhones.

Note that I have compressed the exe with PECompact mainly to test how well monochrome buttons compress, as built the app comes in a bit over 90k.

A little creativity using 16 colour with black, 2 greys and white would drop the size even further and would probably look OK if done properly.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: Vertical toolbar with iPhone style buttons
« Reply #1 on: November 25, 2012, 01:54:41 PM »
nice   :t

jj2007

  • Member
  • *****
  • Posts: 10655
  • Assembler is fun ;-)
    • MasmBasic
Re: Vertical toolbar with iPhone style buttons
« Reply #2 on: November 25, 2012, 07:06:05 PM »
Looks good :t
And I can see the potential for a "vertical" language like assembler ;-)

Bill Cravener

  • Guest
Re: Vertical toolbar with iPhone style buttons
« Reply #3 on: November 26, 2012, 03:51:38 AM »
Nice Steve! Flat is where it’s at. . . :icon14:

Gunther

  • Member
  • *****
  • Posts: 3585
  • Forgive your enemies, but never forget their names
Re: Vertical toolbar with iPhone style buttons
« Reply #4 on: November 26, 2012, 04:45:31 AM »
Rock solid work. But is that kind of toolbar really the future?

Gunther
Get your facts first, and then you can distort them.

fearless

  • Member
  • ***
  • Posts: 480
    • LetTheLightIn
Re: Vertical toolbar with iPhone style buttons
« Reply #5 on: November 26, 2012, 06:11:54 AM »
Yes, looks nice. The clean interface style does look modern. I didnt know about the stretching ability of the bitmaps with loadimage - handy to know as ive been using big massive bmps (well, png converted to bmp with the pnglib) and i could have simply used a single row or column bmp and stretched it out.
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

My Github  Twitter

jcfuller

  • Member
  • **
  • Posts: 191
Re: Vertical toolbar with iPhone style buttons
« Reply #6 on: November 26, 2012, 11:04:17 PM »
Hutch,
  rsrc.rc will not compile.

James

Code: [Select]
gorc /r "C:\masm32\tbleft\rsrc.rc"

GoRC.Exe Version 0.90.5 - Copyright Jeremy Gordon 1998/2009 - JG@JGnet.co.uk

Error!
Line 39 of Resource Script (C:\masm32\tbleft\rsrc.RC):-
Missing comma between parameters:-
    ICON            500, 998 15,35,18,20, , 0

RES file not made

Error(s) occured.


MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1209
Re: Vertical toolbar with iPhone style buttons
« Reply #7 on: November 27, 2012, 06:02:57 AM »
The monochrome buttons look good under Windows XP, but no toolbar under Windows 2000.
Well Microsoft, here’s another nice mess you’ve gotten us into.

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: Vertical toolbar with iPhone style buttons
« Reply #8 on: November 27, 2012, 06:09:14 AM »
i don't think rebar was supported under win 2000, Michael
i am pretty sure that manifests weren't - which means you can't get common controls v6

CommonTater

  • Guest
Re: Vertical toolbar with iPhone style buttons
« Reply #9 on: November 27, 2012, 08:28:35 AM »
The monochrome buttons look good under Windows XP, but no toolbar under Windows 2000.

The workaround for that would be to test the os version and if it's Win2000, don't create the rebar and use a vertical toolbar instead (CCS_VERT in the window styles) ... it won't look nearly as cool, but you'll still have your toolbar.

Manifests are not supported by Win2000 ... and, fortunately, they are also ignored by Win2000.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7619
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Vertical toolbar with iPhone style buttons
« Reply #10 on: November 27, 2012, 10:24:41 AM »
It may be one of the styles but I no longer test under Win2000, the gap from Win2000 and Win7 64 is just too big. This was done on my XP SP3. A rebar works fine on Win2000 as my editor QE uses a rebar.

James,

I don't claim to support Jeremy's resource compiler.


Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 - Build 1823
Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.

Using codepage 1252 as default
Creating rsrc.RES
RC: RCPP -CP 1252 -f K:\asm2\tbleft\RCa04084 -g K:\asm2\tbleft\RDa04084 -DRC_INVOKED -D_WIN32 -pc\:/ -E -I. -I .

rsrc.rc.
Writing 24:1,   lang:0x409,     size 441.
Writing ICON:1, lang:0x409,     size 744
Writing GROUP_ICON:500, lang:0x409,     size 20.
Writing BITMAP:700,     lang:0x409,     size 82984.
Writing BITMAP:800,     lang:0x409,     size 232.
Writing MENU:600,       lang:0x409,     size 216.
Writing DIALOG:5000,    lang:0x409,     size 232.
Writing VERSION:1,      lang:0x409,     size 760
Microsoft (R) Windows Resource To Object Converter Version 5.00.1736.1
Copyright (C) Microsoft Corp. 1992-1997. All rights reserved.

Press any key to continue . . .
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

CommonTater

  • Guest
Re: Vertical toolbar with iPhone style buttons
« Reply #11 on: November 27, 2012, 03:54:35 PM »
It may be one of the styles but I no longer test under Win2000, the gap from Win2000 and Win7 64 is just too big.

Me either Win2k is long dead (much to the chagrin of a couple of users on Pelles forums  8) )