![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Code Samples & Tips Share your recent discoveries and ideas with other users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Since I have a copy of VS5Pro installed I went to take a peek and there is a inputpanel control, so a dll is possible...and I'm guessing that one of the inputpanel methods do a halt to events until input..
Still I don't see How B4ppc is multi-thread, the code allway seems to be like in a flowchart execution way....So eve a simple input panel ( even a coded one ) halts execution until the user decides what to do with the inputed info...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing Last edited by Cableguy : 07-02-2007 at 02:34 PM. |
|
||||
|
Isn't so difficult to make an input panel to have similar behaviour like a real inputbox. Disable controls of the form and put caller code in a loop (with doevents) waiting for a variable to be true when the user will press a button of the input panel.
I think this will do the trick. |
|
||||
|
This is exactly as I was meaning. I think it will 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 |
|
||||
|
Gentlemen,
DoEvents in a Loop Until does work indeed. It would just be more elegant to have the system open a nice input box without additional controls and workaround source code. This is issue probably better placed in the Wishlist category ![]() |
|
||||
|
Do you mean something like IgnoreEvents True or False??
That would appear to be a simple solution but then there might be undesirable side effects like being unable to catch the KeyPress Event to catch user mistakes etc. 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 |
|
||||
|
Hi RandomCoder
It's a bit cluttered but this works for me for a while: Sub App_Start reg.New1 honyaku="your_registration_code" Registration ::::::::: End Sub Sub Registration frmRegistration.Show 'A form with a text box and an OK button Do DoEvents Loop Until mnuRegister.Enabled=False If txtRegister.Text=honyaku Then Return 'continue with code in App_Start Else AppClose 'or prohibit any further use after tap on (ok) if the registration key is wrong End If Else MsgBox("Unregistered Version!"," Shareware Info", cMsgBoxNone, cMsgBoxAsterisk) End if End If End Sub Sub buttRegister_Click 'the OK button if txtRegister.Text=honyaku Then reg.RootKey(reg.rtCurrentUser) key = "Software\RBSoft\Mokusei" reg.SetStringValue(Key,"Owner",honyaku) MsgBox("The software is now registered. Thank you!"," Shareware Info", cMsgBoxNone, cMsgBoxAsterisk) mnuRegister.Enabled=False Else MsgBox("Wrong registration key!"," Shareware Info", cMsgBoxNone, cMsgBoxHand) 'mnuRegister still enabled End if End Sub Sub mnuRegister_Click frmRegistration.Show End if Please be aware that the registration key in honyaku="your_registration_code" in the compiled exe is visible in a HEX viewer, hence not safe enough a solution. |
![]() |
| 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 |
| a panel question | Ricky D | Questions & Help Needed | 2 | 10-23-2008 09:08 AM |
| Panel | Georg | Questions & Help Needed | 1 | 08-06-2008 10:01 AM |
| Scrollbar on a Panel | willisgt | Questions & Help Needed | 5 | 03-10-2008 09:12 PM |
| autoscrollable panel | Henry | Questions & Help Needed | 7 | 11-12-2007 07:40 PM |
| How to draw into a Panel? | BasicUser | Questions & Help Needed | 1 | 07-21-2007 07:28 AM |