Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Basic4ppc Wishlist Missing any feature?

Can labels become clickable?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2012, 05:21 AM
Junior Member
 
Join Date: Mar 2010
Posts: 21
Default Can labels become clickable?

Can labels become clickable (as in good old VB)? They make nice flat buttons

Last edited by Sir Isaac : 01-31-2012 at 05:23 AM.
Reply With Quote
  #2 (permalink)  
Old 01-31-2012, 05:41 AM
Basic4ppc Veteran
 
Join Date: Jun 2011
Location: Doncaster, UK
Posts: 316
Default

Yes they have a 'Click' event

Code:
Sub label1_Click
    
End Sub
Reply With Quote
  #3 (permalink)  
Old 01-31-2012, 06:21 AM
Junior Member
 
Join Date: Mar 2010
Posts: 21
Default

Nope, this doesn't work (at least, in 6.90). According to specifications provided (in .chm help), Labels neither have any events nor can be AddEvented, so to say. Am I wrong?
Reply With Quote
  #4 (permalink)  
Old 01-31-2012, 07:08 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Labels in Windows Mobile do not have a click event.
Reply With Quote
  #5 (permalink)  
Old 01-31-2012, 07:28 AM
Junior Member
 
Join Date: Mar 2010
Posts: 21
Default

Well, I thought so.. Never mind, then.

Last edited by Sir Isaac : 01-31-2012 at 07:57 AM.
Reply With Quote
  #6 (permalink)  
Old 01-31-2012, 02:30 PM
Junior Member
 
Join Date: Oct 2009
Posts: 32
Awards Showcase
Beta Tester 
Total Awards: 1
Default

But they let the click "go through". So a simple work around is to create a panel with the same size of the label and then make that panel the parent of the label/ add the label to the panel. This way you can use the mouse events of the panel for your label.
Reply With Quote
  #7 (permalink)  
Old 01-31-2012, 04:16 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

On the desktop you could try altering the button FlatStyle to see if it looks like what you want. Obj1 is a Door library Oobject.
Code:
Obj1.New1(False)
Obj1.FromControl(
"Button1")
Obj1.SetProperty(
"FlatStyle""Flat")
Valid styles are "Flat", "Popup" (flat till mouse-overed) and "Standard" (three-dimensional) and "System" (however the OS wants to draw it).
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #8 (permalink)  
Old 01-31-2012, 10:03 PM
Basic4ppc Veteran
 
Join Date: Jun 2011
Location: Doncaster, UK
Posts: 316
Default

My bad. Sorry for the confusion. Like so many others I didn't realise we were in the ppc side of forum. Realy should split android off to its own forum.

Sorry again.

Sent from my HTC Vision using Tapatalk
Reply With Quote
  #9 (permalink)  
Old 02-01-2012, 09:13 AM
Junior Member
 
Join Date: Mar 2010
Posts: 21
Default

Quote:
Originally Posted by barx View Post
Really should split android off to its own forum.
And that would make forum search much easier on both sides of the track.

Something like "Show and search both/Only Android/Only PPC threads" on user's CP would be handy.

Last edited by Sir Isaac : 02-01-2012 at 09:16 AM.
Reply With Quote
  #10 (permalink)  
Old 02-05-2012, 10:08 PM
Junior Member
 
Join Date: Mar 2010
Posts: 21
Default

Quote:
Originally Posted by agraham View Post
On the desktop you could try altering the button FlatStyle to see if it looks like what you want. Obj1 is a Door library Oobject.
Code:
Obj1.New1(False)
Obj1.FromControl(
"Button1")
Obj1.SetProperty(
"FlatStyle""Flat")
Valid styles are "Flat", "Popup" (flat till mouse-overed) and "Standard" (three-dimensional) and "System" (however the OS wants to draw it).
1. Surely I'd love to spice up my (desktop) forms and code with .Net functionality. Think this is the right place to start the long journey.

2. Recently I've stumbled upon your (5-year) old remake of LinkLabel 1.1 library. Seems like a nice little job to use instead of clickable label (since it works even on device), and strangely enough, it is missing in Additional DLL List.

Last edited by Sir Isaac : 02-06-2012 at 01:29 AM.
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labels fellow Basic4android Updates and Questions 4 11-06-2011 02:48 PM
Clickable text interaction Jim Brown Basic4android Updates and Questions 5 10-23-2011 11:55 PM
Can labels name be variables ? FFMan Basic4android Updates and Questions 1 10-18-2011 06:12 PM
[question] displaying clickable URL eps Basic4android Updates and Questions 4 06-28-2011 04:36 PM
set clickable areas in a single image moster67 Basic4android Updates and Questions 2 05-24-2011 07:46 AM


All times are GMT. The time now is 11:03 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0