sip_changed

Discussion in 'Questions (Windows Mobile)' started by dennishea, Apr 3, 2008.

  1. dennishea

    dennishea Active Member Licensed User

    What do I need to do to get this sub to work? I have the hardware dll but I can't figure out how to activate this sub when I turn on an off the sip.

    Sub hardware_SIPChanged 'Changes the TextBox height to fit the whole available screen.
    If hardware.SIPEnabled Then
    TextBox1.Height = Form1.Height - hardware.SIPHeight
    Else
    TextBox1.Height = Form1.Height
    End If
    End Sub


    :sign0085:
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You should also add a hardware object named hardware and initialize it with New1.
     
  3. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Nice thread - I didn't know that it was possible to tell if the SIP was enabled, and you can also get the hieght. That's brilliant and soon to be implemented in my own program.

    Thanks,
    RandomCoder
     
  4. dennishea

    dennishea Active Member Licensed User

    @erel

    I have done that. I used add object from tools menu and named it hardware.
    In startup I did hardware.new1. Is there something else I'm missing.

    :sign0085:

    edit:

    :) :sign0060: :signOops: :sign0161: :sign0060: :)

    Sorry, I had every thing right but was expecting a border. Decided to add 15 to sipheight to create space between txtbox and sip and then it was obivious that it was working.
     
    Last edited: Apr 4, 2008
Loading...