Search:

Type: Posts; User: Nouyana

Page 1 of 9 1 2 3 4

Search: Search took 0.02 seconds.

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

    Ok, I had to repost my previous screenshot. The top offset is NOT absent here (it is 1px). How could it happen? How can I change this?

    https://www.vbforums.com/images/ieimages/2024/03/4.png


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

    The top gridline offset is now absent with the same code. I don't know why.

    Krool, please help me to understand what do theese properties mean:

    1. GetGridLineOffsets:
    Left = 0
    Top = 0 (I...
  3. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Try to use the undocumented Collect property. It's 20% faster. Works with both - ADO and DAO. Or you may use GetRows getting by 10 rows step by step.



    You may don't now what is in the table....
  4. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    I think this is a very unpredictable and memory-intensive function.

    1. The first question is why don't you limit the number of rows for calling the SetCellText? You limit cols, but not rows:

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

    Try to use the FlexDataSource property.

    Example
  6. Replies
    3,725
    Views
    1,855,828

    Re: CommonControls (Replacement of the MS common controls)

    Yahoo!!! I've found it!

    Yes, this is not true-type font, so I've found it in a notepad...

    https://www.vbforums.com/images/ieimages/2024/03/15.png
  7. Replies
    3,725
    Views
    1,855,828

    Re: CommonControls (Replacement of the MS common controls)

    Not in my FontCombo. WinXP SP3 (edition 2021 from here).

    https://www.vbforums.com/images/ieimages/2024/03/13.png



    Should, but not must. This is a clean WinXP SP2 with MS Office 2002:
    ...
  8. Replies
    3,725
    Views
    1,855,828

    Re: CommonControls (Replacement of the MS common controls)

    This is "MS Sans Serif". In my system it named "Microsoft Sans Serif".

    wikipedia/Microsoft_Sans_Serif

    https://www.vbforums.com/images/ieimages/2024/03/11.png
  9. Replies
    3,725
    Views
    1,855,828

    Re: CommonControls (Replacement of the MS common controls)

    The old problem with DEMO-project. Krool didn't fixed it. The solution:
    ...
  10. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Krool, can you somehow explain me where is the ClientWidth/Height, NonClientWidth/Height and GridLineOffsets here?

    ComboButtonNonClientWidth = 90 (6px)
    ComboButtonNonClientHeight = 90 (6px)...
  11. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Am I understand right that this equality is always correct?

    ComboButtonWidth - ComboButtonClientWidth = ComboButtonNonClientWidth = ComboButtonNonClientHeight
  12. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Krool, can you add an Excel-style return behaviour?

    https://www.vbforums.com/images/ieimages/2024/03/2.gif
  13. Replies
    3,725
    Views
    1,855,828

    Re: CommonControls (Replacement of the MS common controls)

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

    1. Use If Linea2 > 0 instead of If Linea2 >= 1
    2. Use If Linea mod 1000 = 0 Then DoEvents instead of just DoEvents
    3. Use With GR1 for the whole loop
    4. TextArray should be faster then TextMatrix...
  15. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Yes.



    No. Maybe Krool can improve it.
  16. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Yes, you may use the ColWidth property and the TextWidth function in the ComboBeforeDropDown or ComboCloseUp events.

    https://www.vbforums.com/images/ieimages/2024/02/15.gif

    Edited:
    The code...
  17. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    Thank you VanGoghGaming and Zann!

    I hope this topic became more usefull. This is the result with Chinese and Russian menus:

    UnicodeForVBMenu.zip
  18. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    I didn't know about it. https://www.vbforums.com/images/ieimages/2024/02/11.gifThank you. All works fine now.

    The only question is why lParam is 0, not 2? Is it an index of all the PopUp menus?
    ...
  19. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    Yes, this is more convenient. I didn't know that the Tag property (unlike the Caption) is unicode-avaliable. Thank you.



    I'm sorry. I've posted the wrong edition of ISubclass_WndProc.
    The...
  20. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    Yes, but you should fill the arrPopupUnicodeCaptions first. So, what is the difference? I always use arrays of controls (incl. menus) because it's easier to handle events by index. The code becomes...
  21. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    We wrote our messages at the same time. Ok, I'll learn it.
  22. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    This is your example

    UnicodePopupMenu.zip

    But it crashes the IDE. Can you provide a clean and little (as much as possible) example without option buttons? Just for unicode support.
  23. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    Ok. I've created 3 menus using the menu editor. Two of them are visible, and the third one is pop-up:
    https://www.vbforums.com/images/ieimages/2024/02/17.png

    Then I've set Unicode captions for...
  24. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    Maybe. But I don't need events if I can use the TrackPopupMenu API function. I will try it.


    It depends on the complexity of the project. How do you avoid it?


    How can I get the hMenu?
  25. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Great job, Krool! You make things easier!

    I don't know why, but I can't unzip your new attachments. did you change the archiver? I use "7-zip" 24.01 (2024-01-31). I had to download files from...
  26. Replies
    3,725
    Views
    1,855,828

    Re: CommonControls (Replacement of the MS common controls)

    Got an error today in the old working code. VBCCR 1.7.0.102

    Run-time error '5'
    Invalid procedure call or argument.



    Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    ...
  27. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Looks better. Thank you, Krool.
  28. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    The first reason is Unicode. I don't like subclassing because of IDE crashing. And the second reason is visual styles. I don't know how to implement them.
  29. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    Thank you, VanGoghGaming. And what about usual (non-popup) menus? Do anybody use it? And how can I hide the menu I use as a popup?
  30. Replies
    29
    Views
    2,987

    Re: [RESOLVED] Top level menus

    Can anybody explain me how to use API-menus? I mean how to declare the Click event?
  31. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Private Sub Form_Load()
    Set Me.VBFlexGrid1.DataSource = GetRs("SELECT * FROM tblDataTaye;")
    With Me.VBFlexGrid1
    .FillStyle = FlexFillStyleRepeat
    .Cell(FlexCellChecked,...
  32. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Here I use the RemoveItem instead of Clear.



    Private Sub cmdAddItems_Click()
    With VBFlexGrid1
    .CellComboCue = FlexComboCueDropDown
    .ComboMode = FlexComboModeDropDown
    ...
  33. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    I don't understand really how it works, but sometimes I can see the drop-down list in both comboboxes and sometimes I can't...
  34. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Only in the VBCCR ComboBox



    Private Sub cmdAddItems_Click()
    With VBFlexGrid1
    .CellComboCue = FlexComboCueDropDown
    .ComboMode = FlexComboModeDropDown
    .ComboItems =...
  35. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Am I understand right that there is no any difference between the FlexAlignmentGeneralCenter and FlexAlignmentGeneral constants?

    And, by the way, Krool, may be you didn't know it because it's a...
  36. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Yes, I can see now that ComboListCount = 0 when ComboItems is set to vbNullString. But what I noticed is an "empty" drop-down list which is still there, unlike the standard controls. Is it by design?...
  37. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Is it still in your roadmap?
  38. Replies
    3,725
    Views
    1,855,828

    Re: CommonControls (Replacement of the MS common controls)

    I mean you should set it to FtcStyleDropDownCombo
  39. Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Ok. Only two questions left. What is the difference between:
    1. FlexWordBreakEndEllipsis and FlexWordBreakWordEllipsis.
    2. FlexSingleLineEndEllipsis and FlexSingleLineWordEllipsis

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

    solved
Results 1 to 40 of 328
Page 1 of 9 1 2 3 4



Click Here to Expand Forum to Full Width