Page 2 of 2

Re: Step Wizard

Posted: Fri Jul 26, 2024 6:59 pm
by ricardo
Great!!

Its possible to change the color of one or some items? No the entire ones, just some of them.

Re: Step Wizard

Posted: Mon Jul 29, 2024 3:19 am
by boddhi
ricardo wrote: Its possible to change the color of one or some items? No the entire ones, just some of them.
To do this,
Into Oliver13's code, add some lines in procedure SetWizard()

Code: Select all

[...]
For i=0 To icount-1
  If iSelected=i+1
    ; *************************************
    ; ****    Start of modification    ****
    ; *************************************
    If i = 2                          ; Added line (Here, 2 (0-based) is the 3th step we want to change for example)
      col = #Red                      ; Added line 
      textcol = #Yellow               ; Added line 
    Else                              ; Added line 
      col = selected_col
      textcol = selected_textcol
    EndIf                             ; Added line 
    ; ************************************
    ; ****    End of  modification    ****
    ; ************************************
  Else
    col=nonselected_col
    textcol=nonselected_textcol
  EndIf
[...]
 
Into StarBootics code, add some lines in procedure Private_Draw()

Code: Select all

[...]
If StartVectorDrawing(CanvasVectorOutput(GadgetID))
  For Index = 0 To StepCount - 1
    If *StepWizardA\StepID = Index + 1
      ; *************************************
      ; ****    Start of modification    ****
      ; *************************************
      If *StepWizardA\StepID=3                        ; Added line (Here, 3 is the 3th step we want to change for example)
        Color=#Red|$FF000000                          ; Added line
      Else                                            ; Added line
        Color=*StepWizardA\SelectedColor|$FF000000
      EndIf                                           ; Added line
      ; ************************************
      ; ****    End of  modification    ****
      ; ************************************
    Else
      Color = *StepWizardA\NonSelectedColor | $FF000000
    EndIf
[...]

Re: Step Wizard

Posted: Mon Jul 29, 2024 7:49 pm
by ricardo
Thnaks, the other day watching the code i find my way.

I will check your solution.

Thanks!!! :D

Re: Step Wizard

Posted: Tue Jul 30, 2024 5:46 pm
by boddhi
ricardo wrote: Thnaks, the other day watching the code i find my way.
Cool! but if you find before anyone a solution to your own question, please publish it or say "Ok I've found"... It will save anyone spending time on it unnecessarily. :wink:

Re: Step Wizard

Posted: Wed Jul 31, 2024 1:06 am
by ricardo
boddhi wrote: Tue Jul 30, 2024 5:46 pm
ricardo wrote: Thnaks, the other day watching the code i find my way.
Cool! but if you find before anyone a solution to your own question, please publish it or say "Ok I've found"... It will save anyone spending time on it unnecessarily. :wink:
But your answer is better :)

Thanks a lot !!!