Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


a un-visible Button dont works


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2010, 10:46 PM
a6000000's Avatar
Junior Member
 
Join Date: Feb 2010
Location: Berlin
Posts: 11
Default a un-visible Button dont works

example Forelayer
menu-designer-frmMain-Graphics:
click on Button: "btnErase":
error: if I uncheck [ ]visible
than the Button no more works - I dont like it

I will be glad if I can make a unvisible button on/over a (background-) graphic
simply with unchecking the visible checkbox (and so I dont need to make a image-Button)

greatings from Berlin, Andreas Zastrow (a6000000)
Reply With Quote
  #2 (permalink)  
Old 03-11-2010, 08:53 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 1,797
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

When you set a Button's Visible parameter to False, this means that the button is no more available ! That's the purpose of this parameter.

To have an invisible button you can do it with:
- an ImageButton with it's Transparent parameter set to True
- directly with the form's MouseDown or MouseUp events, the program checks if the mouse pointer is in a given area and if yes executes the code.

Attached a small program to show it.

Best regards.
Attached Files
File Type: zip InvisibleButton.zip (11.3 KB, 3 views)
__________________
Klaus
Switzerland
Reply With Quote
  #3 (permalink)  
Old 03-11-2010, 07:54 PM
a6000000's Avatar
Junior Member
 
Join Date: Feb 2010
Location: Berlin
Posts: 11
Default

Sub ImageButton1_Click
'// danke , so hab ich noch ein ImageButton1 eingefuegt:
'// so I added a ImageButton:
'// Designer-frmMain-Controls-ImageButton: name: "ImageButton1"
Msgbox("MyImageButton1_is clicked")
End Sub
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
Making last Row Visible harry5568 Questions & Help Needed 2 02-09-2010 04:39 PM
Build with Find/Replace visible mjcoon Bug Reports 4 02-06-2010 09:51 AM
Visible property in Form object ghale Basic4ppc Wishlist 4 08-08-2009 04:45 PM
Form Visible? In Focus? digitaldon37 Questions & Help Needed 2 12-03-2008 08:26 AM
Visible property for menus alfcen Basic4ppc Wishlist 2 11-11-2007 11:15 AM


All times are GMT. The time now is 11:49 PM.


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