Calling EditCell users (OpenInsight 32-bit Specific)
At 27 JUN 2003 07:57:17AM Oystein Reigem wrote:
I sometimes use EditCell at GOTFOCUS/POSCHANGED to get my edit tables in edit mode instead of overwrite mode. But there's one case not covered - if the user hits an arrow key once too much. E.g, the current cell is in the first row and the user presses the Up key. Then the mode changes to overwrite. Anybody seen this? Anybody programmed around it?
- Oystein -
At 27 JUN 2003 08:41AM Don Miller wrote:
Oystein ..
I've seen it and no, I haven't bothered to program around it either.
Don M.
At 16 AUG 2003 03:47PM Oystein Reigem wrote:
I want my edit tables to always be in edit mode, so I use a promoted handler calling EditCell. In the first posting of this thread I mention a problem with the edit table reverting to overwrite when you navigate a certain way. So sometimes the user can accidentally bring the edit table in overwrite mode, perhaps causing confusion for himself.
But sometimes the user does need overwrite mode. Deleting and inserting rows must be done in overwrite mode. How can I make my users able to switch to overwrite mode?
The procedure described in the first posting can't be used. It would only work for the first and the last row, and it's not user-friendly or logical.
I have noticed that you get overwrite mode if you click a row button twice. I might teach my users to do that, but it's not an obvious procedure.
I know some of you have added delete and insert buttons to your edit tables, but I don't want to do that.
- Oystein -
At 16 AUG 2003 04:25PM Donald Bakke wrote:
Oystein,
How about a context menu that has Insert and Delete menu items? We do this for some of our applications.
At 16 AUG 2003 05:22PM Oystein Reigem wrote:
Don,
I'll think about it.
But what if my clients start asking for context menus everywhere else in the app?
![]()
(Midnight already? Time to go to bed. Cheers!) |-)
- Oystein -
At 21 AUG 2003 06:51AM Oystein Reigem wrote:
Don,
FYI and thanks again for your help: I think I'll go for key shortcuts realized through menu items. I might chose Ctrl+D (delete row), Ctrl+I (insert row before) and Ctrl+J (insert row after).
- Oystein -
At 21 AUG 2003 07:29AM Oystein Reigem wrote:
I just discovered yet another issue with using EditCell to get edit tables in edit mode instead of overwrite mode. It seems EditCell sabotages the protection of protected edit tables!
I got my EditCell function from a Revelation Web KB article: .
Isn't this a bug?
Can somebody help me get my EditCell to check for promotedness?
- Oystein -
At 21 AUG 2003 09:04AM Donald Bakke wrote:
Oystein,
Can somebody help me get my EditCell to check for promotedness?
Don't you really want to know how to check if your cell is protected? I haven't tested this but it should work:
Equ DTCS_PROTECT to 8
ColStyle=Send_Message(Control, "COLSTYLE", ColNo, "")
If ColStyle1, 2 _eqc "0x" then
…Convert @Lower.Case to @Upper.Case in ColStyle
…ColStyle=Iconv(ColStyle3, 99, "MX")
end
CellProtected=(BitAnd(ColStyle, DTCS_PROTECT) GT 0)
At 21 AUG 2003 09:28AM Oystein Reigem wrote:
Don,
Yes, I meant protectedness.
(Just think of it. I went out to mint my own, new word and managed to get it wrong.)
(Hmm. Perhaps it's collectable. If it was a stamp it would be.)
And, yes, it did work, without a hitch! Thanks - k.p.d!
- Oystein -