#132612 - 2005-01-18 06:11 PM
Script to show/hide step
|
el_coyote
Fresh Scripter
Registered: 2002-05-16
Posts: 14
|
Hello,
i try to write script looks like an installer with steps.
It's looks like that :
================================================== | -----Step1------------------------------------ | | | | | | | | | | | | | | ---------------------------------------------- | | Step1 -> Step2 -> Step3 -> Finish | ==================================================
So when i complete the step1, script go to step2 (hide step1 and show step2). For some reason i need to step back step2 -> step1 but can't go to step3 if the step2 is not complete.
For that i need to show/hide $form.frame() with button or action on an image or if the step complete. I don't find how to do that
Thanx for help.
Note : i can explain better in french if necessary
|
Top
|
|
|
|
#132616 - 2005-01-19 09:54 AM
Re: Script to show/hide step
|
el_coyote
Fresh Scripter
Registered: 2002-05-16
Posts: 14
|
No no code yet because i'm first trying to show/hide frame before adding field, checkbox and others things to the frame.
I use the lastest version of Kixform and i have the lastest chm too. But i don't find the correct code. Or it don't work or it return a error, and i don't know what to do.
|
Top
|
|
|
|
#132618 - 2005-01-20 09:42 AM
Re: Script to show/hide step
|
el_coyote
Fresh Scripter
Registered: 2002-05-16
Posts: 14
|
Here is my code :
Break On $System = CreateObject("Kixtart.System")
;************* Form ************** $Form = $System.Form() $Form.BackColor = 235,233,237 $Form.Text = "KiXforms Designer Template" ;**************************************
;************* GroupBox1 ************** $Form.GroupBox1 = $Form.GroupBox() $Form.GroupBox1.BackColor = 235,233,237 $Form.GroupBox1.Height = 201 $Form.GroupBox1.Left = 0 $Form.GroupBox1.Text = "GroupBox1" $Form.GroupBox1.Top = 15 $Form.GroupBox1.Width = 291 ;**************************************
;************* GroupBox2 ************** $Form.GroupBox2 = $Form.GroupBox() $Form.GroupBox2.BackColor = 235,233,237 $Form.GroupBox2.Height = 210 $Form.GroupBox2.Left = 0 $Form.GroupBox2.Text = "GroupBox2" $Form.GroupBox2.Top = 15 $Form.GroupBox2.Width = 291 $Form.GroupBox2.Visible = 0 ;**************************************
;************* Button1 ************** $Form.Button1 = $Form.CommandButton() $Form.Button1.Height = 23 $Form.Button1.Left = 0 $Form.Button1.Text = "Button1" $Form.Button1.Top = 225 $Form.Button1.Width = 75 $Form.Button1.Onclick = GoNextStep() ;**************************************
$Form.Show While $Form.Visible $=Execute($Form.DoEvents()) Loop Exit 1
Function GoNextStep() $form.GroupBox1.Visible = 0 $form.GroupBox2.Visible = 1 EndFunction
When i try it, before clicking on the button, the GroupBox1 is hidden and GroupBox2 is visible. Normally it'll be the GroupBox1 visible and the 2 hidden, and when i click on the button the visibility change.
I really need help, because i don't understant how the kixform code works...
Thx
|
Top
|
|
|
|
#132620 - 2005-01-20 04:27 PM
Re: Script to show/hide step
|
el_coyote
Fresh Scripter
Registered: 2002-05-16
Posts: 14
|
Hey, thx for help, that's work !!!
Why i don't think about ??? Maybe because i'm a newbie
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|