Search found 75 matches

by edk
Fri Apr 28, 2017 9:27 pm
Forum: HMG Bug Reports
Topic: TreeItemValue bug
Replies: 28
Views: 315

Re: TreeItemValue bug

Pablo César wrote:
Fri Apr 28, 2017 8:49 pm
Do you understand me ?
Yes, I understand you. But I'm always trying do not "ram through an open door".
by edk
Fri Apr 28, 2017 8:57 pm
Forum: HMG General Help
Topic: How to set exit code with errorlevel() ?
Replies: 4
Views: 87

Re: How to set exit code with errorlevel() ?

In my opinion the ERRORLEVEL function works fine.
View sample: run test.bat
ErrorLev.7z
(554.78 KiB) Downloaded 6 times
You can also read the ErrorLevel running application from Harbour via WaitRun().
Run ErrorLev.exe
ErrorLev_and_waitrun.7z
(1.24 MiB) Downloaded 5 times
by edk
Fri Apr 28, 2017 8:24 pm
Forum: HMG Bug Reports
Topic: TreeItemValue bug
Replies: 28
Views: 315

Re: TreeItemValue bug

Cool that I could help. It is important to note how Node and Item images are stored. If they are in the definition of "main tree": NODEIMAGES {"NODE1_CL", "NODE1_OP"}; ITEMIMAGES {"PAGE_CL", "PAGE_OP"}; Get indexes: NODEIMAGES {0, 1}; ITEMIMAGES {2, 3}; Each next definition receives another pair of ...
by edk
Fri Apr 28, 2017 7:23 pm
Forum: HMG Bug Reports
Topic: TreeItemValue bug
Replies: 28
Views: 315

Re: TreeItemValue bug

Edward, probably with your technical experience you could make it work this: I wish to keep different nodes images by changing when be expanded/collapsed. Do you think is it possible with current HMG ? Pablo. Did you mean such a tree action? bez tytułu.PNG Demo3.7z #include <hmg.ch> FUNCTION Main()...
by edk
Fri Apr 28, 2017 3:55 pm
Forum: HMG Bug Reports
Topic: TreeItemValue bug
Replies: 28
Views: 315

Re: TreeItemValue bug

Pablo, in my opinion, is correct. As Claudio wrote, property This.TreeItemValue can be used ONLY in events: on expand and on collapse. Because these events do not change the focus to the node, expanded/collapsed node is NOT selected, they can not be read by the this.value property. For this reason, ...
by edk
Fri Apr 28, 2017 1:59 pm
Forum: HMG Bug Reports
Topic: TreeItemValue bug
Replies: 28
Views: 315

Re: TreeItemValue bug

Pablo, as Serge says, are diffrents statuses on yours apps, but I don't understend "3.4.4 Patched". On my untouched 3.4.4 works perfect: #include <hmg.ch> FUNCTION Main() DEFINE WINDOW Form_1 ; AT 0,0 ; WIDTH 286 ; HEIGHT 460 ; TITLE 'Tree Expand and Collapse Sample' ; MAIN DEFINE STATUSBAR FONT "Co...
by edk
Fri Apr 28, 2017 12:06 pm
Forum: HMG Bug Reports
Topic: TreeItemValue bug
Replies: 28
Views: 315

Re: TreeItemValue bug

When I click to "+" or to "-", images are not duly displayed. What I want is to displaying an open folder picture when is expading event. And display a closed folder when is collapsed. Pablo, maybe try this way: ON EXPAND Form_1.Tree_1.ImageIndex(This.TreeItemValue):={1,1}; ON COLLAPSE Form_1.Tree_...
by edk
Tue Apr 25, 2017 1:15 pm
Forum: HMG General Help
Topic: tree -is it possible to change image?
Replies: 6
Views: 1053

Re: tree -is it possible to change image?

Hi Giuseppe and Marek. Is there a way to change the images of a tree after it's definition? Here is an example: // by Andrés González López, September 2014 #include "hmg.ch" FUNCTION Main() DEFINE WINDOW Form_1; AT 0,0; WIDTH 800; HEIGHT 600; NOSIZE; NOMAXIMIZE; ON GOTFOCUS Form_1.Tree_1.SetFocus; M...
by edk
Tue Apr 25, 2017 8:27 am
Forum: HMG General Help
Topic: matriz 8x8
Replies: 8
Views: 186

Re: matriz 8x8

I have tested adding array elements in several ways and it works fine: aQuery:={} msgdebug(aQuery) 1.png AADD(aQuery, {1,1}) msgdebug(aQuery) msgdebug(aQuery[1]) 2.png AADD(aQuery, {2}) msgdebug(aQuery) msgdebug(aQuery[2]) 3.png AADD(aQuery[2], 2) msgdebug(aQuery) msgdebug(aQuery[2]) 4.png AADD(aQue...
by edk
Mon Apr 24, 2017 9:12 pm
Forum: PDF Generation
Topic: PDF Viewer DLL?
Replies: 112
Views: 3619

Re: PDF Viewer DLL?

A Huge "Thank You"