Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List 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
  #11 (permalink)  
Old 09-22-2008, 09:00 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,321
Awards Showcase
Forum Contributer 
Total Awards: 1
Default a coding mistake or a BUG?

Hi Andrew...
first of all, congragtulation on bringing these two dlls on step further...
" to infinity and beyond..."....
I have a doubt...
I satrted a project adn added the controlsExDesktop, and its two main Objects...

here's the partial code, wich reproduces my issue...
Code:
	Xform.New2("Main","EMK v0.1",600,480)
	XForm.HasControlBox=True
	Xform.HasMaximizeBox=True
	XForm.HasMinimizeBox=True
	XForm.MaximumHeight=480 'If commented out these two lines, the form displays normally 
	XForm.MaximumWidth=600 ''If commented out these two lines, the form displays normally 
	XForm.WindowState=1
As posted, if the two lines are comomented out, the form displays as expected, but if I use either of the lines is like I never setted the forms size in the new2 method...With the adicional problem, that even with both maximumwidth and maximumheigth set, my form appear trimmed in width (see image attached)...
So in order to make the form appear as I want, must I again, set the width and heigth of the form?????
Why???
Attached Images
File Type: jpg untitled.JPG (4.8 KB, 12 views)
__________________
Paulo Gomes
Porto, Portugal

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

DLL Version Listing

Last edited by Cableguy : 09-22-2008 at 11:00 PM. Reason: very bad eglish, worse than usual...
Reply With Quote
  #12 (permalink)  
Old 09-23-2008, 09:12 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Cableguy View Post
So in order to make the form appear as I want, must I again, set the width and heigth of the form????? Why???
Yes, I know this happens but I can't really explain it. It is a .NET thing and seems to be caused by an interaction between the Maximum and Minimum Height and Width size settings which all default to 0, which means unlimited. Once you set one of them this effect appears so it is best to set them all then set the required size.
Reply With Quote
  #13 (permalink)  
Old 10-15-2008, 03:58 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

FormExDesktop1.6 now posted in the first post with support for module name prefixes for the Thread object.
Reply With Quote
  #14 (permalink)  
Old 10-31-2008, 02:26 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 677
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Hi Andrew,

I have another question about the ControlExLib library.

In the joined program I want to set the with of the ToolStripComboBoxes and the ToolStripTextBox.
I tried several things with the Door library but with no success.
I can modify the DropDownHeight Prorety but not the Width properties.
I tried to change the Anchor and Dock properties to the width changed but nothing happens.
I can get the Width value but not set it.

What am I missing ?

Thank's in advance for your help.
Attached Files
File Type: zip TestControlEx.zip (27.9 KB, 3 views)
__________________
Klaus
Switzerland
Reply With Quote
  #15 (permalink)  
Old 10-31-2008, 02:59 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by klaus View Post
What am I missing ?
Code:
	obj1.Value = tspSelect2.ControlRef
	obj1.SetProperty("ToolTipText", "Select superpos")	
	obj1.SetProperty("AutoSize", False)
	obj1.SetProperty("Width", 60)
These controls normally size themselves to fit the ToolStrip, setting AutoSize to False lets you set the Width but the Height always seems to be automatic even though the docs say it is a settable property.
Reply With Quote
  #16 (permalink)  
Old 10-31-2008, 04:06 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 677
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Thank you Andrew

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #17 (permalink)  
Old 10-31-2008, 10:46 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 677
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Hi Andrew,

I am continuing to use the ControlEx Library.

I am also using ToolStripComboBoxes.
It would be interesting to have:
- the Clear method
- the Item paramter
This would make a whole reinitialization and the replacement of the text of one item much easier, like in standard ComboBoxes.

It is probably possible with the Door library (I don't know how), but if these two functionalities were directly accessible it would be easier.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #18 (permalink)  
Old 11-01-2008, 03:05 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 677
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Hi Andrew,

To clear the ToolStripComboBox I tried to use the RemoveItem method for I know the number of items.
But it seems that RemoveItem(n) doesn't do anything.

Code atached, only the program, the rest is the same as in post #14.

Thank you in advace for your help and Best Regards.

EDIT: I saw in between that to remove an item there must be the text of the item in RemoveItem, I was thinking of the index of the item, as in RemoveAt for the standard ComboBox that, for me, would be more convenient.
Attached Files
File Type: sbp TestControlEx.sbp (3.8 KB, 2 views)
__________________
Klaus
Switzerland

Last edited by klaus : 11-01-2008 at 03:49 PM.
Reply With Quote
  #19 (permalink)  
Old 11-01-2008, 03:41 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by klaus View Post
But it seems that RemoveItem(n) doesn't do anything.
It's the item itself you need to specify, not its index

"tspSelect1.RemoveItem(tspSelect1.Text)"

I will do a new revision of ControlsExDesktop with the ToolTips for all the ToolStrip controls and Clear, Count, Item and RemoveAt(index) for theComboBox and Clear, Count and RemoveAt(index) for the DropDownButton. Anything else you can think of?
Reply With Quote
  #20 (permalink)  
Old 11-01-2008, 03:59 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 677
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

That's pretty good news.

I think that the Insert method could be intersting too.
Does there also exist the Left property, I didn't see it in the MS documentation ? Would be intersting for alignment with AutoSize = False

Best regards.
__________________
Klaus
Switzerland
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
ControlsExDesktop library agraham Additional Libraries 2 09-18-2008 09:54 AM
storage of libraries in WM moster67 Questions & Help Needed 2 08-10-2008 10:09 AM
Updated libraries since Basic4ppc V6.50 Erel Official Updates 0 06-17-2008 06:15 AM
FTP libraries craigisaacs Questions & Help Needed 1 12-20-2007 06:14 AM
ControlsExDesktop library suggestions please agraham Additional Libraries 0 11-17-2007 09:34 PM


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


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