Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Addlabel or Textbox Disabled


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-29-2007, 04:29 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default Addlabel or Textbox Disabled

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
Attached Images
File Type: gif status.GIF (2.6 KB, 8 views)
Reply With Quote
  #2 (permalink)  
Old 06-29-2007, 04:35 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,314
Default

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
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 06-29-2007, 04:47 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 638
Default

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 ... )

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


specci48
Reply With Quote
  #4 (permalink)  
Old 06-29-2007, 05:11 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default

Quote:
Originally Posted by Cableguy View Post
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
thanks!,
i need to read TFM...
Reply With Quote
  #5 (permalink)  
Old 06-29-2007, 05:11 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default

Quote:
Originally Posted by specci48 View Post
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 ... )

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


specci48
Yes that was i notice too, but i found meanwhile the solution thanks
Reply With Quote
  #6 (permalink)  
Old 06-29-2007, 05:22 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

You could write:
Label1.Color = Form1.Color
instead of the exact color.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
addlabel in runtime tvrman Questions & Help Needed 2 09-04-2007 03:58 PM


All times are GMT. The time now is 03:54 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0