Search found 5222 matches

by ONEEYEMAN
Fri Jul 30, 2021 3:40 am
Forum: Platform Related Issues
Topic: Layout in a scrolled window
Replies: 32
Views: 2010

Re: Layout in a scrolled window

doublemax,
On top of mouse events, tabbing works the same way - when I' on the first row and the focus is n the combo box, pressing TAB mves the focs as appropriate, but the bitmap cursor moves incorrectly.

Thank you.
by ONEEYEMAN
Thu Jul 29, 2021 4:55 am
Forum: C++ Development
Topic: How to remove trailing effect when drawing on a panel?
Replies: 48
Views: 504

Re: How to remove trailing effect when drawing on a panel?

Hi,
Try to use wxAutoBufferedPaintedDC.

Thank you.
by ONEEYEMAN
Thu Jul 29, 2021 4:52 am
Forum: C++ Development
Topic: How to set the size of widgets taking into account the size of UI elements?
Replies: 7
Views: 127

Re: How to set the size of widgets taking into account the size of UI elements?

Hi,
Also keep in mind that some control simply don't have best size (such as wxGrid).

Thank you.
by ONEEYEMAN
Wed Jul 28, 2021 1:28 pm
Forum: C++ Development
Topic: How to assign a Bitmap to a menu item
Replies: 8
Views: 1082

Re: How to assign a Bitmap to a menu item

Hi, I checked the sample. I #include'd "wxlogo.xpm" and Appended wxlogo_xpm per the sample. It compiled fine and ran fine, but no logo icon. Is it the size of the icon? Most of what i want to use is png Don't they resize? Maybe i should try a huge panel. You mean you modified the sample code, you ch...
by ONEEYEMAN
Tue Jul 27, 2021 7:19 pm
Forum: Platform Related Issues
Topic: Layout in a scrolled window
Replies: 32
Views: 2010

Re: Layout in a scrolled window

doublemax,
Attached is the code with the set focus event handler.

Run it, click "Add" 3 times, then click on the first line edit control.

For me the focus is on the correct line, but the pointer points to the second line.

Thank you.
by ONEEYEMAN
Tue Jul 27, 2021 12:24 pm
Forum: Compiler / Linking / IDE Related
Topic: building 32bits library always fails
Replies: 36
Views: 1313

Re: building 32bits library always fails

Hi,
Those are just warnings and can be ignored.
Is executable be made?

Thank you.
by ONEEYEMAN
Mon Jul 26, 2021 9:32 pm
Forum: Platform Related Issues
Topic: Layout in a scrolled window
Replies: 32
Views: 2010

Re: Layout in a scrolled window

doublemax,
Problem is - they interfere with each other.
In the key down event handler I set the focus to the next row and call event.Skip(), otherwise the handler won't work.
But then SetFocus() handler is executed and should set a focus to the 3rd row...

Thank you.
by ONEEYEMAN
Mon Jul 26, 2021 4:20 pm
Forum: Platform Related Issues
Topic: Re: wxWindow::Refresh( EraseBackground, Rect )
Replies: 7
Views: 305

Re: wxWindow::Refresh( EraseBackground, Rect )

Hi,
What is "Canvas"?
And how do you know it erases it or not?

Thank you.
by ONEEYEMAN
Mon Jul 26, 2021 12:22 pm
Forum: Platform Related Issues
Topic: Layout in a scrolled window
Replies: 32
Views: 2010

Re: Layout in a scrolled window

doublemax,
I tried to add that handlers but it broke the key event (for up/down arrow).
I guess I will need some flag to not process focus set and set it inside the key event.

Any alternatives?

Thank you.
by ONEEYEMAN
Mon Jul 26, 2021 12:17 pm
Forum: C++ Development
Topic: Event when click on menu
Replies: 5
Views: 258

Re: Event when click on menu

Hi,
You better have submenus created under the menu bar and use them to handle user action.
Also I'm not sure I understand your comment about "overloading window with buttons". Could you please explain?

Thank you.
by ONEEYEMAN
Sat Jul 24, 2021 10:28 pm
Forum: Platform Related Issues
Topic: Layout in a scrolled window
Replies: 32
Views: 2010

Re: Layout in a scrolled window

doublemax,
Where?
Which event should I catch in order to do that?

Thank you.
by ONEEYEMAN
Sat Jul 24, 2021 8:45 pm
Forum: Platform Related Issues
Topic: Layout in a scrolled window
Replies: 32
Views: 2010

Re: Layout in a scrolled window

doublemax, Let's say I have 2 lines and my focus is on the first line combo. When I press TAB, I want the focus move to the second line text control and the hand arrow to move down. Same with the Shift+TAB The first portion works (focus is moving), but the pointer is still points to the first line. ...
by ONEEYEMAN
Sat Jul 24, 2021 8:41 pm
Forum: Compiler / Linking / IDE Related
Topic: building 32bits library always fails
Replies: 36
Views: 1313

Re: building 32bits library always fails

Hi,
Did you try to apply a patch from Tim and recompile?

Thank you.
by ONEEYEMAN
Sat Jul 24, 2021 6:39 pm
Forum: Platform Related Issues
Topic: Layout in a scrolled window
Replies: 32
Views: 2010

Re: Layout in a scrolled window

doublemax, One more question in regards to this. What would be the way to handle TAB traversal? I'm creating a panel with the default styles, which means TAB traversals handled by default, but I need to add the moving pointer. Maybe I should handle it myself and remove the wxTAB_TRAVERSAL when creat...
by ONEEYEMAN
Sat Jul 24, 2021 6:34 pm
Forum: Platform Related Issues
Topic: Layout in a scrolled window
Replies: 32
Views: 2010

Re: Layout in a scrolled window

doublemax,
Yes, I saw it.

I'll wait for the release and get rid of the workaround.

Thank you.