Search found 119 matches

by Mick P.
Wed Nov 13, 2019 7:13 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 44
Views: 1759

Re: Help? GTK events do/dont's for dummies (nothing works)

They don't. Who tod you that? If not I would not call something a UI framework, since it's too low-level to do layout if it doesn't provide meaningful layout facilities. I think you're playing cat and mouse with me. Yes the system uses wxWidgets to implement itself. In OpenGL mode it uses wxGLCanva...
by Mick P.
Wed Nov 13, 2019 7:02 am
Forum: Platform Related Issues
Topic: wxHTML cells are 0 width/height with wxGTK3/Linux?
Replies: 3
Views: 155

Re: wxHTML cells are 0 width/height with wxGTK3/Linux?

Thanks guys. I think I should delete this topic since the problem was the new C++11 vsnprintf specification returns a positive value on buffer overflow instead of the old negative error indicator. wxWidgets initializes the HTML document with a dummy html string that looked like mine as truncated in ...
by Mick P.
Tue Nov 12, 2019 4:16 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 44
Views: 1759

Re: Help? GTK events do/dont's for dummies (nothing works)

This accusation is based on what? Accusation? Did you even tried to learn and understand sizers? Did you try to create something based on different sizers? Did you build and run the layout sample? No, I have work to do. Every UI framework has layout elements. But they position controls relative to ...
by Mick P.
Mon Nov 11, 2019 10:59 pm
Forum: Platform Related Issues
Topic: wxHTML cells are 0 width/height with wxGTK3/Linux?
Replies: 3
Views: 155

wxHTML cells are 0 width/height with wxGTK3/Linux?

Sorry to ask. My last hours I've been slowly (gdb) stepping through wxHTML code to try to figure out why it doesn't work like wxMSW to generate a page size matching the document's or display any content... From what I can tell the InitParser uses a system font that has a basic nonzero width and heig...
by Mick P.
Sun Nov 10, 2019 5:50 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 44
Views: 1759

Re: Help? GTK events do/dont's for dummies (nothing works)

A sizer is for a layout, it doesn't help with absolute positioning. In any case I think it would surely work if wxGTK implemented the immediate pass-through option, but since it doesn't it gets the events out of order or something. I'm not sure why you are so confident. Basic positioning doesn't see...
by Mick P.
Fri Nov 08, 2019 7:33 pm
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 44
Views: 1759

Re: Help? GTK events do/dont's for dummies (nothing works)

Hi, All you trouble with the sizes/positioning of controls should go away when you start using sizers and abandon the idea of absolute positioning for good. Thank you. I think I missed this, but anyway, that's no excuse! There's nothing to use a sizer with, anyway, other than a dummy. With a wxGLCa...
by Mick P.
Sun Oct 06, 2019 3:57 pm
Forum: C++ Development
Topic: Move top of wxHtmlWindow view (wxHW_SCROLLBAR_NEVER)
Replies: 3
Views: 156

Re: Move top of wxHtmlWindow view (wxHW_SCROLLBAR_NEVER)

Maybe you're running into the issue that every re-format of the page (e.g. when the content changes or when you resize the window) will force the window to scroll to the top. Which is pretty annoying. I think that's caused by this, which is called at the top of "Layout" (wxHtmlContainerCell). void ...
by Mick P.
Sat Oct 05, 2019 10:32 pm
Forum: C++ Development
Topic: Move top of wxHtmlWindow view (wxHW_SCROLLBAR_NEVER)
Replies: 3
Views: 156

Re: Move top of wxHtmlWindow view (wxHW_SCROLLBAR_NEVER)

Well, after I noticed GetVirtualSize was unset, I noticed (the oddly worded) GetInternalRepresentation API. From there what's possible is SetVirtualSize using its GetWidth/Height, and then to scroll, use its SetPos, setting it to a negative value. It seems very roundabout, if this is what the class ...
by Mick P.
Sat Oct 05, 2019 9:50 pm
Forum: C++ Development
Topic: Move top of wxHtmlWindow view (wxHW_SCROLLBAR_NEVER)
Replies: 3
Views: 156

Move top of wxHtmlWindow view (wxHW_SCROLLBAR_NEVER)

EDITED: Something I noticed is GetVirtualSize is the same size as the window. Even though the HTML document is much longer. I hate to be pest here, but I'm stumped on how to "scroll" the wxHTML window... or that is set it to a different origin with wxHW_SCROLLBAR_NEVER style. FWIW I've tried SetScro...
by Mick P.
Fri Sep 13, 2019 8:06 pm
Forum: C++ Development
Topic: Q: Is wxEventLoop closest thing to Win32's GetMessage? How does it?
Replies: 8
Views: 251

Re: Q: Is wxEventLoop closest thing to Win32's GetMessage? How does it?

Sorry? Multi threaded Application, imho. to keep wxWidgets GUI working, while your long code is running, you must run it(your code) in separate thread as usual. Else gui cannot handle its messages. Oh, well, my goal is primarily to be modal, that is to say, a procedure is called, and then the calle...
by Mick P.
Fri Sep 13, 2019 7:40 pm
Forum: C++ Development
Topic: Get wxEvtHandler from event???
Replies: 23
Views: 514

Re: Get wxEvtHandler from event???

Hi, I'm not on a high horse. Maybe that is projection on your part. If I can't rephrase something, .... As a moderator you should be better than to impugn others' character.) In that case DM is not alone. I came to the same conclusion that you seem to be a bit proud. I think that comes from how you...
by Mick P.
Sun Sep 08, 2019 1:25 am
Forum: C++ Development
Topic: Get wxEvtHandler from event???
Replies: 23
Views: 514

Re: Get wxEvtHandler from event???

I'm sorry you all are overthinking this. I can't help it. I've been programming with C++ for going on 20yrs. These things can't be explained more clearly than to literally teach C++ to laymen at the same time. You really need to get off your high horse, thinking that you're the best programmer in t...
by Mick P.
Sun Sep 08, 2019 1:21 am
Forum: C++ Development
Topic: wxFrame maximize bug
Replies: 13
Views: 613

Re: wxFrame maximize bug

ONEEYEMAN wrote:
Fri Sep 06, 2019 3:04 pm
Hi,
Care to post some code?

Thank you.
if(!frame.IsMaximized())
{
//do...
}
by Mick P.
Sun Sep 08, 2019 1:09 am
Forum: C++ Development
Topic: Toolbar with Multiple Rows
Replies: 6
Views: 1451

Re: Toolbar with Multiple Rows

A little late, but on the subject of this I've added code to this (https://trac.wxwidgets.org/ticket/18143) to add wrapping to the wxMSM toolbar. if(1) if(wxToolBar*tb=wf.GetToolBar()) { HWND hw = tb->GetHWND(); SendMessage(hw,TB_SETSTYLE,0, SendMessage(hw,TB_GETSTYLE,0,0)|TBSTYLE_WRAPABLE); tb->Set...