Recent

Author Topic: Elements order???  (Read 2368 times)

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Elements order???
« on: December 27, 2017, 01:12:15 pm »
I found something strange about a component
I am trying to use http://wiki.freepascal.org/Eye-Candy_Controls
But i ran into something strange.
Take a look at the attachment and notice the difference
Left there is a yellow-orange ECPositionBar and a blue-ish ECProgressBar.
Both have a normal Label on top of it and the label is transparent (has no color [clNone]).

On the right it is all the same with one difference all three components are on a GroupBox
And suddenly the Label isn't transparent AND on top anymore.

So how can i get this label back on top.

p.s. i already played with the z-order
« Last Edit: February 17, 2018, 08:30:48 pm by madref »
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Elements order???
« Reply #1 on: December 27, 2017, 02:00:09 pm »
Is this related to Eye-Candy Controls or to any TCustomControl descendants? Both TECProgressBar and TECPositionBar are derived from TCustomControl and created with:
Code: Pascal  [Select][+][-]
  1. ControlStyle := ControlStyle + [csParentBackground, csReplicatable] - [csOpaque];
Also, what widgetset? It's developed on Linux+Qt, tested on GTk2 and Wine. I myself didn't ever see it on Carbon, Cocoa or GTk3.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

balazsszekely

  • Guest
Re: Elements order???
« Reply #2 on: December 27, 2017, 03:05:08 pm »
I'm almost certain this on carbon. Just put a panel to the GroupBox, set BevelOuter to bvNone, empty caption, then drop the label on the panel, then set panel AutoSize property to true.

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Elements order???
« Reply #3 on: December 27, 2017, 04:33:27 pm »
This is on a Mac so Carbon
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Elements order???
« Reply #4 on: December 27, 2017, 04:43:42 pm »
I'm almost certain this on carbon. Just put a panel to the GroupBox, set BevelOuter to bvNone, empty caption, then drop the label on the panel, then set panel AutoSize property to true.


Sorry doesn't work
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

balazsszekely

  • Guest
Re: Elements order???
« Reply #5 on: December 27, 2017, 05:13:55 pm »
Quote
Sorry doesn't work
Did you try it?

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Elements order???
« Reply #6 on: December 27, 2017, 06:01:57 pm »
nope i tried it the other way around

You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

madref

  • Hero Member
  • *****
  • Posts: 949
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: [Solved] Elements order???
« Reply #7 on: February 17, 2018, 08:30:38 pm »
I know this is an old thread, but i am having the same problem but know on a Windows machine (windows 10).


How to solve it. Because the suggested solutions don't work in Windows.
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Lazarus 3.99 (rev main_3_99-649-ge13451a5ab) FPC 3.3.1 x86_64-darwin-cocoa
Mac OS X Monterey

 

TinyPortal © 2005-2018