News:

  • May 05, 2026, 12:55:38 PM

Login with username, password and session length

Author Topic: DataView Editing  (Read 28799 times)

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
DataView Editing
« on: April 19, 2013, 08:59:39 AM »
Whenever I edit a string in Data View, I have to enter the data and then click the Status or Element before I am allowed to click the Write Edit button. Could this be changed to highlight the Write Edit button as soon as any data has been entered?

Also If I enter an address in the Element column, and then hold down CTRL+ENTER to populate the list, as soon as it gets to the bottom it automatically switches focus to the ladder and begins adding rungs.
« Last Edit: April 19, 2013, 09:10:43 AM by plcnut »
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: DataView Editing
« Reply #1 on: April 19, 2013, 09:22:31 AM »
Whenever I edit a string in Data View, I have to enter the data and then click the Status or Element before I am allowed to click the Write Edit button. Could this be changed to highlight the Write Edit button as soon as any data has been entered?
Yeah, we need to address this one.

Quote
Also If I enter an address in the Element column, and then hold down CTRL+ENTER to populate the list, as soon as it gets to the bottom it automatically switches focus to the ladder and begins adding rungs.
Whoa!  I did not know that.  I'll write this one up.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: DataView Editing
« Reply #2 on: April 19, 2013, 09:43:09 AM »
I routinely fill Data Views with Ctrl+Enter and have never seen that behavior...just a messge box telling me it is full.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: DataView Editing
« Reply #3 on: April 19, 2013, 09:50:22 AM »
Click on an instruction in the ladder(while in edit mode), then click on an address in the dataview and hold down CTRL+ENTER. It's amazing :D
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: DataView Editing
« Reply #4 on: April 19, 2013, 10:04:32 AM »
When holding down Ctrl+Enter, the error message box is accepting the Ctrl+Enter to dismiss the message box, and focus is being returned back to Ladder View, not the Data View.  I'm guessing a NULL is being passed in as the parent of the message box, instead of "this"?  Should be easy to fix.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: DataView Editing
« Reply #5 on: April 19, 2013, 10:13:45 AM »
Sad.  Stupid MFC.  Using the View's MessageBox method, but focus does not come back to the dockable/floatable window (Data View), but I'm guessing back to the main frame window of the app, which being an MDI app, focus gets set to the Active MDI child (Ladder View).

I stuck a SetFocus() method after the call to the CWnd MessageBox, and that fixed it.  I might try the Win32 MessageBox method, bypassing all the "Afx" crap and see if that does what SHOULD be done.   :-[

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: DataView Editing
« Reply #6 on: April 19, 2013, 10:48:31 AM »
Nope - it's not MFC.  Gotta explicitly call SetFocus().  Sad, sad, sad.

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: DataView Editing
« Reply #7 on: April 19, 2013, 11:09:36 AM »
Sad, sad, sad.
So does this mean you're considering Mac?... Linux?...  :P
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: DataView Editing
« Reply #8 on: April 30, 2013, 09:37:00 PM »
Is DataView in 1.1 Going to support text wrap, accept all characters, and support copy/paste ???
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: DataView Editing
« Reply #9 on: April 30, 2013, 09:51:23 PM »
Is DataView in 1.1 Going to support text wrap, accept all characters, and support copy/paste ???
1. If by text wrap, you mean allow you to enter element text that is wider than the column, YES.  The text won't wrap, but it will just let you continue to enter the text.

2. YES, it will accept all characters, once you start editing the String edit field.  However, it will not accept a Ladder View hot key as the initial edit keystroke at the cell level to initiate the Data View cell text editor.  What does this mean?  Just start editing, and you'll be fine.

3. YES, specifically with documentation enabled (this was where the problem occurred).

Hey, I'm batting 1.000!  Or at least 0.950!

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: DataView Editing
« Reply #10 on: April 30, 2013, 10:07:19 PM »
1. If by text wrap, you mean allow you to enter element text that is wider than the column, YES.  The text won't wrap, but it will just let you continue to enter the text.

The problem is, I can't even view the full contents of a 1024 byte string... Unless I have three monitors side by side to stretch across. (and if you pin DataView after stretching you have no way to shrink the column if your extra monitor(s) aren't plugged in).

Quote
Hey, I'm batting 1.000!  Or at least 0.950!
You guys are doing fine. I've had a blast with this thing!
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: DataView Editing
« Reply #11 on: April 30, 2013, 10:59:18 PM »
I have three monitors...doesn't everyone?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: DataView Editing
« Reply #12 on: April 30, 2013, 11:19:15 PM »
I have one, and ocassionaly two. But with two, and stretched all the way, I can't get it all.
I guess I should talk to the boss about more monitors...  ;D
If I need to view the data, I have to do an export, and view it in a spreadsheet.
DataView is great otherwise, so maybe it would be better to just provide a separate way to view strings.
I still have the DataView freeze up problem if I try to view a 1024 byte string anyway. So a separate string viewer might not be bad...

Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: DataView Editing
« Reply #13 on: April 30, 2013, 11:34:30 PM »
Data view was definitely not designed to handle Do-more strings as 1k data buffers. We'll consider options for how we can better manage some of that in future versions.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: DataView Editing
« Reply #14 on: May 01, 2013, 10:39:20 AM »
There are other String display formats that can help display the full 1024 characters, not on word wrap boundaries, but on specific character widths.  Put focus on the large String element in Data View, then in the toolbar format drop-down combo box, look for any of the following:
4 Hex/ASCII
8 Hex/ASCII
16 Hex/ASCII
24 Hex/ASCII
32 Hex/ASCII

The widest one, 32, will require 32 lines.  I can make a 64 character wide version, that would just need 16 lines.  Not hard at all.