Page 3 of 3

Re: Are there any Treeview samples with associated edit boxes?

Posted: Fri Dec 04, 2020 2:11 pm
by FWExplorer
That works, thanks cnavarro.

Inline looks good, Antonio.

Re: Are there any Treeview samples with associated edit boxes?

Posted: Fri Dec 04, 2020 2:33 pm
by FWExplorer
I was pleasantly surprised to see that we already defined a key (tab) to switch back & forth between the tree and the text area.


However - Go ahead and pick a node, and then Tab back & forth, several times. Each time the pointer moves into the Text area, it will generate a new tab inside the text area.

In other words, you start with a node and a blank text area. We start by pointing to the node. When you Tab to the Text area, it will create a tab inside the text area. When you Tab again, it goes back to the node. When you tab again, it goes back to the Text Area, but adds another Tab. Etc.

In Treepad Enterprise, they resolve this by assigning the F11 key to return to the node. The F12 key is used to switch to the Text Area.

We could also just assign a different dedicated key, other than Tab. I think one Pim assigned the F6 key, although I don't remember which one that was.

Re: Are there any Treeview samples with associated edit boxes?

Posted: Sat Dec 05, 2020 8:36 am
by Antonio Linares
D.

F11 and F12 implemented this way:

SetKey( VK_F12, { || If( oWnd:oWndActive != nil, oWnd:oWndActive:aControls[ 2 ]:SetFocus(),) } )
SetKey( VK_F11, { || If( oWnd:oWndActive != nil, oWnd:oWndActive:aControls[ 1 ]:SetFocus(),) } )

Updated EXE and PRG:
https://github.com/FiveTechSoft/FWH_too ... er/pim.zip

Re: Are there any Treeview samples with associated edit boxes?

Posted: Wed Dec 09, 2020 2:42 pm
by bpd2000
Antonio Linares wrote:D.

F11 and F12 implemented this way:

SetKey( VK_F12, { || If( oWnd:oWndActive != nil, oWnd:oWndActive:aControls[ 2 ]:SetFocus(),) } )
SetKey( VK_F11, { || If( oWnd:oWndActive != nil, oWnd:oWndActive:aControls[ 1 ]:SetFocus(),) } )

Updated EXE and PRG:
https://github.com/FiveTechSoft/FWH_too ... er/pim.zip
PIM can generate unicode file like

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<start>
<UTF_encoded>Š</UTF_encoded>
</start>

Re: Are there any Treeview samples with associated edit boxes?

Posted: Wed Dec 09, 2020 6:19 pm
by FWExplorer
Looks good, but it's still popping up a 43, after pressing the Num+ key. I can't seem to programatically assign Insert Child to other keys, like Insert.

Also, inline editing - fine, but it should also work with a double-click on an existing node.

Re: Are there any Treeview samples with associated edit boxes?

Posted: Wed Dec 09, 2020 7:11 pm
by Antonio Linares
bpd2000 wrote:
Antonio Linares wrote:D.

F11 and F12 implemented this way:

SetKey( VK_F12, { || If( oWnd:oWndActive != nil, oWnd:oWndActive:aControls[ 2 ]:SetFocus(),) } )
SetKey( VK_F11, { || If( oWnd:oWndActive != nil, oWnd:oWndActive:aControls[ 1 ]:SetFocus(),) } )

Updated EXE and PRG:
https://github.com/FiveTechSoft/FWH_too ... er/pim.zip
PIM can generate unicode file like

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<start>
<UTF_encoded>Š</UTF_encoded>
</start>
Current pim.exe properly reads and writes your XML example, anyhow we don't use that format yet when creating a new one.

Re: Are there any Treeview samples with associated edit boxes?

Posted: Wed Dec 09, 2020 7:17 pm
by Antonio Linares
FWExplorer wrote:Looks good, but it's still popping up a 43, after pressing the Num+ key. I can't seem to programatically assign Insert Child to other keys, like Insert.

Also, inline editing - fine, but it should also work with a double-click on an existing node.
D.

Removed the popup with the 43. Thinking about how to programmatically assign it.

We are currently focused on swaping up and down tree items. The code is not finished yet and it is buggy, but you can see the logic that we are trying to implement. Be aware that testing this on development new functionality may destroy the tree information on the screen.

current version in development:
https://github.com/FiveTechSoft/FWH_too ... er/pim.zip

Re: Are there any Treeview samples with associated edit boxes?

Posted: Wed Dec 09, 2020 7:50 pm
by FWExplorer
Ok, thanks Antonio. I'll continue testing, and looking through the code.

Re: Are there any Treeview samples with associated edit boxes?

Posted: Thu Dec 10, 2020 3:39 pm
by FWExplorer
Mostly working.

I created a separate git account, for HB and FW. When we need to attach an image to our posts here, should we create an issue? Or do we upload to a specific page?

So,

I removed the popup that asks if you want to replace the file, when you click the Save button. Recompiled, and looks fine.

I added some nodes to the test.xml, and also changed the pages associated with some of the nodes, and then added an image to one of the pages.

Saved and exited.

But when I try to open the new version that was just saved, there's an error that

Filename C:\fwh\samples\test.xml
Line 28
Description: HBXML_ERROR_UNCLOSED
Node < company >

Re: Are there any Treeview samples with associated edit boxes?

Posted: Thu Dec 10, 2020 6:01 pm
by Antonio Linares
D.

You simply upload the image file to your repo in GitHub, then you click on it, right click on the image again and copy the "raw" url.
That url is the one to post here clicking on the Img button here when editing.

Please post here the entire content of C:\fwh\samples\test.xml once your overwrite it

Re: Are there any Treeview samples with associated edit boxes?

Posted: Thu Dec 10, 2020 6:12 pm
by FWExplorer
Sorry, I thought we were sharing files on the FW repository. But of course we're using our own space.

Too many things going on. Alright, thanks Antonio.

Let me know if you need any more info, regarding the error.

Re: Are there any Treeview samples with associated edit boxes?

Posted: Thu Dec 10, 2020 6:16 pm
by FWExplorer

Re: Are there any Treeview samples with associated edit boxes?

Posted: Sat Dec 12, 2020 12:50 am
by FWExplorer
Did you get the same error, Antonio?

Re: Are there any Treeview samples with associated edit boxes?

Posted: Sat Dec 12, 2020 10:14 am
by Antonio Linares
D.

Yes, it fails here too

We still have some bugs to solve

Re: Are there any Treeview samples with associated edit boxes?

Posted: Sat Dec 12, 2020 12:30 pm
by FWExplorer
Ok, thanks. I'll continue playing with it.