![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Sorry Agraham, but it doesn't work better...
Here is my new code with your idea... Code:
If CBOptionsVocal.Checked Then
Sleep (1000)
Dire (Nb1)
Select Operation
Case "+"
DoEvents
Sound (".\sons\" & CbOptionsLangue.Item(CbOptionsLangue.SelectedIndex) & "_" & "plus.wav")
Case "-"
DoEvents
Sound (".\sons\" & CbOptionsLangue.Item(CbOptionsLangue.SelectedIndex) & "_" & "moins.wav")
Case "x"
DoEvents
Sound (".\sons\" & CbOptionsLangue.Item(CbOptionsLangue.SelectedIndex) & "_" & "fois.wav")
Case ":"
DoEvents
Sound (".\sons\" & CbOptionsLangue.Item(CbOptionsLangue.SelectedIndex) & "_" & "divise.wav")
End Select
Sleep (1200)
Dire (Nb2)
End If
End Sub
Sub Dire (temp)
DoEvents
Sound (".\sons\" & CbOptionsLangue.Item(CbOptionsLangue.SelectedIndex) & "_" & temp & ".wav")
Sleep (1200)
End Sub
__________________
Pascal |
|
||||
|
Strange! I would have expected that to draw all the outstanding controls. Can you post a bit of code that shows the effect and are we talking about the device or desktop or both? Is this in the IDE and/or compiled with either compiler?
|
|
||||
|
My application is for desktop.
Here is a version without the "doevent" : Operations for children You'll find the whole source code (an old one but still with the problem), and a link to download the whole application (with the sound files) Before launching questions in the main form, you must check "vocal" in the options form. Thank you. Pascal.
__________________
Pascal |
|
||||
|
As almost every single command, the DoEvents is very usefull when placed in the correct place...
Here's my altered code, working very fast, and a bit more smooth in the "talking", at least, for my taste...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| 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 |
| Shell command | J12345T | Questions & Help Needed | 2 | 06-08-2008 10:49 AM |
| Help on Sqlite Update Command | jeterry | Questions & Help Needed | 13 | 03-31-2008 09:45 AM |
| Command to create a database in sqlite | mozaharul | Questions & Help Needed | 5 | 03-30-2008 04:38 AM |
| Draw and Refresh faster | hung | Questions & Help Needed | 3 | 08-01-2007 02:00 PM |
| No refresh on device | rosmalen | Bug Reports | 5 | 06-16-2007 10:10 PM |