![]() |
|
|||||||
| 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. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
It may not be obvious but you can add the events in this library to the controls in the ControlEx library although it may not be useful or work for some of them. For example - A TrackBar
Code:
' assuming a ControlEvents Object called TrkBrEvents
' and a TrackBar object called TrkBr
Sub App_Start
Form1.Show
TrkBr.New1("Form1",10,10,100,30,false) ' new TrackBar Control
TrkBrEvents.New1(TrkBr.ControlRef) ' add the new events
End Sub
Sub TrkBrEvents_GotFocus
' do something
End Sub
Code:
AddButton("Form1","RunTimeButton",10,10,60,30,"ClickMe")
BtnEvents.New1("RunTimeButton")
|
|
||||
|
Apologies if anyone saw this post come and (rapidly) go a bit earlier. I posted a zip that had the wrong help file. Helpmaker may be free but it is also very idiosyncratic and it seems to be easy to get it confused in several different ways - I ended up reposting the original help. Hopefully all is well this time.
Second and final (hopefully) version of the library with modified help and source. Again compiled for .NET 2.0 - dzt's opportunity to get in fast! The Key events have been added so this, together with the built-in events in B4PPC, gives access to just about all the meaningful control events in the Compact Framework. A ControlRef property is added for completeness but is probably of no use to anyone. Dispose has been improved to unhook the added events from the enhanced control but you don't need to worry about this.. |
|
||||
|
Ready. .Net CF 1.0 attached.
Thanks for the opportunity. ![]() It was not so easy as Ctrl.EnabledChanged -= EnabledChangedEvent; does not compile for .NETCF 1.0 so I changed it to Ctrl.EnabledChanged -= newEventHandler(EnabledChangedEvent); Cheers Last edited by dzt : 10-05-2007 at 01:43 PM. |
|
||||
|
Thanks dzt.
Sorry - C# version 2.0 syntax "improvement" that isn't backwards compatible. I'm really a VB man but libraries are better in C# because of all the baggage that VS2005 VB puts in a module and becomes visible in B4PPC, and I have only ever used version 2 as I only have .NET 2.0 on my machine. |
|
||||
|
Hello agraham (multithreading contact
),Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PhoneticAlgorithms Library (ex-StringComparison Library) | moster67 | Additional Libraries | 10 | 11-11-2008 08:46 PM |
| Door library (Beta) - Special library | Erel | Official Updates | 48 | 07-18-2008 03:33 PM |
| Merging Outlook library and Phone library | Erel | Official Updates | 2 | 07-14-2008 04:38 PM |