The MASM Forum

Projects => MASM32 => Topic started by: hutch-- on November 25, 2012, 01:39:46 PM

Title: Vertical toolbar with iPhone style buttons
Post by: hutch-- 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.
Title: Re: Vertical toolbar with iPhone style buttons
Post by: dedndave on November 25, 2012, 01:54:41 PM
nice   :t
Title: Re: Vertical toolbar with iPhone style buttons
Post by: jj2007 on November 25, 2012, 07:06:05 PM
Looks good :t
And I can see the potential for a "vertical" language like assembler ;-)
Title: Re: Vertical toolbar with iPhone style buttons
Post by: Bill Cravener on November 26, 2012, 03:51:38 AM
Nice Steve! Flat is where it's at. . . :icon14:
Title: Re: Vertical toolbar with iPhone style buttons
Post by: Gunther on November 26, 2012, 04:45:31 AM
Rock solid work. But is that kind of toolbar really the future?

Gunther
Title: Re: Vertical toolbar with iPhone style buttons
Post by: fearless 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.
Title: Re: Vertical toolbar with iPhone style buttons
Post by: jcfuller on November 26, 2012, 11:04:17 PM
Hutch,
  rsrc.rc will not compile.

James


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.

Title: Re: Vertical toolbar with iPhone style buttons
Post by: MichaelW on November 27, 2012, 06:02:57 AM
The monochrome buttons look good under Windows XP, but no toolbar under Windows 2000.
Title: Re: Vertical toolbar with iPhone style buttons
Post by: dedndave 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
Title: Re: Vertical toolbar with iPhone style buttons
Post by: CommonTater on November 27, 2012, 08:28:35 AM
Quote from: MichaelW on November 27, 2012, 06:02:57 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.
Title: Re: Vertical toolbar with iPhone style buttons
Post by: hutch-- 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 . . .
Title: Re: Vertical toolbar with iPhone style buttons
Post by: CommonTater on November 27, 2012, 03:54:35 PM
Quote from: hutch-- 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.

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