Starting items
Posted
#1
(In Topic #111)
Guru

Example: - I want to display a Form then play a tune. If I put it in Public Sub Form_Open() it will not show the Form until the tune has played.
Posted
Regular

If Delay is not specified, the function processes all pending events and returns immediately. In that specific case, input events (keyboard and mouse) are ignored.
Posted
Guru

The attached uses a Timer to get the result I am looking for. Simply change 'bWait As Boolean = True' to
'bWait As Boolean = False' to see that it doesn't react as expected.
Please note the software is in the VERY early stages of development..
Posted
Regular

Can be put the code in:
Public Sub Form_Arrange ()
or in :
Public Sub Form_Show ()
Have a good day
Posted
Regular

This works:
Code
Public Sub Form_Show()
playStuff("4C2,3C2,2C2,1E2,1D2,1C8,\n") 'Send Intro string of notes to playStuff
EndHowever, the Arrange event is not good for this.
Posted
Regular

Posted
Guru

The missing note has been recaptured!
Posted
Guru

Form_Show() only shows the form immediately with gb.gui
Form_Arrange() does not show the form until the the routine has finished
Form_Open() does not show the form until the the routine has finished
Form_Active() shows the form immediately with gb.gui and gb.qt4
You need one Label on a form for this to work
Posted
Regular

1 guest and 0 members have just viewed this.


