Results 1 to 8 of 8

Thread: Popup Frame

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Popup Frame

    Hi,

    I was trying to make an popup frame, after made some post here (a month ago) i got some solution by user in vbforums (joacim andersson). But then i left the method and using another method. Now i want to using it back, but i realize something is not working. Which is when i click combo dropdown arrow once, an then click it once again, the message box will execute twice or more depend on many time i click combo dropdown arrow.

    Here i attached vb project to make thing much more clear .

    Please anyone help...
    Attached Files Attached Files

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: Popup Frame

    No luck today for me hah

    Well, it's alright. Anyone please just see attachment and click on "combo dropdown arrow" for couple of time, hope you will get what i mean.

    Bye for today

  3. #3
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Popup Frame

    Try this
    VB Code:
    1. Private Sub Combo1_DropDown()
    2.  
    3. Static FrameShow As Boolean
    4.  
    5. If FrameShow Then Exit Sub
    6. FrameShow = True
    7.     Call HookMouse(Me.hWnd, Frame1.hWnd)
    8.     Frame1.Move Combo1.Left, Combo1.Top + Combo1.Height + Screen.TwipsPerPixelY
    9.     Do While Frame1.Visible
    10.         Call Sleep(1)
    11.         DoEvents
    12.     Loop
    13.     FrameShow = False
    14. End Sub

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: Popup Frame

    Hi Andrew,

    It work on the sample i attached, but let me merge the code on my project first before i marked this thread as resolved .

    Any other suggestion are welcome.

    Thanks Andrew.

    Edited:

    In my project i have more tham one combo button like that. And using your solution problem arise when i click first combo button (popup combo1 frame appear), then i click second combo button (popup combo2 frame appear) and then click first combo button. So otherwise.

    please help.
    Attached Files Attached Files
    Last edited by barianto; Sep 20th, 2006 at 09:46 PM.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: Popup Frame

    Bump...

    Anyone?

  6. #6
    Hyperactive Member
    Join Date
    Apr 2004
    Posts
    342

    Re: Popup Frame

    All I did was copy the frame you currently have, paste it pack in, then changes all the Frame1 stuff in Combo1_DropDown to Frame1(0) and all the Frame1 stuff in Combo2_DropDown to Frame1(1).

    Is that what you meant?

  7. #7
    Hyperactive Member
    Join Date
    Apr 2004
    Posts
    342

    Re: Popup Frame

    Just in case you don't know what I mean, I attached the changes.
    Attached Files Attached Files

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: Popup Frame

    Hi tward,

    Thnks for reply. But no tward, that's not what i mean.
    Your method produce the same effect that i want to get rid off.

    Try to change

    debug.print "exit" ---> msgbox "exit"

    And you will got the picture.

    Thank's

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width