Search:

Type: Posts; User: Krool

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    2,989
    Views
    774,743

    Re: RichTextBox cutting the text after word wrap

    When you find a way of changing it without re-creation, please advise. However, I could have gone like the MS RichTextBox and throw out an error when attempting to change at runtime.
  2. Replies
    2,989
    Views
    774,743

    Re: RichTextBox cutting the text after word wrap

    Changing the ScrollBars to vbVertical triggers internally a re-creation of the rich text box.
    So try to put the code before you load the 6MB file for a quick fix.
    However, I would like to test...
  3. Replies
    37
    Views
    789

    Re: VB6 - can we use the 'Any' type?

    The real code is: (from an IntValue variable, -1 is just the default for the API)

    PropTabMinWidth = IntValue

    SendMessage TabStripHandle, TCM_SETMINTABWIDTH, 0, ByVal CLng(PropTabMinWidth)
  4. Replies
    37
    Views
    789

    Re: VB6 - can we use the 'Any' type?

    True. BUT. How is the 0 Integer get extended to Long 0?
    It needs to read 2 bytes off somewhere.
    I experienced the problem in comctl32.dll that a "ByVal -1" got interpret as -2321345 (example value)...
  5. Replies
    37
    Views
    789

    Re: VB6 - can we use the 'Any' type?

    Be carefull. "ByVal 0" is actually an Integer. If the API expects a Long then 2 bytes are off. It can cause "surprise errors".
    To avoid this use "ByVal 0&".
  6. Re: Looking For a VB6 ListBox Alternative That Handles More Than 32,767 Items

    The VBCCR.ListBoxW supports more than 32,767 items. It also can scroll beyond 65,535. (16-bit barrier)
    ...
  7. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Yes, as soon the edit looses focus (hWndEdit destroyed = 0) the .EditText returns a NullString.
  8. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Use the .EditText property. :-)
    The .Text property is still original text while editing and will be updated once editing was validated.
  9. Re: Input permanent data to a vb6 EXE file - other than re-compiling?

    You could add a resource file into the compiled exe. (e.g. ResourceHacker)
  10. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    To avoid the "flash" catch the "EditSetupWindow" event and set the .ComboButtonValue to 'FlexComboButtonValueDisabled'.
    This will avoid that the drop-down list will be shown initially. Then at the...
  11. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Use the .ComboButtonValue property and set to 'FlexComboButtonValueUnpressed' to collapse the drop-down list.
    At best you place that line of code in the "EnterEdit" event.
  12. Re: Property Bag alternative - Data Bag

    Or XML text. Many public authorities, at least in Germany, do persist their records as XML. (e.g. resident registration for interchange between systems)
  13. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    No. SysListView32 does not support it.
  14. Replies
    71
    Views
    3,221

    Re: hao to call Sqlite3.dll with cdecl?

    The fastest approach for VB6 is to compile the sqlite 3 library with __stdcall instead of __cdecl.
  15. Re: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

    You may use the Documentation and Update/Compile Utility from MountainMan to upgrade all references in all Forms from VBCCR16 to VBCCR17.
  16. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Done. :)

    The blue marked code was now inserted into the DataSource property.


    If PropFixedRows > 0 Then
    For iCol = 0 To (PropFixedCols - 1)
    VBFlexGridColsInfo(iCol).Key =...
  17. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    MSFlexGrid has no .ColKey/.ColIndex ...
    So if VSFlexGrid behave as Test 3 then I will check this out soon and maybe implement your change into the "master" version.
  18. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    When you use .ColIndex and did not assign .ColKey before then you get the error.
    Your Test 2 is the correct approach.
    Test 3 is also ok. But on each update you need to keep your changes in mind.
  19. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Thanks. Done
  20. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    You use an outdated "Startup.bas".
    Please download the complete VBFlexGridDemo and replace everything. (FlexInitIDEStopProtection does not exist anymore since a while)
  21. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update related to yesterday's bugfix.

    Included new flags RCPF_FORCETOPROWMASK and RCPF_FORCELEFTCOLMASK which is used in the internal SetRowColParams method.

    Private Sub SetRowColParams(ByRef...
  22. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    This is a bug. I see in the screen that you have the .ScrollBars property set to 'Vertical'.
    In the normal MS(H)FlexGrid this will result that the LeftCol will not change upon mouse clicks and key...
  23. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    VBCCR17 is planned to be last major release. People also have a desire for a constant stable release.
    If any bugs appear they will be of course fixed.

    So feel free to make another fork..
  24. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    IMO any hooks should reside in an App and not in this package.

    So you can use the CommandButtonW.ToolTipText property and use this Code to enable Unicode and multi-line. (See bottom post by...
  25. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    The ToolTipText property of the main object itself (VBControlExtender, e.g. CommandButtonW1.ToolTipText etc.) are the intrinsic properties by VB6 and thus ANSI.

    Only ToolTipText properties in...
  26. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    If turning VisualStyles to False then you can define the BackColor property on the StatusBar control. No magic in this case.
  27. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    The ItemSelect event is intended. The V6 MS.ListView behaves the same.
    However, the V5 MS.ListView behaves different.

    You can make the AutoSelectFirstItem property set to False (mimic V5 MS...
  28. Replies
    27
    Views
    1,500

    Re: Flashing a warning on the taskbar

    This is what I often use to signal attention.
    It flashes as long until it gets clicked by the user.
    (No timer needed as the FlashWindowEx has flags to let the OS time it)

    Private Type FLASHWINFO...
  29. Replies
    7
    Views
    398

    Re: MouseUp-Event not firing using DragDetect

    Use the SetCapture API on your UserControl.hWnd. then you will get the MouseUp event. (MouseUp manual raise only when DragDetect is 0.)
  30. Replies
    7
    Views
    398

    Re: MouseUp-Event not firing using DragDetect

    But why raise MouseUp when the mouse is still down?
  31. Replies
    7
    Views
    398

    Re: MouseUp-Event not firing using DragDetect

    If DragDetect returns 1 then the mouse button is still down(?)
  32. Replies
    7
    Views
    398

    Re: MouseUp-Event not firing using DragDetect

    If DragDetect returns 0 then raise event 'MouseUp' manually within your UserControl. The message is already eaten by the API and it is ensured the mouse is up, so it is safe to raise the event...
  33. Replies
    12
    Views
    1,016

    Re: RtlToFromString - Number Bases

    A byte array passed to a Sub which has ByRef as Variant can have the VT_BYREF flag.
  34. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    VBFlexGrid.HitTest is a Sub. The return values are stored as property .HitResult/.HitRow/.HitCol.

    ComputeControlSize is also a Sub. The params are passed ByRef. So use variables.
  35. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    The FontCombo.BuddyControl can only buddy another FontCombo control.
    Means the first one has the font names and the buddied second One FontCombo the font sizes respectively.
  36. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    I quote myself now.. This fix has been applied now.
  37. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    In a dropped down state the additional search kicks in by windows.
    So all normal and no issue here.
  38. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    The ComboBoxW1 in the ComCtlsDemo project has AutoSelect property as False. Please ensure to set it to True.



    I could replicate it on Windows XP, but not on Windows 10.
    The root cause is that...
  39. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    I cannot replicate your problem. I just tested AllowOverType property (which toggles OverTypeMode property upon Insert key) and it worked.

    Please bundle a demo showing the issue. Thanks


    ...
  40. Replies
    2,989
    Views
    774,743

    Re: CommonControls (Replacement of the MS common controls)

    The PictureAndCaption property is meaningful only when the style property is 0 - Normal.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width