Coder Social home page Coder Social logo

mzcrumbbar's Introduction

MZCrumbBar

Windows MFC/C++ Crumbbar Controller

MFC Controller to shows items in a field that is clickable. Can be a path or other items needed to be shown in a Crumbbar way

Can easily be inherited to customize style and usage

Alt text

History

v1.5 2019-11-05
Published on GitHub

v1.5 2012-05-03
The in-place edit controller caused a crash if it lost focus before it was completely created.

v1.4 2011-02-25
Added CRect MZCrumbBar::GetItemRect (CrumbBarItem* pItemChosen) - Provided by Iain Clarke

v1.3 2010-11-13
Added flag CRU_DONOTSTRIPDELIMITER that will keep the double delimiter.
Double delimiter are use to tell MZCrumbarCtrl that it should not break a path when it sees a delimiter.
eg "Main-Sub-Sub--Menu" -> last item is normal shown as "Sub-Menu" but with this flag
it is shown as "Sub--Menu" since the double delimiter is not stripped
or for example "\Server\Share\Folder" -> first item will now be shown as "\Server" and not as "\Server"

v1.2 2010-04-15

  • Added improvements/fixes provided by Iain Clarke
  • 3 more BuildCrumbbar(...) function for special situations.
  • Refactored how a path is parsed.
  • Added CRU_LASTITEMNODELIMITER. If style is set the Delimiter will not be shown for last crumbbar item.
  • Style can now be set using styleEx.
  • Change Default hot color to COLOR_HOTLIGHT
  • Added possibility to store custom data in a Crumbbar item.
  • Added SetItemData/GetItemData of custom data to crumbbar items.
  • Fixed so that if double delimiter now works again. Double delimiter should be part of the crumbpath name, not a splitter.
  • Change so that items are added to m_vCrumbItems via the virtual function AddCrumbItem(...)
  • Fixed so that empty path parts are not added to the path.

v1.1 2010-03-17
First Public Version (Publish on CodePoject), Fixed minor draw issue

v1.0 2009-10-10
First Version

mzcrumbbar's People

Contributors

mathiassv avatar

Watchers

 avatar

mzcrumbbar's Issues

How to add directory contents

Very interesting implementation of bread crumb navigation. I've been looking for an open source alternative in C++ and found yours.

In the example, you've hardcoded "C:\Windows\System32" but I'd like to be able to use for real file system navigation. I suppose I could use something like this (FindFirstFile(), FindNextFile(), and FindClose()) to list files in the directory that MZCrumbBar OnLButtonClick(), but is there a control to pass them to such that a drop down can be populated? I'm thinking like the way Windows Explorer address bar works:

image

I'm thinking like this:

image

Cheers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.