🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #230

Re: VB: InputBox$ + 2 Option Boxes

#230
From: Fyodor Zubanov
Date: Sat, 05 Sep 1992 16:47
42 lines
1318 bytes
Mansig Kim writes:

>Now, the problem is how to interrupt(WAIT) the calling until the user
>selects one option button and clicks OK??
>
>for i = 1 to 10
>    call MY-INPUT-BOX
>    select one option box
>    WAIT until OK clicked
>    ^^^^
>next
>
>Here is my way for the WAIT portion.
>
>DO Until OK-clicked
>   idle(do dummy counting??)
>Loop
>

Usually i do the following:

for i=1 to 10
    Load MY_INPUT_BOX
    ' Set initial params
    ........
    MY_INPUT_BOX.Show 1
next

Additionaly you have to add the following string to MY_INPUT_BOX.OK_BUTTON
sub:
Sub OK_BUTTON.Click
    .....
    Unload MY_INPUT_BOX
    .....
End Sub

Rememeber that MY_INPUT_BOX form must be initially invisible.
-- 
=================================================================
        Fyodor Zubanov          fyodor@msoft.msk.su
        Moscow, Russia
=================================================================
Technical Details
Message-ID: <AAtIEggWU9@msoft.msk.su>
Path: arc1-ca.pugleaf.net!sparky!uunet!demos!news-server

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools
Path: arc1-ca.pugleaf.net!sparky!uunet!demos!news-server
From:  Fyodor@msoft.msk.su (Fyodor Zubanov)
Subject: Re: VB: InputBox$ + 2 Option Boxes
Date: Sat, 5 Sep 1992 16:47:51 GMT
Reply-To: Fyodor@msoft.msk.su
Organization: Microsoft Moscow
Sender: news-server@kremvax.hq.demos.su
Message-ID: <AAtIEggWU9@msoft.msk.su>
Lines: 43