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.

Updated FormExDestop and ControlsExDesktop libraries

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 11-01-2008, 03:31 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

ControlsExDesktop version 1.5 posted with source for merging and updated help.

Added ShowItemToolTips for ToolStrip and StatusStrip
Added ToolTipText for other ToolStrip controls
Added Clear Count, Insert, Item and RemoveAt for ComboBox
Added Clear Count, Insert, and RemoveAt for DropDownButton


Quote:
Originally Posted by klaus View Post
Does there also exist the Left property, I didn't see it in the MS documentation ?
No, there isn't one as the controls are laid out automatically.
Reply With Quote
  #22 (permalink)  
Old 11-01-2008, 03:48 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

Marvelous !
Thank's a lot.
Just tried the first Methods I need.
Works fine.

Your response time is almost faster than our brain.

I suspected that there is no Left property.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #23 (permalink)  
Old 11-01-2008, 05:16 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

Another wish:
The Item method for the ToolStripCombobox should not only return the item value but also be able to change it, like the standard ComboBox, like
tspComboBox.Item(2)="New item" .

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #24 (permalink)  
Old 11-01-2008, 06:09 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 klaus View Post
tspComboBox.Item(2)="New item" .
There's a technical reason why a library can't have an indexed property that is both settable and gettable. The short reason is that the compiler/interpreter of your source code knows what to do when it comes across such code, but as a library is precompiled it needs a separate mechanism for each direction of access for your code to choose at runtime.

I could do a SetItem(index) method but how often would you need it? You can always do a RemoveAt(index) and Insert(thing, index) to get the same effect.
Reply With Quote
Old 11-01-2008, 07:54 PM
LineCutter
This message has been deleted by LineCutter. Reason: I can't read!
  #25 (permalink)  
Old 11-01-2008, 09:08 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

Thank you for the explanations.

In the meantime I used RemoveAt and Insert to replace the Item method.

Just one thing, in the help file, the first parameter is index and the second value like in the standard Combobox, but in the method the first one is value and the second is index, the two parameters are inverted.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #26 (permalink)  
Old 11-02-2008, 06:25 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

I am coming back to your question.
Quote:
I could do a SetItem(index) method but how often would you need it?
I was thinking back to VB1 when I bagan using ComboBoxes and ListBoxes.
I regulary used the Item change method to update item values.
I use the Item return method (the Text method in VB6) only with the selected index, this is the only way to get the selecte item's value.
But with the ToolStripCombobox we have the SelectedItem parameter for that.
In conclusion for the ToolStripCombobox, I would use the Item change (SetItem) method, but I will probably never use the Item return method.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide

Last edited by klaus : 11-02-2008 at 06:30 AM.
Reply With Quote
  #27 (permalink)  
Old 11-02-2008, 09: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

Version 1.6 has GetItem and SetItem for DropDownComboBOx with Insert parameter order corrected.
Reply With Quote
  #28 (permalink)  
Old 11-02-2008, 09:22 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

Thank's so much Andrew.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #29 (permalink)  
Old 11-02-2008, 06:33 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,

It's me once again.

I have implemented the ToolStrip objects in my program.

There remains a small aesthetic issue. If you look at the image below you see that there remains a background color in the images in the buttons when they are selected or checked. I looked in the MS documentation and saw that there exists an ImageTransparentColor parameter for ToolStripItems. I tried to set it with different possibilties, but unfortunately without any success.
Code:
<font face="Courier New"><font size="2"><font face="Courier New"><font size="2">pen.New1(</font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">cRed</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">)</font></font>
<font size=
"2"><font face="Courier New">brush.New1(</font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">cRed</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">)</font></font>
<font size=
"2"><font face="Courier New">tspCalcSum.New1(</font></font></font></font><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000">""</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">)</font></font>
<font size=
"2"><font face="Courier New">obj1.Value = tspCalcSum.ControlRef</font></font>
<font size=
"2"><font face="Courier New">obj1.SetProperty(</font></font></font></font><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000">"ImageTransparentColor"</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">,</font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">cRed</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">)</font></font>
<font size=
"2"><font face="Courier New">obj1.SetProperty2(</font></font></font></font><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000">"ImageTransparentColor"</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">,brush.Value)</font></font>
</font></font>
What is the solution if there is any ?

Thank you in advance.
Attached Images
File Type: jpg ToolStripColors.jpg (14.8 KB, 29 views)
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #30 (permalink)  
Old 11-02-2008, 08:08 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 klaus View Post
If you look at the image below you see that there remains a background color in the images in the buttons when they are selected or checked.
I am afraid that I can't see the problem in the screenshot., I don't doubt you are correct, I just don't understand what to look for. Can you post some code so that I can see it properly?
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
ControlsExDesktop library agraham Additional Libraries 2 09-18-2008 08:54 AM
storage of libraries in WM moster67 Questions (Windows Mobile) 2 08-10-2008 09:09 AM
Updated libraries since Basic4ppc V6.80 Erel Official Updates 0 06-17-2008 05:15 AM
FTP libraries craigisaacs Questions (Windows Mobile) 1 12-20-2007 05:14 AM
ControlsExDesktop library suggestions please agraham Additional Libraries 0 11-17-2007 08:34 PM


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


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