Updated GlassButton to version 2.1

rkGlassButton

rkGlassButton in use

Whats new:

Added GlyphPos property, possible values are gpTop, gpBottom, gpLeft and gpRight

Please give feedback if you find any bugs or you have problems using it.

Use the downloads page to download the updated component. You find it under pages at the top right corner.

  • Guest

    Nice! Keep up that good work!

  • Simon

    Roy, 

    Thanks for adding the GlyphPos property! Much appreciated :D

    Cheers
      Simon H.

  • Jeff

    You sir, ROCK!

  • Pingback: Passender Button gesucht - Delphi-PRAXiS

  • Janisevich

    Hi,
    very nice component.
    Does it work on delphi 7 ?

  • admin

    Hi Janisevich,

    Thanks! I belive it should work in D7 but I do not have D7 so I can  not test… Give it a try and if it will not compile contact me and I see what I can do.

    Regards
    Roy M Klever

  • Gmail Keeper Software

    Hi Roy,

    Can you provide download of this sample project? I can’t figure out how to use rkGlassButton to make all these effects. especially the “color” button. Thanks

  • admin

    Hi,

    I have uploaded the demo project. Download it from the download page. Hope it will help you.

    Regards
    Roy M Klever 

  • Janisevich

    Thanks for reply.
    I try it.
    I get an error when I try to compile the package as you ca see in image.

  • Gmail Keeper Software

    Thanks Roy! The demo project is awesome. How to prevent the buttons from receiving focus? IMHO the ‘focused mode’ of the glass buttons will confuse the users – they might thought the focused button is ‘down’. thanks.

  • admin

    Hi Janisevich,

    You can safely remove the “inline” word, it is just for optimization in newer Delphi versions.

    Regards
    Roy M Klever  

  • admin

    Hi,

    You can just uncheck the TabStop property, then the button will not be able to receive focus.

    Regards
    Roy M Klever

  • Gmail Keeper Software

    Hi Roy,
    Thanks, but that doesn’t seem to work – after you clicking the button use mouse, the button will remain it’s ‘focused’ state.

    Actually, I want to suggest you to use the current ‘focused’ effect (partially glow at the bottom of the button) as a ‘mouse hover’ effect. What do you think? 

  • Janisevich

    Yes it work.
    Mr. Klever … you are very courteous.
    All the best for you.

    Janisevich

  • Terrance

    Very nice component!

  • Edwin

    Hi Roy,

    Like TSpeedButton, when Flat is true, the glass button should disregard the “Focused” state of the button, currently, when Flat is set to true, the “Focused” state is very similar to the “Down” state and this can confuse the end users. What do you think?

  • Tom

    Thanks Roy!, that is very nice component. Is that possible to add property for drawing button corner to Rectangle or Round Corner.
    Thanks and Happy New Year!

  • Pp

    Roy, is there a possibility to:

    a) disable border drawing completely?
    b) set separate images for enabled/disabled/over/clicked states? (i know i can use OnMouseEnter but if this possibility is built in it would make less mess in the user code).

    Thanks

  • Ciro Alfredo Consentino

    Awesome component. Great quality and clean. One thing missing. Word Wrap. Could this be added or it’s just too difficult ?
    I will use it on my frontend, Emu Loader and will give you credit for the component.
    http://emuloader.mameworld.info

  • Ciro Alfredo Consentino

    I just found out one flaw in this component. The “parent” property is always the Form. If you drop the GlassButton on a TPanel, the button’s parent is still Form instead of the TPanel.
    Can this be fixed ? From my research, you cannot set the parent of the GlassButton in the “constructor” function (no need to).

    Other than that, this component is great.

  • Stephan Haidinger

    I saw, that the Hint ist not displayed when button.Enabled is false. I tried to find the solution by myself, but it looks like I’m not good enough :-( . Seem’s like CMMouseEnter is not called. If you have an Idea, plz tell me.
    It looks like you are not spending too much time now on your components, no time, no need, no fun?