Find Jobs
Hire Freelancers

Modify existing VB6 Treeview control #3 (enhancements)

$30-250 USD

Complété
Publié il y a plus de 10 ans

$30-250 USD

Payé lors de la livraison
A) Icons: 1) Now we have PNG data loaded from file, works very good. Please see attached another method which I use in my main program ([login to view URL]). I can use these picture in the tree, but the transparency goes wrong. Please adjust the tree to make use of this unaltered imagelist. You can edit the *.res file easily with XN Resource Editor if necessary. 2) I want a simplified logical structure. There is no need for an 'expanded' image, this is redundant info, the tree itself shows by +- if a node is expanded or not. When adding a node I want only ONE picture name to give, e.g. "MyNode". If a node is disabled, in the enable/disable code, the picture shall automatically set to "MyNode_disabled" and back to "MyNode". Of course the *.disabled picture must be there, if not I want an error message. 3) Click on picture to en/disable is too fuzzy, must only work on picture not on node text. Other, better solution: Private Sub TreeView_NodeClick(ByVal Node As [login to view URL]) Dim TVHTI As TVHITTESTINFO Dim PT As POINTAPI '[login to view URL] "NodeClick: " & [login to view URL] With TVHTI GetCursorPos .PT ScreenToClient [login to view URL], .PT SendMessage [login to view URL], TVM_HITTEST, 0, ByVal VarPtr(TVHTI) If (.Flags And TVHT_ONITEMICON) = TVHT_ONITEMICON Then [login to view URL] "on Icon: " & [login to view URL] Else [login to view URL] "not on Icon: " & [login to view URL] End If End With End Sub -------------------------------------------------- B) Appearance 1) DragIcon, created on the fly from the dragged nodes. I know there is a ready-made function for this, CreateDragImage?, I don't know exactly. While dragging there must be a good looking icon/picture/whatever. Perhaps the node icon is good enough? Or the label. Windows Explorer uses an icon, this seems to be the most pleasing method. In any case, the new drag icon must not be distorted, it must be a nice looking picture. 2) Flickerproblem Win8 must be solved I still got no solution from someone else... An idea: The flicker is gone when I decrease the rectangle size after it was larger before. It may be a memory allocation problem. Perhaps a dirty dummy procedure could help. Immediately after mouse down, we create a selection rectangle as large as possible. And after that we continue as usual. In my opinion the flicker should be gone... I know you must have Win8 to test with. What about the test version? It runs 90 days. -------------------------------------------------- C) Storage 1) XML data is now language dependent, e.g. 'True' is stored as 'Wahr' on a German OS. This must be all in english or just numbers (-1 for true, 0 for false), no matter what the OS language is. Regardless which OS or language is used, the XML must be in one certain language (english). To make sure it can be stored and read under all circumstances. 2) XML load fails to restore the correct CR LF combination. You can see this clearly when you commit a text to a node, save the tree and restore it. As far as I can see it is stored right, load makes this error. I fixed it myself: ... ... If [login to view URL] <> "" Then [login to view URL] = [login to view URL] End If If [login to view URL] <> "" Then [login to view URL] = [login to view URL] End If m = [login to view URL] m = Replace$(m, vbLf, vbCrLf) [login to view URL] = m Maybe you know a better solution? -------------------------------------------------- D) Questions 1) Please give me advice how to easily get the list of nodes. I want to get a list which contains label, key, address of node, order in tree (which level), just all data from the nodes. The goal is to search for a node by label or key, then insert a node refered by the address. 2) Let me select a node by address. 1) and 2) are best answered by a code snippet in the test app. As always, I'm open for discussion in detail questions.
N° de projet : 5123640

Concernant le projet

3 propositions
Projet à distance
Actif à il y a 10 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
Décerné à :
Avatar de l'utilisateur
Hello Gregor, I have placed my bid as discussed, only thing i need is some time to complete, so i have given 10 days for the work. Regards Karthik.
$88 USD en 10 jours
4,7 (5 commentaires)
3,7
3,7

À propos du client

Drapeau de GERMANY
Germany
4,9
24
Méthode de paiement vérifiée
Membre depuis juil. 9, 2010

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.