Author |
Message |
14/09/2022 11:58:08
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
Hi,
a very special problem :-/
we need to switch certain components within one column, for this we use a pane that contains a row with all components, and there only one is rendered. This all works fine. Only when setting a component to enabled == false the colour stays the same, normally it get's a bit darker?
BR
Markus
|
|
|
21/09/2022 17:30:24
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5510
Offline
|
Hi Markus,
sorry, we somehow missed this one...!
The issue is:
A control being placed as grid cell (as top component) receives the style "xxx_ingridcell". Example: the FIELD in normal environment receives style "riscfieldcontainer" - and if it is placed into a grid cell then it receives "riscfieldcontainer_ingridcell".
Both style definitions may have different background modifiers for showing that they are disabled. In the concrete case of the FIELD this is exactly the case:
riscfieldcontainer => risc-value "_backgroundModifierDisabled" is set to "@backgroundModifierDisabledField@"
riscfieldcontainer_ingridcell => risc-value "_backgroundModifierDisabled" is set to "@backgroundModifierDisabledInGridCell@".
...the variable values "@...@" are containing different values.
The easiest way to solve your issue: assign STYLESEQ "riscfieldcontainer_ingridcell" to the FIELD that you place into the PANE.
Code:
Default:
FIXGRID
GRIDCOL
FIELD <== automatically receives "riscfieldcontainer_ingridcell"
GRIDCOL
PANE
ROW
FIELD <== receives normal "riscfieldcontainer"
So what you have to do:
FIXGRID
GRIDCOL
FIELD
GRIDCOL
PANE
ROW
FIELD STYLESEQ="riscfieldcontainer_ingridcell"
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
22/09/2022 05:38:31
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
Hi,
thx for your quick solution, but with this solution the field is not coloured (highlighted) when the row is selected and the drawoddevenrows colouring is also ignored?
regards
Markus
|
|
|
22/09/2022 06:12:04
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5510
Offline
|
Hi,
oh yes...! ;-)
Reason: selecting a grid item means that a selection color is overlayed on top of all the backgrounds of the components that are "direct" grid cells.
This means: the selection coloring is applied to the PANE (which is directly below GRIDCOL), but does not show because the grid is coming with some own background coloring.
Setting the color of the inner field to transparent should solve this:
Code:
FIXGRID
GRIDCOL
FIELD
GRIDCOL
PANE
ROW
FIELD STYLESEQ="riscfieldcontainer_ingridcell" BACKGROUND="#00000000"
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
22/09/2022 07:02:10
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
perfect, thx
|
|
|
22/09/2022 14:09:40
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
sorry again, the solution doesn't work for t:combox and t:calendarfield, should I use another styleseq?
regards
Markus
|
|
|
22/09/2022 15:13:22
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
ok, after investigating the depths of style logic ;-) I found the solution
for calendarfield I've to use risccalendarfield_ingridcell
and for combobox risccombobox_ingridcell
regards
Markus
|
|
|
|