SmartPath v2.2 released

Well I finally had some time to update my smartpath component. So what did I do? It is now possible to navigate the smartpath using the keyboard just set AllowKeyNav to true and you are set. I had some trouble making it work so report back any bugs you find, in my testing it worked as expected. Ownerdraw now has its own property, set it when using ownerdraw event. New Folder in home menu is now optionally. ParentFont added. A new property named ClickSetPath will set the path automatically when button on path is clicked so you no longer need to set it in the OnClickEvent. Changed AllowEdit to be set to true as default. OnMouseLeaveEvent should now be working again. Some code optimized.

Download SmartPath v2.2

Tags: , ,

  • Castor69

    Hello. Thanks for implement features (not all, but ok) I suggested in last month.

    So, first small thing:

    Why:
    if FShowNewFolder then
    begin
    AddMenuItem('*', 'New Folder', -1);
    AddMenuItem('- ', '-', -1);
    end;
    instead:
    if FShowNewFolder then
    begin
    AddMenuItem('*', FNewFolder, -1);
    AddMenuItem('- ', '-', -1);
    end;
    ?
    Second: component shouldn't showing any non localized messages! Good idea is exchange add some error event procedure?

    3rd: when ypu changing color in on mouse enter/leave events, and start edit path, bar has the other color (from leave event) than edit (correct color from enter event).

    That's all at the moment :)

  • Castor69

    Next what should be fixed: path is changed in bar button mouse down, not after click.
    In edit mode and with owner draw white edit looking not good, what you think about all area to be clWindow?
    In edit mode will be nice if folder icon will be visible.

  • admin

    Hi Castor69,

    Nice catch on the first one. Second one I see what I can do but do not promise anything. Third I did not get … what exactly should happen.

    Regards
    Roy M Klever

  • Castor69

    In my custom build I added OnError event:

    TOnErrorEvent = procedure(Sender: TObject; AException: Byte) of object;
    property OnError: TOnErrorEvent read FOnError write FOnError;
    if FCreateFolder then
    begin
    if not CreateDir(FPathEdit.Text) then
    if Assigned(FOnError) then
    FOnError(Self, 0);
    end;
    Maybe you will invent something better :)

    About enter/leave, look at this:
    http://i44.tinypic.com/6o0j77.png
    Color is darker, if mouse leave it is darker, if mouse is over should be lighter, but bar handle events apart from edit, so colors are difference.

  • http://dhs.webatu.com Soitjes

    I use Smartpath for a touchscreen application, so I need to have a large font to make it usable with a touchpen. I would like to give some suggestions on improvements :

    - if you change the font, the little arrows remain unchanged. Would it be possible to scale up the arrows as well ?
    - the popup menu is not using the font property either
    - the little button on the arrow is rather small. Maybe add a property ArrowButtonWidth for this ?

    Besides those (little) remarks it works very well !! I've been looking for this for quite a while.

    Soitjes.

  • admin

    I will see if I can do anything about it, should not be to hard to fix … but no timeframe. Thanks for your feedback.

blog comments powered by Disqus