Are there any Treeview samples with associated edit boxes?

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

Postby FWExplorer » Fri Dec 04, 2020 2:11 pm

That works, thanks cnavarro.

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

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

Postby FWExplorer » Fri Dec 04, 2020 2:33 pm

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

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

Postby Antonio Linares » Sat Dec 05, 2020 8:36 am

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_tools/blob/master/pim.zip
regards, saludos

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

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

Postby bpd2000 » Wed Dec 09, 2020 2:42 pm

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_tools/blob/master/pim.zip

PIM can generate unicode file like
Code: Select all  Expand view
<?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.!
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?

Postby FWExplorer » Wed Dec 09, 2020 6:19 pm

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

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

Postby Antonio Linares » Wed Dec 09, 2020 7:11 pm

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_tools/blob/master/pim.zip

PIM can generate unicode file like
Code: Select all  Expand view
<?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: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby Antonio Linares » Wed Dec 09, 2020 7:17 pm

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_tools/blob/master/pim.zip
regards, saludos

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

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

Postby FWExplorer » Wed Dec 09, 2020 7:50 pm

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

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

Postby FWExplorer » Thu Dec 10, 2020 3:39 pm

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

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

Postby Antonio Linares » Thu Dec 10, 2020 6:01 pm

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

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

Postby FWExplorer » Thu Dec 10, 2020 6:12 pm

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: 100
Joined: Fri Aug 09, 2013 12:43 am

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

Postby FWExplorer » Thu Dec 10, 2020 6:16 pm

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

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

Postby FWExplorer » Sat Dec 12, 2020 12:50 am

Did you get the same error, Antonio?
FWExplorer
 
Posts: 100
Joined: Fri Aug 09, 2013 12:43 am

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

Postby Antonio Linares » Sat Dec 12, 2020 10:14 am

D.

Yes, it fails here too

We still have some bugs to solve
regards, saludos

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

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

Postby FWExplorer » Sat Dec 12, 2020 12:30 pm

Ok, thanks. I'll continue playing with it.
FWExplorer
 
Posts: 100
Joined: Fri Aug 09, 2013 12:43 am

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 77 guests