Are there any Treeview samples with associated edit boxes?

FWExplorer
Posts: 83
Joined: Fri Aug 09, 2013 12:43 am

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

Post by FWExplorer »

That works, thanks cnavarro.

Inline looks good, Antonio.
FWExplorer
Posts: 83
Joined: Fri Aug 09, 2013 12:43 am

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

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
bpd2000
Posts: 153
Joined: Tue Aug 05, 2014 9:48 am
Location: India

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

Post 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>
Regards, Greetings

Try FWH. You will enjoy it's simplicity and power.!
FWExplorer
Posts: 83
Joined: Fri Aug 09, 2013 12:43 am

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

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
FWExplorer
Posts: 83
Joined: Fri Aug 09, 2013 12:43 am

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

Post by FWExplorer »

Ok, thanks Antonio. I'll continue testing, and looking through the code.
FWExplorer
Posts: 83
Joined: Fri Aug 09, 2013 12:43 am

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

Post 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 >
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
FWExplorer
Posts: 83
Joined: Fri Aug 09, 2013 12:43 am

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

Post 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.
FWExplorer
Posts: 83
Joined: Fri Aug 09, 2013 12:43 am

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

Post by FWExplorer »

Did you get the same error, Antonio?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

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

Post by Antonio Linares »

D.

Yes, it fails here too

We still have some bugs to solve
regards, saludos

Antonio Linares
www.fivetechsoft.com
FWExplorer
Posts: 83
Joined: Fri Aug 09, 2013 12:43 am

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

Post by FWExplorer »

Ok, thanks. I'll continue playing with it.
Post Reply