Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Combobox on tab forms event not functioning?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2007, 05:32 PM
Senior Member
 
Join Date: May 2007
Posts: 130
Awards Showcase
Beta Tester 
Total Awards: 1
Default Combobox on tab forms event not functioning?

Hi!
I add combobox1 to multi-tab form and then I use the event...
Sub combobox1_SelectionChanged but seems not working.
Could you please check?
thanks
Reply With Quote
  #2 (permalink)  
Old 06-16-2007, 05:49 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

I've tested with Basic4ppc version 5.00 and it works properly.
Reply With Quote
  #3 (permalink)  
Old 06-16-2007, 06:00 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 636
Default

Hi Erel,

I took the tabcontrol example and added a combobox to the third page. What is wrong with the following code if you say that all is working properly:

Code:
Sub Globals
End Sub

Sub App_Start
   Form1.Show
   AddButton(Form1,"Button1",0,0,80,40,"Button1")
   AddTextBox (Form1,"TextBox1",40,20,100,25,"")
   AddCombobox(Form1,"ComboBox1",40,20,100,25)
   For i = 1 to 9
      ComboBox1.add(i)
   Next
   tbc.New1 ("Form1", 10,10, 200, 200)
   tbc.AddTabPage("Page1")
   tbc.AddTabPage("Page2")
   tbc.AddTabPage("Page3")
   tbc.AddControl("Button1",0,20,20)
   tbc.AddControl("TextBox1",1,20,30)
   tbc.AddControl("ComboBox1",2,20,30)
End Sub

Sub ComboBox1_SelectionChanged
   msgbox("Selected Entry: " & ComboBox1.Item(ComboBox1.SelectedIndex))
End Sub
specci48
Reply With Quote
  #4 (permalink)  
Old 06-16-2007, 06:21 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 485
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Are you using B4PPC version 5 because as I recall there was a problem in Version 4 that meant that ComboBox's and RadioButtons didn't work??

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #5 (permalink)  
Old 06-16-2007, 06:35 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 636
Default

Yes, I've testet the above code with the latest version 5 ...

specci48
Reply With Quote
  #6 (permalink)  
Old 06-16-2007, 06:40 PM
Senior Member
 
Join Date: May 2007
Posts: 130
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I am using V5 and combobox event is working properly directly on forms but can't work on tab forms as specci48's sample codes.
Reply With Quote
  #7 (permalink)  
Old 06-16-2007, 06:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

You are missing the arguments in the sub declaration.
Sub ComboBox1_SelectionChanged (Index, Value)
msgbox("Selected Entry: " & ComboBox1.Item(ComboBox1.SelectedIndex))
End Sub
Reply With Quote
  #8 (permalink)  
Old 06-16-2007, 06:58 PM
Senior Member
 
Join Date: May 2007
Posts: 130
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks Erel, guys...I'll should keep that in mind.
Reply With Quote
  #9 (permalink)  
Old 06-16-2007, 07:03 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 636
Default

I'm a and must have been blind all the time ...
Reply With Quote
  #10 (permalink)  
Old 06-16-2007, 07:23 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

BTW, there are at least two blind users in this forum and they are doing a great job: http://www.braillesoft.net/pacmate.htm
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
Assign icons to forms? BjornF Questions & Help Needed 12 02-26-2008 09:20 AM
Duplicating Forms Ianmac Questions & Help Needed 2 02-02-2008 01:04 PM
Merging forms skipper Questions & Help Needed 2 01-10-2008 01:18 PM
not functioning on device Rioven Questions & Help Needed 7 08-16-2007 04:14 AM
Multi-tab forms Rioven Questions & Help Needed 6 06-11-2007 04:49 AM


All times are GMT. The time now is 03:12 PM.


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