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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Desktop Help library

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-14-2008, 01:38 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 Desktop Help library

This library provides access to three Help facilities on the desktop. These are F1 control help, control popup ToolTips and the "What's This?" button for dialogues.

The zip includes library, help, demo and source code for merging.
Attached Files
File Type: zip HelpDesktop1.0.zip (17.1 KB, 202 views)
Reply With Quote
  #2 (permalink)  
Old 07-16-2008, 07:16 AM
Junior Member
 
Join Date: May 2007
Posts: 41
Default

Thanks Agrahan for your library, now, I can organise better my Hardware application: It's a sort of map with more than 1000 small control button linked to a data base, and I like this new feature to pass the mouse tip over the controls to know its name or other information.
Reply With Quote
  #3 (permalink)  
Old 07-16-2008, 01:38 PM
Junior Member
 
Join Date: May 2007
Posts: 41
Default

Just a question: is there any possibility to pass the text of the tooltip to a string? I want to do this without click in the control where I am passing the tip of the mouse.
Thanks in advance
Reply With Quote
  #4 (permalink)  
Old 07-16-2008, 03:56 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

Quote:
Originally Posted by francisco cobos View Post
is there any possibility to pass the text of the tooltip to a string?
Do you mean like this
Code:
String  = GetToolTip(control) ' Returns the tool tip text for control name.
I don't understand about the click, the tool tip pops up without clicking

Last edited by agraham : 07-16-2008 at 03:59 PM.
Reply With Quote
  #5 (permalink)  
Old 07-17-2008, 08:25 AM
Junior Member
 
Join Date: May 2007
Posts: 41
Default

I'm trying to obtain the text inside the tooltip at the run time, so I don't know the name of the control: Something like that:


For ind=0 To table1.RowCount-1
one_function(x,y)
AddButton ("Form1", "But"&ind,x,y, 8,8,nombre_boton)
AddEvent ("But"&ind, Click, "MySub")
ToolTip.SetToolTip("But"&ind,table1.Cell("cod",ind ))
Next ind


Sub ToolTip_Popup
stringX=tooltip.GetToolTip ( control??????)
End Sub

Reply With Quote
  #6 (permalink)  
Old 07-17-2008, 09:26 AM
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

You need to set a HelpID for each control using the control name and retrieve it in the event.
Code:
  For ind=0 To table1.RowCount-1
  one_function(x,y)
  AddButton (
"Form1""But"&ind,x,y, 8,8,nombre_boton)
  AddEvent (
"But"&ind, Click, "MySub")
  ToolTip.SetToolTip(
"But"&ind,table1.Cell("cod",ind))
  Tooltip.SetID(
"But"&ind,"But"&ind) ' use the control name as an ID
Next ind


Sub ToolTip_Popup
  stringX=toolTtip.GetToolTip (ToolTip.HelpID)) 
' retrieve the control then its tool tip
End Sub
Reply With Quote
  #7 (permalink)  
Old 07-24-2008, 08:11 AM
Junior Member
 
Join Date: May 2007
Posts: 41
Default

Thank you, now it works perfectly, I have just changed this:

stringX=toolTtip.GetToolTip (ToolTip.HelpID))

whith:

stringX=ToolTip.HelpID
Reply With Quote
  #8 (permalink)  
Old 10-29-2008, 10:43 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew,

I have begun 'playing' with the HelpDesktop and The ControlExDesktop libraries.
I am writing a desktop version of my DynSim program and have at the moment TollbarButtons and Imagebuttons. I would like to get TooltipTexts on these buttons and use only one type of buttons, either TollbarButtons or TollStripButtons.

How can I get TooltipTexts on these objects ?

I tried it with the Door library, but am I missing something.

Thank's in advance.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #9 (permalink)  
Old 10-29-2008, 11:04 AM
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

Do you have to pay to use these?
Quote:
Originally Posted by klaus View Post
TollbarButtons
I would expect this to work but haven't actually tried it.
Code:
ToolTip.SetToolTip(ToolStripButton.ControlRef, "tip")
ToolTip.SetToolTip(ToolBarButton.Value, 
"tip")
Note the difference in property names used to return the control reference. This varies between implementors
Reply With Quote
  #10 (permalink)  
Old 10-29-2008, 12:00 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew,

Code:
TollbarButtons 
Do you have to pay to use these?
Perhaps I should, or at least pay you for your help.

I had alraedy tried your suggestion, but I get the error below.

I have attached my small test program, without the libraies.

Best regards.
Attached Files
File Type: sbp TestControlEx.sbp (2.8 KB, 19 views)
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
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
Desktop Videocam image capture library agraham Additional Libraries 22 03-18-2012 10:42 AM
Text To Speech library (desktop only) Louis Additional Libraries 13 02-03-2009 09:19 AM
Window-Eyes Speech Library for the Desktop Only Louis Additional Libraries 0 07-15-2008 07:06 PM
Using RAPI library to transfer database from device to desktop mozaharul Questions (Windows Mobile) 4 04-01-2008 08:55 AM
Desktop Only library released Erel Announcements 3 09-10-2007 09:28 PM


All times are GMT. The time now is 10:43 PM.


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