Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - detect row.item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

detect row.item

 Post Reply Post Reply
Author
Message
barianto View Drop Down
Groupie
Groupie
Avatar

Joined: 01 May 2006
Location: Indonesia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote barianto Quote  Post ReplyReply Direct Link To This Post Topic: detect row.item
    Posted: 04 May 2006 at 5:16am
Four question:

1. How to detect if one item in row/record collection (try) editing by user (requestedit) but leave it unchanged?

2. What is validate for in reportcontrol?

3. Since Codejock component seem to have so many method/properties that i haven't discovered yet , I'm curious is that CodeJock already have method to interrupt keyboard while row/record item in editing by user. As i want when "the evil / King" user enter "period" it turn into "comma" something like Microsoft excell behaviour, doesnt care what are regional setting it's computer have period will always change as comma. And there is something else i like to do. Or do i have to made my own :)?

Thnks before


ps: i'm in Indonesia, where to get your extreme suite ActiveX Control in my country? I can't buy from internet/paypal or it's kind since i don't have the facility (MasterCard, VisaCard, etc). Pls inform..



Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2006 at 3:06pm
1. You'll have to compare values before and after editing.
See ValueChanging event (and NewValue parameter).

2. There are no such method in ReportControl. It looks for me that it is a generic method added for all imported ActiveX objects in your development environment. (See standard comment string to validate method)

3. See PreviewKeyDown event and EditMode property.
EditMode = True if user edit item, and False otherwise.

--
WBR,
Serge
Back to Top
barianto View Drop Down
Groupie
Groupie
Avatar

Joined: 01 May 2006
Location: Indonesia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote barianto Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2006 at 3:08am
hi sserge

Quote
1. You'll have to compare values before and after editing.
See ValueChanging event (and NewValue parameter).


try your suggestion above, but it seem valuchanging and valuechanged event, fire only when the value is change :(

Quote
3. See PreviewKeyDown event and EditMode property.
EditMode = True if user edit item, and False otherwise.



try this one too. When item not in edit mode it known key something like "46" or delete key (as in your sample) but for key like "A, B, C, D, so on or 1,2,3 so on or period, comma and so on" which i filter in previewkeydown event, instead doing what i program too, reportcontrol directly take it to edit mode. How to solve it with your reportcontrol?
And what about to interrupt the key while in Edit Mode?
Perhaps you can give me sample to make it's easier to understand

Thank's

Back to Top
barianto View Drop Down
Groupie
Groupie
Avatar

Joined: 01 May 2006
Location: Indonesia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote barianto Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2006 at 1:02am
anyone, pls.

Well i redifined what i need. How to denied user from type charater other than number (A,b,c, etc..) ?
Back to Top
barianto View Drop Down
Groupie
Groupie
Avatar

Joined: 01 May 2006
Location: Indonesia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote barianto Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2006 at 1:51am
try previewkeydown event. Not work!
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2006 at 4:34pm
Originally posted by barianto barianto wrote:

How to denied user from type charater other than number (A,b,c, etc..) ?


That's actually much easier than to make a custom filter


Set Column = 'yourColumn
Column.EditOptions.EditControlStyle = xtpEditStyleNumber


--
WBR,
Serge

Back to Top
barianto View Drop Down
Groupie
Groupie
Avatar

Joined: 01 May 2006
Location: Indonesia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote barianto Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2006 at 3:50am
Originally posted by sserge sserge wrote:


That's actually much easier than to make a custom filter


Set Column = 'yourColumn
Column.EditOptions.EditControlStyle = xtpEditStyleNumber


--
WBR,
Serge



Yes, but it also denied point (.) and comma (,). Sad......
Back to Top
barianto View Drop Down
Groupie
Groupie
Avatar

Joined: 01 May 2006
Location: Indonesia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote barianto Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2006 at 5:29am
Sorry to bring this up again

In codejock 10.3.1 with :

Column.EditOptions.EditControlStyle = xtpEditStyleNumber
can we input comma or period?

Thanks
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2006 at 6:17pm
Originally posted by barianto barianto wrote:

Sorry to bring this up again

In codejock 10.3.1 with :

Column.EditOptions.EditControlStyle = xtpEditStyleNumber
can we input comma or period?

Thanks


Unfortunately no, it runs standard system text edit control with ES_NUMBER style, which doesn't work with commas or periods...

--
WBR,
Serge
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.