Addlabel or Textbox Disabled

Discussion in 'Questions (Windows Mobile)' started by tvrman, Jun 29, 2007.

  1. tvrman

    tvrman Member Licensed User

    Hi,

    I want in a form some labels, the labels should be shows the contents
    of an variable, for examples the tables row count.
    In an textbox disabled it looks ugly and to use it via addlabel
    it shows an background which is not the same as the form self.

    How can i do it?

    see example
     
  2. Cableguy

    Cableguy Expert Licensed User

    Use a Label!

    Its background is the same as the forms's and is not editable...

    addlabel(form,"label1",20,20,40,20)
    label1.text=your variable

    see the helpfile for AddLabel
     
  3. specci48

    specci48 Well-Known Member Licensed User

    Hi tvrman,

    the default color of a form is 220,220,220.
    Labels added at runtime get a default color of 212,208,200 (I don't know why ... :confused:)

    So you have to correct the color property of a label added at runtime manually to the default form value.


    specci48
     
  4. tvrman

    tvrman Member Licensed User

    thanks!,
    :signOops: i need to read TFM...
     
  5. tvrman

    tvrman Member Licensed User

    Yes that was i notice too, but i found meanwhile the solution thanks
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    You could write:
    Label1.Color = Form1.Color
    instead of the exact color.
     
Loading...