[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Fixgrid => Pane => Formattedfield : enabled colouring  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

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
[WWW]
CaptainCasa

Power User
[Avatar]

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
mreich

Power User
[Avatar]

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
[WWW]
CaptainCasa

Power User
[Avatar]

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
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

perfect, thx
[WWW]
mreich

Power User
[Avatar]

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
[WWW]
mreich

Power User
[Avatar]

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
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team