News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Vertical toolbar with iPhone style buttons

Started by hutch--, November 25, 2012, 01:39:46 PM

Previous topic - Next topic

hutch--

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.

dedndave


jj2007

Looks good :t
And I can see the potential for a "vertical" language like assembler ;-)

Bill Cravener

Nice Steve! Flat is where it's at. . . :icon14:

Gunther

Rock solid work. But is that kind of toolbar really the future?

Gunther
You have to know the facts before you can distort them.

fearless

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.

jcfuller

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.


MichaelW

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

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

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.

hutch--

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 . . .

CommonTater

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) )