Search:

Type: Posts; User: Krool

Page 1 of 13 1 2 3 4

Search: Search took 0.42 seconds.

  1. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    That's discuss-able what is "correct".
    However, the behavior is similar to the .ColIsVisible property.
    Check this out in MS(H)FlexGrid what it prints on a column that is "hidden" (ColWidth = 0) but...
  2. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    20 are count before the first "non-visible".
    Technically it is correct. What's your need?
  3. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update released.

    Included enum FlexComboModeCalendar.

    182716

    To ensure unique format you may put following in ValidateEdit event.

    If Cancel = False Then
    ' Ensure unique date format...
  4. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    Fixed now. Thanks

    I am confused about your proposed new calculations..

    For Right you make .Right = (PhysCX - .Left) - (RightMargin - PhysOffsetCX)
    but for Bottom you make .Bottom = PhysCY -...
  5. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    There is a \rtlpar overriding the WS_EX_RIGHT style bit. So, that's why it is only working to change at run-time in plain text mode.
  6. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Thanks for feedback. I may consider just to cast .EditText = Date from the calendar. (System format then)
    The app can use the ValidateEdit event to modify .EditText with a Format of choice before...
  7. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    I'm having the idea of including a 'ComboModeCalendar' which has as drop-down client a SysMonthCal32.
    However, parsing the date to the MonthView is done with IsDate() and CDate(). If date is invalid...
  8. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    Can you share the RTF so I can play around and what maybe find the issue ? Maybe there is something RTF encoded which forces the alignment...

    Point 1:
    For Right/Bottom I add PhysOffsetCX/CY while...
  9. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update released.

    Included the ColSortArrowAlignment property, which is either left or right (default). This way it's explicit and cleaner.

    Also, there was a bug in the DoubleBuffer property...
  10. Re: [VB6] IEnumVARIANT / For Each support without a typelib

    That's the layout of the internal variables the object has. It's not restricted. Though it is recommended to have the RefCount variable right after VTablePtr. Seems like a common thing in VBx...
  11. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    I cannot reproduce it.

    I have following code:

    RichTextBox1.TextMode = RtfTextModePlainText
    RichTextBox1.RightToLeftMode = CCRightToLeftModeNoControl
    RichTextBox1.RightToLeft = True...
  12. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    The buffer is unicode. So yes.
  13. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    I could have implemented in last update.. However, if I would implement anytime soon (maybe with something other so it would be worth to upgrade type lib version) then as following:


    Public...
  14. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    Or use LinkEnd - LinkStart to allocate just enough space.
  15. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    Update released.

    Finally fixed the mismatch of the RichTextBox Text property concerning CrLf and the internal Cr only.
    The RichTextBox control now uses EM_GETTEXTEX/EM_SETTEXTEX instead of...
  16. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    LinkStart/LinkEnd is a CharRange. Try using EM_GETTEXTRANGE.

    I tested it with sample text and the Mid$(rtb.Text, LinkStart, (LinkEnd + 1) - LinkStart) worked. So can you provide full test sample...
  17. Replies
    3,252
    Views
    1,046,692

    Re: CommonControls (Replacement of the MS common controls)

    Ok, so EM_STREAMOUT will not respect hidden text on richedit20.dll.
    Upon Msftedit.dll it will exclude hidden text, that's why introduced GT_NOHIDDENTEXT.

    However, it is not possible to calculate...
  18. Re: UTF-16 vs UCS-2 vs Unicode in VB6 (some functions for surrogate-pairs)

    There is also the UTF-32 animal..
    Used on WM_UNICHAR. (Optional!!)


    Public Function UTF32CodePoint_To_UTF16(ByVal CodePoint As Long) As String
    If CodePoint >= &HFFFF8000 And CodePoint <=...
  19. Replies
    16
    Views
    543

    Re: Unbelievable misbehaviour of a combo box

    I'm interested to know why. Did you use the OCX or Std-EXE version?
    The Std-EXE version is more likely to crash.
  20. Replies
    3,252
    Views
    1,046,692

    Re: VBCCR RichTextBox Issues

    I hate this quirk and it was discussed several times already.

    So, to sum up. We have SelStart and SelLength and SelText (using the EM_GETSELTEXT, rich edit message only) all ignoring CR-LF and...
  21. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    That's an interesting question. So, a visual cue that a dropdown will appear when attempting to edit.
    The not disturbing approach would be not to always show such a "chevron" but only when that cell...
  22. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update released.



    The workaround with .ComboButtonValue to 'FlexComboButtonValueDisabled' is not needed anymore. There is a new event now 'ComboBeforeDropDown'.
    So you can achieve the wanted...
  23. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    There is no "picture click" event.
    What's the use-case you want to achieve?
  24. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Not possible. Even Excel doesn't allow it.
    What you want actually? Maybe there is an alternative..
  25. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    The .ComboListIndex = 5 works as it should. What do you want to achieve, to just avoid user selection and commit list entry 5 ?
    The below code will do it without SendKeys vbLf...
    ...
  26. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Use ComboListIndex to change the selected list item.
  27. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    ColComboItems is similar to the ComboItems property, except it applies to entire columns. This is often more convenient that using the ComboItems property because you may set the ColComboItems...
  28. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Introduced now a SortArrowColor property which defaults to vbGrayText.

    It's in practise easier to have a global color property which can be set at design time. Because ColSortArrowColor needs to...
  29. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update released.

    Renamed enum FlexColSortArrowUp to FlexColSortArrowAscending and FlexColSortArrowDown to FlexColSortArrowDescending.
    This is then easier to use (not to think about if up is...
  30. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Some finetuning for ColSortArrowColor property.

    When set to -1 the get property will not return -1 anymore and just fallback to the color that will be used then for drawing.
    This is then in line...
  31. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Included the ColSortArrowColor property.

    The default value on each column is -1. This means the applied text color of that cell is used as color for the sort arrow.
    This property allows to...
  32. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Currently the sort arrow is drawn right or left aligned depending on the text alignment. When text is left or centered the sort arrow is right, else left.
    I may include another ColSortArrowAlignment...
  33. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update released.

    Included the ColSortArrow property. I decided to just draw a triangle to be independent of fonts. Also it ensures to work then in Windows XP.
    However, the triangle is calculated...
  34. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Using Unicode character is easier at it scales according to size/dpi etc.
    So unless a Wingdings font is used this works great. And it works back to Win XP, no? (Need to test)
    Also the fore color...
  35. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Question..
    For a potential .ColSortArrow property should I use a fixed image for up/down arrow or just draw with same cell font as unicode char U+25B2 (▲) and U+25BC (▼) ?
  36. Re: [VB6] ActiveX VBFlexGrid (Replacement of the MSFlexGrid control)

    You don't need to reference ocx and tlb.
    Just right click add.. on the control toolbox for VBFlexGrid.
  37. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Updated BubbleSortIter/InplaceMergeSort for better performance on UDT assignment.
  38. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    I found a way to "improve" the bubble sort.

    Let's take the demo example (rows increased from 150 to 600)

    The original version takes 11 seconds in the IDE. The new modified version takes 3.5...
  39. Re: Problem with VB6 ComboBox with style "DropDown List"

    "DropDown List" with Sorted = True and make .AddItem with specify Index to circumvent "sorting". Result is then that you have a combo where you can type multiple chars for quick search. :)
  40. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Update released.



    Included the FlexSortCustomText enum with corresponding CompareText event.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width