Search found 539 matches

by mael15
Tue Dec 02, 2014 2:45 pm
Forum: C++ Development
Topic: cursor disappears in wxEVT_LEFT_UP
Replies: 5
Views: 1359

cursor disappears in wxEVT_LEFT_UP

hi, i have the strange behaviour that my cursor disappears in a wxEVT_LEFT_UP event. the position seems to be ok, i tested with: void onLeftUp(wxMouseEvent &evt) { POINT pos; GetCursorPos(&pos); wxPoint pos2 = wxGetMousePosition(); bool test2 = GetCursor().IsOk(); evt.Skip(); } pos and pos2 ...
by mael15
Tue Dec 02, 2014 7:12 am
Forum: C++ Development
Topic: scrollbar size?
Replies: 2
Views: 1745

Re: scrollbar size?

that is hidden well :lol:
thanx!
by mael15
Mon Dec 01, 2014 12:58 pm
Forum: C++ Development
Topic: scrollbar size?
Replies: 2
Views: 1745

scrollbar size?

it seems like a simple question, but i failed to find the solution:
in a wxScrolled<wxPanel>, how can i get the height of the horizontal scrollbar, or the width of the vertical one?
thanx!
by mael15
Wed Nov 26, 2014 3:43 pm
Forum: C++ Development
Topic: wxDC StretchBlit adequate result
Replies: 2
Views: 1128

Re: wxDC StretchBlit adequate result

perfect, thanx again!
just for anyone with the same problem, this is the result of doublemax´s solution:
previewRight.png
previewRight.png (3 KiB) Viewed 1115 times
by mael15
Wed Nov 26, 2014 10:25 am
Forum: C++ Development
Topic: wxDC StretchBlit adequate result
Replies: 2
Views: 1128

wxDC StretchBlit adequate result

hi everyone, for a multi page document, i am creating a scrolled window showing previews of all pages like it is common with pdf viewers. so i have a big bitmap like this: fullsize.gif and when i create my preview image using stretchBlit, it looks like this: previewWrong.gif it is kind of similar, b...
by mael15
Mon Nov 17, 2014 11:46 am
Forum: C++ Development
Topic: multiple page preview like in pdf readers
Replies: 0
Views: 950

multiple page preview like in pdf readers

hi everyone, i am planning to have some kind of multiple page preview scrolled window like it is common in pdf readers. i would like to reorder pages in that panel using drag and drop and insert new pages through a right-click menu. is there some wx component other than wxScrolledWindow to do most o...
by mael15
Thu Oct 09, 2014 1:05 pm
Forum: C++ Development
Topic: reorder wxTreeCtrl (drag in spaces between nodes)
Replies: 5
Views: 2790

Re: reorder wxTreeCtrl (drag in spaces between nodes)

treeSpaceScrennshot.jpg here is the minimal project working in msw, i ignored encapsulation to keep it simpler: #ifndef __app_h__ #define __app_h__ #include <wx/treectrl.h> #include <wx/dragimag.h> #include <wx/dcbuffer.h> // little red arrow to the left/right to mark the drag position class Positi...
by mael15
Wed Oct 08, 2014 8:21 pm
Forum: C++ Development
Topic: reorder wxTreeCtrl (drag in spaces between nodes)
Replies: 5
Views: 2790

Re: reorder wxTreeCtrl (drag in spaces between nodes)

got it to work. just in case anyone has the same problem: a) do not use wxTreeCtrl´s own EVT_TREE_BEGIN_DRAG events, so the item under the dragging mouse is not highlighted. instead, use wxDragImage (see documentation) although i am not sure why it should be of any more use than a simple wxStaticBit...
by mael15
Wed Oct 08, 2014 3:11 pm
Forum: C++ Development
Topic: reorder wxTreeCtrl (drag in spaces between nodes)
Replies: 5
Views: 2790

reorder wxTreeCtrl (drag in spaces between nodes)

hi everyone, i want to have drag and drop inside a wxTreeCtrl, but the way it is now, only nodes can be highlighted as the drag target, not the space between. so, can i somehow: a) disable highlighting a node when some other node is dragged on top of it b) show a line between nodes so the user can s...
by mael15
Sat Oct 04, 2014 8:14 am
Forum: C++ Development
Topic: exclude WXK_RETURN from wxEVT_TREE_ITEM_ACTIVATED
Replies: 0
Views: 982

exclude WXK_RETURN from wxEVT_TREE_ITEM_ACTIVATED

hi,
i have a wxTreeCtrl that by default processes a doubleclick and WXK_RETURN KeyEvent as wxEVT_TREE_ITEM_ACTIVATED. can i somehow get rid of the WXK_RETURN? ToggleWindowStyle(wxWANTS_CHARS) does not work.
thanx!
by mael15
Sun Sep 28, 2014 9:05 am
Forum: C++ Development
Topic: wxTRANSPARENT_WINDOW not transparent after SetPosition
Replies: 1
Views: 945

Re: wxTRANSPARENT_WINDOW not transparent after SetPosition

ok, since nobody has an idea, i just did it the standard way. works fine, just feels a bit unelegant. this is something i miss in wxWidgets, like a map on an image in html: <img src="image.jpg" width="222" height="152" usemap="#Map"> <map name="Map">...
by mael15
Fri Sep 26, 2014 3:12 pm
Forum: C++ Development
Topic: wxTRANSPARENT_WINDOW not transparent after SetPosition
Replies: 1
Views: 945

wxTRANSPARENT_WINDOW not transparent after SetPosition

hi everyone, i have a tool in my app that is basically a line that can be rotated by 90 degrees: rotate1.gif the white circle is the rotation center. it is a wxPanel with a wxBitmap drawn in an OnPaint event. on the circle arrows there is a wxWindow with a wxTRANSPARENT_WINDOW style. one can grab th...
by mael15
Wed Sep 24, 2014 4:32 pm
Forum: C++ Development
Topic: drawing to a bitmap from a thread
Replies: 19
Views: 7333

Re: drawing to a bitmap from a thread

i am not sure if the following has something to do with this thread. i get this access violation error and have a hard time finding the cause: Ausnahme (erste Chance) bei 0x009295C0 (wxmsw30ud_core_vc_custom.dll) in myApp.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0xDDDDDDE1 Ausnahme...
by mael15
Wed Aug 06, 2014 10:25 am
Forum: C++ Development
Topic: safely renaming multiple directories
Replies: 7
Views: 2281

Re: safely renaming multiple directories

thanx pb, now i understand that this could be a very costly function. i found this dirty trick: rename(fileName, fileName) using the SAME filename. http://stackoverflow.com/questions/1048592/how-to-check-if-a-file-has-been-opened-by-another-application-in-c works at least under windows, still in win...
by mael15
Tue Aug 05, 2014 5:55 pm
Forum: C++ Development
Topic: safely renaming multiple directories
Replies: 7
Views: 2281

Re: safely renaming multiple directories

oh yeah, i forgot that in my last post. wxFileName::IsDirWritable also return true. it sais it the docs Write permissions on a directory mean that you can create new files in the directory. but i would like to test if i can rename the directory, not if i can create new files in it. in the windows ex...