![]() |
|
|||||||
| 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 |
|
|||
|
Meanwhile, let me propose a problem. In the attached program I want to change the Mean and SD from 100 and 16 to 0 and 1 respectively. I want to show the change on the x-axis as soon as the new value is filled in in the textbox (let's say the 0 in the Mean textbox without ENTER). Now I have to switch textboxes and back to show the change.
Any ideas? |
|
|||
|
something like:?
Sub tbSD_GotFocus Timer1.Interval = 10 'milliseconds Timer1.Enabled = True End Sub Sub Timer1_Tick Mean = tbMean.Text SD = tbSd.Text InitXaxis Timer1.Enabled = False End Sub it doesnt change while waiting... |
|
|||
|
I did it like this, but I do not think this is the most elegant solution...
Sub tbMean_GotFocus Timer.Interval = 1000 'milliseconds Timer.Enabled = True End Sub Sub tbMean_LostFocus Timer.Enabled = False End Sub Sub tbSD_GotFocus Timer.Interval = 1000 'milliseconds Timer.Enabled = True End Sub Sub tbSD_LostFocus Timer.Enabled = False End Sub Sub Timer_Tick Mean = tbMean.Text SD = tbSd.Text InitXaxis End Sub |
|
||||
|
I was thinking more in the lines of this:
sub textbox1_gotfocus Timer1.interval=1000 timer1.enabled=true End Sub Sub Timer1_Tick Timer1.Enabled=False somecontrol.Focus (This will raise the textbox1_lostfocus) EndSub Sub Textbox1_lostfocus This is were you enter the variabl values End Sub
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD |
![]() |
| 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 |
| different Font at .drawstring | MM2forever | Questions & Help Needed | 3 | 06-30-2008 05:45 PM |
| Incorporar Drawstring y Line en TabControl | Lefabrar31 | Spanish Forum | 1 | 09-13-2007 06:17 PM |
| DrawString in angles diferent than 0 | Cableguy | Basic4ppc Wishlist | 0 | 05-05-2007 02:13 PM |