Arrow keys in TEXTEDIT in TABLE or SCROLLGRID

Started by Candy M., October 27, 2008, 09:05:51 PM

Previous topic - Next topic

Candy M.

If you have a TEXTEDIT field in a TABLE or SCROLLGRID,
how do you enable the Down Arrow and Up Arrow keys to
remain in the TEXTEDIT field and not go to the next row or previous
row of the array?

Thanks,
Candy

.

If you're running GDC 2.11 as Front-End, you may want to use "localAccelerators"styleAttribute. when set to yes, accelerators local to the widget have higher priority than the application accelerators. Set to no (default), application accelerators have higher priority.


Candy M.

The documentation says the default is "yes".
Can you provide an example as how I would indicate it in a ".4st" file.
I can't seem to get it to work.

I have:

<Style name="TextEdit">                                   
   <StyleAttribute name="localAccelerators" value="no" />
</Style>                                                 

I've tried "yes" and "no" and neither work.  I think I'll try "1" or "0".

Candy

.

I should not work late at home ;).

The doc is right, default value is "yes".

BTW: in the coming 2.20, yes / 1 / true are the same (same for no / 0 / false). For historical reasons the value differs depending on the attributes, but this is not convenient, so this will be "solved" in 2.20.

I'm using the following .4st

Code (genero) Select

<Style name="TextEdit.local">
     <StyleAttribute name="localAccelerators" value="yes" />
  </Style>
  <Style name="TextEdit.nolocal">
     <StyleAttribute name="localAccelerators" value="no" />
</Style>


Actually, this has been designed for tables, so it does not work (today) with Matrix / Scrollgrid. As nothing is defined in the doc, it can be considered as a bug (#11482).

I invite you to contact your support center for timeframe / availability questions.