wx.PopupWindow without calling Frame - python-2.7

I've searched around and all the wx.Popupwindow requires the frame to be setup. Is it possible to create a pop window in wx without using frame to launch it?
Because I just need the Popup Window excluding the frame to show up.

Related

The problem of binding a custom widget frame to the edges of the screen (Qt C++)

The problem is that my application has a custom frame, i.e. the standard frame is disabled using (Qt::FramelessWindowHint), and my problem is that the standard frame has the ability to snap to the edges of the screen and automatically expand (by half or full screen), while providing a choice of which application will be open nearby.
Expected result(https://i.stack.imgur.com/0MFtg.jpg)
How do I implement such functionality.
The custom frame itself is a widget, and several QLabels playing the role of borders
The functionality of moving the widget (frame) and changing its size is also individually implemented
Unfortunately I didn't find any information on the Internet

MFC keep line draw after resizing

I'm trying to create a simple Paint application using MFC. So everything working good and as expected. I have just one issue with resising, in fact when i re-size my window or minimizing it everything disappear and I got blank page. I found that this's caused by the OnDraw function, but I can't find how to deal with that issue.
The purpose of the OnDraw function is to recreate the drawing after the window has been resized/uncovered/unminimized. Your OnDraw function must be able to draw everything at any time. So the event handlers like OnLButtonUp should set variables that can be used by OnDraw. Then the event handlers can call Invalidate to cause a new OnDraw.

Interactive drawing in c++

I try to create an interactive window. I read an image from my pc and show it using opencv.I use cvSetMouseCallback function to get mouse position and events. I write a code that creates a rectangle on the image when a user selects points of edges of rectangle.I want to redraw it, the user click+move. But I can't find how I handle mouse release. Is there an event for this such as EVENT_LBUTTONDOWN?
I try to do this :

Need a way to display image and draw on the image in Visual C++

The current way that I found was to make a bitmap and paint it into a picturebox,
but there it is very slow when trying to scroll the panel (the picturebox is inside a scrollable panel).
Is there a better way to achieve this functionality?
Load the bitmap only when your picture box is created, then leave it in memory until the picture box is destroyed. Loading the bitmap every time OnPaint is called will destroy performance.
Also make sure you aren't re-painting your bitmap if you receive a WM_PAINT message and nothing has changed.
That image size, 1500x2000 will be slow. How about resizing it to 25% to show a preview and if a user wishes to see the whole image give them an alert it may take some time.

Force screen redraw after drawing to screen's DC C++

I'm creating a Windows Mobile custom SIP and as the user presses or "hovers" over a button on the keyboard I draw it's corresponding selected image (iPhone-esque) to the screen's DC using ::GetDC(NULL). It is developed in Win32 C++.
My problem is that I can never get the screen to repaint itself, erasing the previously drawn key. I've tried everything I could think of to force it, ::RedrawWindow() with all different combos of params using NULL or any of the Get..Window functions as the HWND, and all combo of flags (INVALIDATE | UPDATENOW | ERASENOW | ALLCHILDREN etc). I've also tried invalidating the rect and forcing a repaint of the underlying app using ::GetActiveWindow and ::GetForegroundWindow, variations using ::GetDesktopWindow, etc. I've essentially run out of ideas and it's the last thing holding me up from using it on my Windows Mobile device. Does anyone have any ideas? Any help would be greatly appreciated.
I've included some screenshots to illustrate my dilemma.
Before Screenshot
After Screenshot
Before http://img13.imageshack.us/img13/9861/cezoom1.png After http://img3.imageshack.us/img3/7481/cezoom2.png
Thanks in advance!
Rather than drawing to the background DC, why don't you create a temporary window and draw into that? When you destroy the window, the background should get repainted automatically.
I'm just guessing, because I don't know Windows Mobile, but it could be that Windows is caching the last thing that was drawn into the DC and repainting it every time you invalidate the window.
Have you tried InvalidateRect on the screen hWnd?