PropertyGridControl |
Post Reply |
Author | ||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Posted: 15 March 2010 at 3:34pm |
|
Hi,
This control is the best control CJ developed so far... There are just a handfull of (known) problems with this control so that's a good thing, right? (But if no one from support ever replies in this post the problems will grow and grow and it isn't the best control anymore ) But it's time for some improvements. Please reply if you feel like that we need a new feature and/or need to fix an issue
ISSUES:
REQUESTS:
Thanks a lot
|
||
wakerunner
Groupie Joined: 29 September 2007 Status: Offline Points: 85 |
Post Options
Thanks(0)
|
|
I agree with these requests.
I also think there should be a way to force any pending edits to update through code(or maybe there is a way I don't know of?). Or just make it so that all edits are autosaved immediately without having to push enter or change rows.
Here is the situation, I have the property grid and I have a "Save" button at the bottom of the page and a CJ commandbar shortcut for save (F5). If a user types a value in the grid and pushes F5 on their keyboard before they push enter the value they typed is not saved.
After further testing I found if I setfocus to the save button when F5 is pushed the change will be saved but there should be a way to force a save of any pending edits without having to move focus.
|
||
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows 7 64 bit Language: Visual Basic 6.0 |
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi,
If the propertygrid looses focus wndPropertyGrid_AfterEdit and wndPropertyGrid_ValueChanged event will fire, maybe you can use wndPropertyGrid_AfterEdit event to update Item.Value
I tried with a button and it doesn't execute the sub but propertygrid looses focus because of the mouseclick and fires wndPropertyGrid_AfterEdit event.
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
wakerunner
Groupie Joined: 29 September 2007 Status: Offline Points: 85 |
Post Options
Thanks(0)
|
|
If the user presses the shortcut key (F5) and a save function is called the grid does not lose focus. I just added some code to setfocus to the button before calling the save function so it does lose focus when F5 is pushed. The thing I would really like see changed is the focus on the right side. The user cannot edit the caption so the focus should never be on the caption... only the right side.
|
||
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows 7 64 bit Language: Visual Basic 6.0 |
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi,
So you want to use arrow keys to select next/previous item but only the value side. Like the TAB key does when you set wndPropertyGrid.NavigateCaptions = False? I would expect this to work with this property but it will set focus to Caption side I will add this to the list and maybe support wants to reply on this.
Thanks
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
wakerunner
Groupie Joined: 29 September 2007 Status: Offline Points: 85 |
Post Options
Thanks(0)
|
|
Yes thats what I mean, more like a normal grid control with the caption side being locked and all navigation happens only on the value side. I never noticed the "navigatecaptions" setting but I just upgraded to the latest version, maybe its new. That setting does improve the usability of the grid when you use tab, but even with navigatecaptions=false if you use the arrow keys the value side does not get focus. It appears the caption side does, even though you can start typing and it goes into the value side automatically it appears as though you cannot type in that space when the caption side has focus.
|
||
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows 7 64 bit Language: Visual Basic 6.0 |
||
johnp
Groupie Joined: 21 February 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
|
Let me add a couple of suggestions as well (if these are already available I apologize but I could not find them):
1. add editstyle options for alphaonly and alphanumeric only. I know that an edit mask could be used but there is a numeric only editstyle so adding these other two seems to make sense.
2. in the afteredit event if you set cancel = true then control/focus should return to the item that was being editted. As far as I can tell, the focus goes to the next item in the grid.
3. when navigating through a grid with the tab key (navigate captions set to false) it seems to skip boolean items if the checkbox style is set to true (i am not sure what happens if the checkbox style is set to false)
|
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi,
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
johnp
Groupie Joined: 21 February 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
|
What I meant in item 1 was to add editstyle options for EditStyleAlpha that would allow only character A-Z/a-z and an EditStyleAlphaNumeric that would only allow A-Z/a-z/0-9.
I will go back and look at number 2.
Thanks!
|
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi John,
Does EditStyleAlpha flag mean that only character A-Z/a-z are allowed? or all characters EXCEPT numeric?
Thanks
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
|
Maybe the most useful thing would be to have a BeforeEditChange(NewValue, Cancel) event. This would fire after the user does something that will change the value of PropertyGridItem (for example, types on the keyboard, pastes/cuts from/to the clipboard). You could then handle any case (alpha, numeric, alphanumeric, currency, different languages, etc...).
NewValue would be what the item value is going to be changed to, and you could set Cancel = True in code to prevent the change from taking place. I don't actually use the PropertyGrid, so maybe there is already something like this, or maybe there are reasons why this wouldn't work, but it seems like it would be the most powerful way to go. |
||
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
||
johnp
Groupie Joined: 21 February 2008 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
|
Only A-Z/a-z... no numbers or special characters.
|
||
Guy1
Newbie Joined: 04 May 2006 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|
I agree. Focus on the right side of the control, where changes can be made. The caption can not be edited directly so focus should not go there, at least by default.
|
||
Guy1
Newbie Joined: 04 May 2006 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|
|
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi,
In new(er) version(s) PaintManager object is introduced? I didn't see it until now
I was working on some test project where I had to change colors and I couldn't get it working (only looking at the property description and checking help file) So I created a test project for support just so they can see what is missing (Of course comment of all members are welcome!!!)
Thanks
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
|
Hi, Why does it have to take almost a year before support is replying. It feels like I'm totally invisible in this forum There are two CJ controls (RC and PG) which I use in every application (ChartControl would be third one) and get a minimum of answers. Well, don't like that at all... Thanks for nothing
|
||
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |