Search Results - VBForums

Search:

Type: Posts; User: Jonney

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    192

    Re: Display custom control over form borders

    You should add some codes to check the ListBox's boundary. perhaps you will use some APIs like GetSystemMetrics(SM_CXSCREEN),GetWindowRect to compute new boundary then use SetWindowPos API to...
  2. Replies
    6
    Views
    192

    Re: Display custom control over form borders

    For easier coding, I think you'd better use one TextBox + picButton (PictureBox) + ListBox to make your customized multiColumn-ComboBox. You have to use Mr.Bonnie's above trick to place ListBox at...
  3. Replies
    8
    Views
    230

    Re: [VB6] Virtual 5.0 ListView

    Very good!
    Virtual List is some sort of loading data om demand. I saw lots of ActiveX grid support VL, Most of 3rd Grids just load the VL and Show on us. Now V50Listview 1.2 show us how to do...
  4. Replies
    2
    Views
    133

    Re: Mysterious VBControlExtender

    The WebBrowser is good example.
    Somehow the VBControlExtender didn't executive my ActiveX's UserControl_ReadProperties, so my Subclass can't be initialized. I will make more test.

    Thank you Sir....
  5. Replies
    2
    Views
    133

    Mysterious VBControlExtender

    From my trail, I come to know VBControlExtender has some disadvantages, The Subclassing Procedures in my ActiveX (UC) are not functioning any more. After a thought, it won't support subclassing as it...
  6. Replies
    8
    Views
    230

    Re: [VB6] Virtual 5.0 ListView

    Good demonstration for Virtual loading data. Can you extend to show how to sort the virtual list?
    BTW,when mouse down and move to other items,subclass crash.
  7. Re: Check GetFocus Parent is UserControl.hWnd

    private Const GA_PARENT As Long = 1
    private Const GA_ROOT As Long = 2
    private Const GA_ROOTOWNER As Long = 3
    private Declare Function GetAncestor Lib "user32.dll" (ByVal hwnd As Long, ByVal...
  8. Re: Check GetFocus Parent is UserControl.hWnd

    IsFocused is not called by Timer, it is being called when Editors (SDK TextBox or SDK ComboBox... in my UserControl) finish Editing by <Enter> button or <Escape>,etc. but the keyboard event is being...
  9. Re: Check GetFocus Parent is UserControl.hWnd

    The purpose of IsFocused function is that: While UCx is hiding, e.g. after input, UserControl will SetFocus and draw something.



    Function HideEditors()
    If UC1.Visible =True then
    ...
  10. Re: Check GetFocus Parent is UserControl.hWnd

    Honestly,I am not so clear about this article...
    I am not so understand UserControl related events:


    Private Sub UserControl_EnterFocus()
    Debug.Print "EnterFocus"
    End Sub

    Private Sub...
  11. [RESOLVED] Check GetFocus Parent is UserControl.hWnd

    How to check current focused Parent is my UserControl.hWnd? I used hardcode to check it,any API can do the job?



    Private Function IsFocused() As Boolean

    Dim lhWnd As Long
    lhWnd =...
  12. Re: [RESOLVED] How to get Unicode char on IME window in VB6?

    Take time to digest...

    Thanks. If you know direct way instead of dependence of RichClient, please teach me.
  13. Re: CommonControls (Replacement of the MS common controls)

    Sorry I miss this function!
    BTW, ListBoxW's Selected doesn't work from what I tested, (Just test it not yet investigate.)
  14. Re: CommonControls (Replacement of the MS common controls)

    I just occasionally SendMessage LB_SETITEMHEIGHT to ListBoxW (Normal Mode), The ListBoxW just draw partially. I Send the same message to VB6 ListBox (normal mode as well),VB6 ListBox draw normally....
  15. Re: [RESOLVED] How to get Unicode char on IME window in VB6?

    Not yet study to use RichCleint5 to build an UserControl in class (or module), if a demo is available, please give me so at I can try.

    The problem is VB6's UC is ANSI window, so if locale is 1033...
  16. Re: CommonControls (Replacement of the MS common controls)

    ItemHeight is sure OK, In case crazy guy send this message to ListBoxW though I send this Message to VB6 ListBox which is OK.

    Call SendMessage(ListBoxW1.hWnd, LB_SETITEMHEIGHT, 0,ByVal 40&) make...
  17. Re: Win7 Explorer Themed Selection pszClassList

    OK, thank you for clarification. I have to draw it in hard code.
  18. Re: CommonControls (Replacement of the MS common controls)

    Not sure a bug or default behavior:

    ListBoxW1.DrawMode = lstDrawModeNormal:


    Call SendMessage(ListBoxW1.hWnd, LB_SETITEMHEIGHT, 0,ByVal 40)

    If ListBoxW.IntegralHeight is True, After...
  19. Re: Win7 Explorer Themed Selection pszClassList

    VB6 SDK ListBox and ComboBox created by CreateWindowEx don't have Theme selection.
    .NET also don't have.

    ListView and TreeView have but have to write some extra codes to turn on instead of by...
  20. Re: CommonControls (Replacement of the MS common controls)

    Can you please put some codes for Theme selection support? For Listview and Treeview:



    Public Property Get ExplorerTheme() As Boolean
    ExplorerTheme = m_ExplorerTheme
    End Property
    Public...
  21. Re: Win7 Explorer Themed Selection pszClassList

    From what I know, ComboBox and ListBox doesn't have Themed selection, But Treeview,Listview got.

    What is the behind story? and why is so difficult?

    ListBox/ComboBox doesn't have similar...
  22. Re: [RESOLVED] How to get Unicode char on IME window in VB6?

    Thank you for follow-up.
    I tried many definitions for ImmGetCompositionStringW API but always return 0. The problem is that I can't intercept most IME Message except 3:...
  23. [RESOLVED] Win7 Explorer Themed Selection pszClassList

    Does MS provide pszClassList for Win7 File Explorer Theme Selection, so that I can fill OpenThemeData API to draw Hover and Selection Rectangle? Or just doesn't exist? If doesn't have, how to...
  24. Replies
    11
    Views
    315

    Re: VB6 Subclasser issue

    The Subclass issue I said on the lst post is due to my wrong usage.
    Krool's Subclasser somehow being 'destroyed" or 'disabled' by my another MouseEnter and MouseLeave class. After I discard that...
  25. Replies
    19
    Views
    1,982

    Re: DriveList - Unicode aware with USB detection

    I have all references. I will try to download the LASTEST vbWidgets.dll.
  26. Re: [RESOLVED] How to get Unicode char on IME window in VB6?

    I can't intercept WM_IME_KEYDOWN at all in UserControl Subclass procedure. I falied to detect this message.

    I think my problem is that IME attached to ANSI UserControl window (Form/Picturebox are...
  27. Re: [RESOLVED] How to get Unicode char on IME window in VB6?

    I can't intercept WM_IME_KEYDOWN in UserControl Subclass procedure.
    I think my problem is that IME attached to ANSI UserControl window (Form/Picturebox are all ANSI window),so WM_IME_CHAR just give...
  28. Re: CommonControls (Replacement of the MS common controls)

    When the parent hide,supposed the TextBoxW goes into hiding state as well or destroy at design time. Please check any improvement.
  29. Replies
    19
    Views
    1,982

    Re: DriveList - Unicode aware with USB detection

    I can't run this demo properly. I can only see the pie chart. There's no any alert of reference.
  30. Re: CommonControls (Replacement of the MS common controls)

    I found the trick still has problem in std-exe.
    I put TextBoxW in my uc1, then I put uc1 to my uc2, both uc1 and uc2 have the trick, then I put uc2 on my demo form,At the first time uc2 can move...
  31. Re: C# vs VB6: How to get IME Unicode Char associated with an ANSI Window (UC or Form

    Thanks for this input. I will put a hidden textboxW or create on-the-fly unicode textbox.
  32. Re: Help Needed with conversion to .Net

    RichClient5 is a great library,especially for Graphic stuff... Thanks for sharing.
    BTW, where can we find Win7 Media Player buttons PNG files? I know we can create them in PD. But it is good have...
  33. Re: C# vs VB6: How to get IME Unicode Char associated with an ANSI Window (UC or Form

    This is root problem is that, for VB6 UC or Form or PictureBox, it is ANSI window in locale=1033 (English,USA).
    In Subclass procedure,wParam is always 63 when I typing Unicode.

    The only way...
  34. C# vs VB6: How to get IME Unicode Char associated with an ANSI Window (UC or Form)

    In VB6,UserControl or Form or PictureBox is ANSI window in locale English 1033 (configurable in Region and Language settings). I see wParam is always 63 (Char '?') in WM_IME_CHAR or WM_UNICHAR or...
  35. Re: [RESOLVED] How to get Unicode char on IME window in VB6?

    the subclasser failed to Intercept WM_IME_CHAR for some reason.

    I think the problem is more complicated than TextBoxW. Normal UC or Form is ANSI window in locale English 1033. I see wParam is...
  36. Re: [RESOLVED] How to get Unicode char on IME window in VB6?

    In Krool's TextBoxW, since it is Unicode Window which created by CreateWindowExW, I can see wParam is Unicode Keycode in WM_CHAR and WM_IME_CHAR. But the UserControl and Form is ANSI window, how to...
  37. Re: [RESOLVED] How to get Unicode char on IME window in VB6?

    After I change "Region and Language" setting from Chinese (PRC) to English (USA), I failed to get Unicode Char again with question marks.:(
  38. Replies
    11
    Views
    315

    Re: VB6 Subclasser issue

    I subclass UserControl which associates with IME, not IME window. My C# code works very well, but VB6 failed.

    Edited:
    FYI: Krool's TextBoxW works very well for Unicode.
    But my question is to how...
  39. Replies
    11
    Views
    315

    Re: VB6 Subclasser issue

    I switch my locale to English (USA), Chinese and Japanese turn into question mark now (Using Krool Subclass,works on locale=2052 PRC). I think my vb6 code has problem. But my C# Code is always OK.
    ...
  40. Replies
    11
    Views
    315

    Re: VB6 Subclasser issue

    Don't know how to get hWnd of IME to see whether it is Unicode Window. My Subclass Procedure only Subclassed 3 Message:
    WM_IME_SETCONTEXT/WM_IME_STARTCOMPOSITION/WM_IME_CHAR. Krool's Subclass...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.