Page 1 of 1

tree in a dialog with multiples dialogs

PostPosted: Thu Nov 16, 2017 11:29 am
by Silvio.Falconi
How I can create a tree on sx with multiple dialog at dx as a setup configuration dialog ? ( see the picture)

Image

Re: tree in a dialog with multiples dialogs

PostPosted: Fri Nov 17, 2017 5:45 am
by Horizon
+1

Re: tree in a dialog with multiples dialogs

PostPosted: Fri Nov 17, 2017 8:56 am
by Silvio.Falconi
I found testtre4.prg but it is on Window I wish on Dialog

Re: tree in a dialog with multiples dialogs

PostPosted: Fri Nov 17, 2017 5:48 pm
by ukoenig
Silvio,
it is possible to paint a dialog on dialog to display something selected from the tree
the SPLITTER is replaced with a sub-dialog connected to the main-dialog.
You tested < testtre4.prg > as a solution. I changed window with dialog that was Your question.

I found testtre4.prg but it is on Window I wish on Dialog


You have to call the buildtree-function on maindialog INIT using sample < testtre4.prg >

replace

DEFINE WINDOW oWnd FROM 3, 6 TO 20, 70 ;
TITLE "Welcome to " + FWVERSION COLOR "N/W"


with

DEFINE DIALOG oDlgMain FROM 10, 10 TO 360, 450 PIXEL TRUEPIXEL ;
FONT oFont TITLE "MULTIPLE DIALOGS with tree"



..
..
ACTIVATE DIALOG oDlgMain CENTERED ;
ON INIT ( BUILDTREE( oTree ), ;
...
...


FUNCTION BUILDTREE( oTree )

oItem1 := oTree:Add( "Page - 1", 1 )
oItem1:Cargo = {|| CleanSlate( oDlgChild )}

oItem1:Add( "Sub 1", 1 ):Cargo := {|| SHOW_CHILD1() }

oTree:Add( "Page - 2", 1 ):Cargo := {|| SHOW_CHILD2() }

RETURN NIL


Image

everything is possible : data display on different locations

Image

regards
Uwe :D

Re: tree in a dialog with multiples dialogs

PostPosted: Fri Nov 17, 2017 6:43 pm
by Silvio.Falconi
pls read good my message to charles..

Re: tree in a dialog with multiples dialogs

PostPosted: Fri Nov 17, 2017 7:01 pm
by ukoenig
Silvio,
where is this message

:?: :?: :?:
pls read good my message to charles..


regards
Uwe :?:

Re: tree in a dialog with multiples dialogs

PostPosted: Fri Nov 17, 2017 7:10 pm
by Silvio.Falconi
sorry I wrote to manuelcalero
I ask to make another thing... the dialog on my picture have a dialog with scroll
I'm sorry but there are many times that someone pretends not to understand or does it special to make me waste time
such as the "crop" program. you've bolted your shoes all the way to want to use the tgroup class while the solution was another and much simpler, that is to draw with the mouse a dotted box. Sometimes I let you do but know that doing this is wrong...
.....to turn the window into dialog... do you think I am not capable?

viewtopic.php?f=6&t=34872&start=0

Re: tree in a dialog with multiples dialogs

PostPosted: Sat Nov 18, 2017 9:36 am
by Marc Venken
Silvio,

People in this forum are only trying to help other people !!

Nobody can give total solutions, but parts and mostly they come with a solution.

Not all answers can be given, but keep this please in mind. They are only trying to help !!
With this kind of posts, i'm afraid that users could react : I don't care, and the nobody will get any help anymore.

Marc

Keep up the good work folks ! I benified a lot of all of your post's ;;;;

Re: tree in a dialog with multiples dialogs

PostPosted: Sat Nov 18, 2017 10:03 am
by Silvio.Falconi
Good Marc....criticisms are good to improve

When I want to give help to someone, if I do not know the answer, I do not answer other suggestions !!!

Example :
If one wants black coffee and I suggest a glass of wisky ... it's not the same thing ...

But you said that people are trying to help, well I helped find a bottle of wisky and not looking for coffee ...

is it this the spirit?

I'm sorry I did not know that a forum is a place where one asks "A" and answers "B" ...

Now that I am aware of what is a forum ... I'm quieter!!

.:: did you read all my posts?... well then you've certainly learned something ::...


NB: When a topic concerns me only, I'm sure I have no answers ... when it will affect the community ... then you will see that everyone will race to be the most beautiful of the chicken ...