Тема: MobilePhone Plugin
Показать сообщение отдельно
Старый 05.05.2016, 20:16   #15
pierrotm777
Старший Пользователь
 
Аватар для pierrotm777
 
Регистрация: 07.11.2010
Регион: другой - для добавления сообщить ab
Сообщений: 324
pierrotm777 is just really nicepierrotm777 is just really nicepierrotm777 is just really nicepierrotm777 is just really nice
Smile

Hello,
I have worked a lot from yesterday to today on the code and i obtain now the pictures attached !!!

As you can see , the screens are now well in 1024 .
The screen picture are always the Crawings but at the end we will have iCarDS screen format !

I have always an issue with the slider:

I define it into the screen like that:
Код:
S02,725,58,102,14,421,58,102,14,H,"Sliders\bar.png",,60,"MOBILEPHONE_BATTERYSTRENGTH",""
S01,458,58,102,14,151,58,102,14,H,"Sliders\bar.png",,60,"MOBILEPHONE_SIGNALSTRENGTH",""
It is correct ?
and my VB.NET code is:
Код:
    Public Function ReturnSlider(ByRef SLD As String) As Integer

        'This tells RR that the Slider was not processed in this plugin
        ReturnSlider = -1

        Select Case LCase(SLD)
            Case "mobilephone_batterystrength"
                ReturnSlider = Math.Truncate(hfpBatteryPct * 65535 / 100)
            Case "mobilephone_signalstrength"
                ReturnSlider = Math.Truncate(hfpSignalPct * 65535 / 100)

            Case "songpos"
            Case "mobilephone_avrcp_trackpos"
                'If avrcpTrackPos >= 0 And avrcpTrackLen >= 0 Then
                '    Dim posSpan As New TimeSpan(0, 0, avrcpTrackPos)
                '    Dim lenSpan As New TimeSpan(0, 0, avrcpTrackLen)
                '    AVRCP_lblAVpos = "Pos: " & posSpan.Minutes & ":" & Format(posSpan.Seconds, "00") & " / " & lenSpan.Minutes & ":" & Format(lenSpan.Seconds, "00")
                'End If
                ReturnSlider = Math.Truncate(avrcpTrackPos * 65535 / avrcpTrackLen)

        End Select
I upload the last dll and screens (1024x600) for test !!!!
See the first post please !

Thanks for any help !
Миниатюры
Нажмите на изображение для увеличения
Название: icards1.jpg
Просмотров: 767
Размер:	62.8 Кб
ID:	43653   Нажмите на изображение для увеличения
Название: icards2.jpg
Просмотров: 486
Размер:	69.9 Кб
ID:	43654  
pierrotm777 вне форума   Ответить с цитированием