• SONAR
  • Just for fun ... Duckbar Theme Editor, day 2 (p.6)
2016/09/26 07:43:06
panup
skinnybones lampshade
I'm wondering (well, harping) about whether you think it would ever be possible to have the fader cap automatically follow the colour selected for the track?



This is not possible from outside SONAR. You should sent a feature request to Cakewalk instead.
 
2016/09/28 08:44:45
patm300e
panup
Here in north one day is many months in summer. :D
 But hey, I saw .NET coders here... Please help me with this if you can. How to set default values as Drawing.Color and Image (I set integers already):
 Public Class SliderBar
   Public Event Value_Changed()

   Dim m_Value As Integer = 0
   <System.ComponentModel.DefaultValue(0)>
   Public Property Value As Integer
       Get
           Return m_Value
       End Get
       Set(value As Integer)
           m_Value = value
           CheckRange()
       End Set
   End Property

   Dim m_Min As Integer = -100
   <System.ComponentModel.DefaultValue(-100)>
   Public Property Min As Integer
       Get
           Return m_Min
       End Get
       Set(value As Integer)
           m_Min = Min
       End Set
   End Property

   Private m_Max As Integer = 100
   <System.ComponentModel.DefaultValue(100)>
   Public Property Max As Integer
       Get
           Return m_Max
       End Get
       Set(value As Integer)
           m_Max = value
       End Set
   End Property

    Public Property TextColor As Color
       Get
           Return txtValue.ForeColor
       End Get
       Set(value As Color)
           txtValue.ForeColor = value
       End Set
   End Property

    Public Property ScaleImage As Image
       Get
           Return picScale.BackgroundImage
       End Get
       Set(value As Image)
           picScale.BackgroundImage = value
       End Set
   End Property

   Public Property Pointer As Image
       Get
           Return picPointer.BackgroundImage
       End Get
       Set(value As Image)
           picPointer.BackgroundImage = value
       End Set
   End Property

   <System.ComponentModel.DefaultValue(3)>
   Public Property ScaleHeight As Integer
       Get
           Return picScale.Height
       End Get
       Set(value As Integer)
           picScale.Height = value
       End Set
   End Property

   <System.ComponentModel.DefaultValue(25)>
   Public Property PointerY As Integer
       Get
           Return picPointer.Location.Y
       End Get
       Set(value As Integer)
           picPointer.Location = New Point(picPointer.Location.X, value)
       End Set
   End Property




What I would do is create a Public Sub New(defaultpointer as Image,DefaultScale as Image,  defaultColor as Color)
ScaleImage = defaultScale
Pointer = defaultImage
TextColor= defaultColor
End Sub
 
And pass them in on instantiation...One note.  I do try to separate class library code from form code.
I never set form values in class libraries, it makes them less "portable" for reuse.  Just a thought.  You do great work!
 
 
 
 
 
 
2016/09/28 08:55:28
Mesh
Thanks Panu, I'm definitely looking forward to this and appreciate all that you've been doing for us since the X1 days.
Cheers!!
 
 

2016/09/28 10:45:00
panup

What I would do is create a Public Sub New(defaultpointer as Image,DefaultScale as Image,  defaultColor as Color)
ScaleImage = defaultScale
Pointer = defaultImage
TextColor= defaultColor
End Sub
 
And pass them in on instantiation...One note.  I do try to separate class library code from form code.
I never set form values in class libraries, it makes them less "portable" for reuse.  Just a thought.  You do great work!
 


Thanks for the tips! 
2016/09/28 10:45:37
panup
Thanks for your support (all these years), Mesh! :)
 
2016/09/28 12:12:05
patm300e
I hope that in some small way helps you, can't wait to see final project!
Let me know if you need anything else...You can PM if you need to keep it private.
 
Pat
 
 
 
 
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account