LexaGb Beginner

  • Member since May 25th 2018
Last Activity

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • LexaGb -

    Replied to the thread LISTBOX - Is there a way to display two-lined item.

    Post
    Hello, it is possible with using owner draw function where you can display multilined strings at dedicated item. C Source Code (72 lines)Alex.
  • LexaGb -

    Replied to the thread Snapping time in a window motion.

    Post
    Hello, Florian, thanks for your answer. I'll try to explain better. As I see the variable Period also has an impact on the total moving time if we're starting a moving operation by a PID quite fast. So if we reduce Period value then it takes less time…
  • LexaGb -

    Posted the thread Snapping time in a window motion.

    Thread
    Hello, I'm working on a custom widget that would use motion (sort of horizontal listwheel or swipelist). And I'd like to reduce time for snapping the items to the snap position just like listwheel widget does . As far as I understand there is a…
  • LexaGb -

    Replied to the thread PROGBAR doesn't change colors.

    Post
    Hello, to remove the progress value from the bar just call this with the empty string value: PROGBAR_SetText(hProg, ""). Alex.
  • LexaGb -

    Replied to the thread Widgets on top of GRAPH disappear when using slider.

    Post
    Hello, it is probably because the buttons in the graph area are siblings to the graph. Just attach this buttons to the graph as child widgets using WM_AttachWindowAt(). Then the buttons will be always drawn after the graph is drawn so they should not…
  • LexaGb -

    Replied to the thread LISTVIEW - different styles.

    Post
    Hello, if it is just some kind of an event log then things are a bit easier. Indeed you can do a listview with one column and use default API functions for setting a bitmap and bk color for warning and fault messages. For messages with the parameters…
  • LexaGb -

    Replied to the thread LISTVIEW - different styles.

    Post
    Hello, not exactly clear what you want, but if you need "Warning Description" instead of the header then just place another widget (text or image...) over the header. If you need to do something more complicated, exactly a row with "one column style"…
  • LexaGb -

    Replied to the thread Dropdown widget issues.

    Post
    Hello, quite simple. C Source Code (35 lines)Alex.
  • LexaGb -

    Replied to the thread Polygon Rotation.

    Post
    Yes, we could say that, I suppose. I would say, the term of the origin point is applicable when drawing the polygon. Rotation of the polygon is doing in relative coordinates. When we are drawing rotated polygon we set the origin point again for drawing…
  • LexaGb -

    Replied to the thread Polygon Rotation.

    Post
    Hello, the coordinates of polygon are considered related to the origin point when drawing the polygon. When rotating the polygon the origin point is the pivot point of the polygon that can be inside and outside the polygon depending on its…
  • LexaGb -

    Replied to the thread Dropdown widget issues.

    Post
    Hello, Quote from Electrons4me: “...I would have to draw all my primitives and text in the cbBackgroundWin() Callback... ” yes, that's right. If you are using widgets in your projects then you are using Window Manager and in this case you need to…
  • LexaGb -

    Replied to the thread How to display large range data with GRAPH.

    Post
    Hello, your question relates to the zooming capabilities of the GRAPH widget. Unfotunately the widget doesn't have such functions in the API list. It is works in mode "one pixel <-> one data point". So you need to draw it by yourself using user draw…