Jump to content


Photo

TNextBar


  • Please log in to reply
6 replies to this topic

#1 array81

array81

    Senior Member

  • Members
  • PipPip
  • 290 posts
  • Gender:Male

Posted 21 August 2016 - 06:04 PM

I don't understand how works TNextBar with disabled button.

If I set "enable=FALSE" I get a button with color button and blue box.

See the image, there are 4 button:

- button 1: "enable=FALSE";

- button 2: "enable=TRUE";

- button 3: "enable=TRUE" and mouse on it;

- button 4: "enable=TRUE";

 

I think the first button should be without blue box and with gray image. In this moment is impossible understand that first button is disabled.

 

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 21 August 2016 - 10:08 PM

Hi,

 

I have fixed square painting. Change line 457 in NxStyles6.pas to:

 

if bsDisabled in State then Index := 4;

 

I will need how to best draw grayscale image.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 array81

array81

    Senior Member

  • Members
  • PipPip
  • 290 posts
  • Gender:Male

Posted 22 August 2016 - 11:25 PM

Thanks, I waiting for grayscale image.



#4 array81

array81

    Senior Member

  • Members
  • PipPip
  • 290 posts
  • Gender:Male

Posted 26 August 2016 - 11:26 AM

Is it possible add "an arrow" to button and then show popup menu on click?



#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 29 August 2016 - 12:29 AM

Hi,

 

Why not. Is it good to add DropDownMenu property like standard TButton have? If assigned, arrow will appear?


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#6 array81

array81

    Senior Member

  • Members
  • PipPip
  • 290 posts
  • Gender:Male

Posted 29 August 2016 - 03:50 PM

Hi,

 

Why not. Is it good to add DropDownMenu property like standard TButton have? If assigned, arrow will appear?

Exact



#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 29 August 2016 - 03:54 PM

Added. You can re-download with this new feature (DropDownMenu)

 

Arrow is in black, not sure if styles provide better color combination. This will wait a little bit.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users