Results 1 to 9 of 9

Thread: Can we use the inbuilt overlays?

  1. #1
    Low Bitrate
    Join Date
    Sep 2006
    Location
    Sydney
    Posts
    101

    Can we use the inbuilt overlays?

    Can you use the inbuilt overlays in your DigitalMod?

    I want to have a screen where the user enters a name.
    I would like to use the CKeyPadLettersOverlay in my application and tie the events to my textbox.

    Is this do-a-ble or do I need to make my own keyboard?
    I cannot find anywhere in the API where I can get a refrence to it. If I attempt to make an overlay with the same name then I get the good old “Object reference not set to an instance of an object“

    Please help.

  2. #2
    Newbie
    Join Date
    Jul 2007
    Posts
    15
    nope. You have to make your own.
    If your doing the module as a .net addin, I have a .net control that handles it for you.

  3. #3
    Low Bitrate
    Join Date
    Sep 2006
    Location
    Sydney
    Posts
    101
    Yes i am.

    can yoou please send it to me?

  4. #4
    Newbie
    Join Date
    Jul 2007
    Posts
    15
    http://cid-f53415ec5442c587.skydrive...SDKeyBoard.dll

    in your addon, create an overlay, then you pass the overlay to the keypad object... like below.

    Private overLayKeyPad As StreetDeck.ScriptOverlay
    Private KeyPad As StreetDeck.SDKeyPad

    overLayKeyPad = app.CreateOverlay("FillUpKeyPadOverLay")
    overLayKeyPad.Hide()

    KeyPad = New StreetDeck.SDKeyPad("FillUpKeyPad", overLayKeyPad, 530, 50)

    AddHandler KeyPad.KeyClicked, AddressOf keyclicked

    it only returns 1 event (keyclicked). each time a key is clicked, the event is raised. The event returns the entire text string, not just the single character that was clicked, so there is no need to concatenate the values...just set the display object = the returned value. It should look something like this...
    Sub keyclicked(ByVal CurrentText As String)
    EditingTextBox.Value = CurrentText
    End Sub

    you can also specify keyboard or numpad views
    keypad.showkeyboard()
    KeyPad.ShowNumPad()
    and enable/disable either view
    KeyPad.AllowKeys = False
    keypad.allownums = false

  5. #5
    Low Bitrate
    Join Date
    Sep 2006
    Location
    Sydney
    Posts
    101
    Ausome

    Looks neet and tight too.

    Thanks,

  6. #6
    Low Bitrate
    Join Date
    Sep 2006
    Location
    Sydney
    Posts
    101
    How do i make a textbox?

    I see the enum GeoShapeType.geoTextBox
    But dont see how to make it. Am I still making a panel or is it something else?

  7. #7
    Newbie
    Join Date
    Jul 2007
    Posts
    15
    http://cid-f53415ec5442c587.skydrive...SDControls.dll

    i made that one also. it's not complete but it is functional

    create a module or an overlay, then add the control

    txtOdometer = New StreetDeck.SDTextBox("txtboxname", parentoverlay, 50, 10)
    txtOdometer.Caption = "Odometer"
    txtOdometer.Value = "0"
    txtOdometer.descrption = "test description"

    that dll also has a combo box control. works mstly the same as the textbox

    cboDistanceUnits = New StreetDeck.SDComboBox("cboDistanceUnits", SettingsOveraly, 250, 260)
    cboDistanceUnits.Caption = "Distance Units"
    cboDistanceUnits.AddItem("Miles")
    cboDistanceUnits.AddItem("Kilometers")

    there are screenshots of both in this thread
    Gas mileage / Oil Change tracking

  8. #8
    Low Bitrate
    Join Date
    Sep 2006
    Location
    Sydney
    Posts
    101
    Thanks again.
    Pitty SD doesnt expose these to developers. They have them already anyway.
    Dont like making things like that because they can change then it will not look the same as the rest of the application.

  9. #9
    Newbie
    Join Date
    Jul 2007
    Posts
    15
    yea, I spent days trying to figure out how to use the combo boxes that SD uses in the config screens. c'mon guys... just expose all of the controls.

    These should continue to look fine, they use button class images, so if you reskin, they should match.

Similar Threads

  1. Replies: 0
    Last Post: 03-26-2007, 01:23 PM
  2. ELO Touch Overlays .. 10.5" .. reuseable?
    By AWDNUT in forum LCD/Display
    Replies: 11
    Last Post: 09-03-2005, 09:52 PM
  3. Laptop Touchscreen Overlays
    By ukchris in forum LCD/Display
    Replies: 0
    Last Post: 02-26-2004, 03:30 PM
  4. Replies: 9
    Last Post: 01-17-2003, 10:36 AM
  5. Replies: 1
    Last Post: 09-26-2002, 04:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •