Search found 41 matches

by Bobboau
Wed May 21, 2008 5:39 am
Forum: C++ Development
Topic: file icons
Replies: 1
Views: 596

file icons

what would be the easiest way to get the file system icon of a file when having it's file name? specifically I want to add representations of files to a list view control, I currently have the file names but I'd like to have the appropriate icons for them as well and use the icon view so the interfa...
by Bobboau
Mon Apr 28, 2008 9:55 pm
Forum: C++ Development
Topic: alpha blended windows
Replies: 1
Views: 647

alpha blended windows

is there a way to draw a window with alpha blending? specifically I have a bunch of panel derived objects and I want to be able to drag and drop them and have a transparent version of them drawn relative to the mouse while dragging. they are simply image display objects and just blit a set wxImage t...
by Bobboau
Tue Jan 22, 2008 12:09 pm
Forum: C++ Development
Topic: detecting flash drives
Replies: 4
Views: 1053

I suppose windows only will due, but I was really hoping there was something in the library already, I suppose that was a bit much to ask for in hindsight.

I'm not sure exactly how I would integrate this into a wx project though. without re-writing wx classes anyway.
by Bobboau
Tue Jan 22, 2008 7:37 am
Forum: C++ Development
Topic: detecting flash drives
Replies: 4
Views: 1053

detecting flash drives

is there a way to detect if the user has connected a USB flash drive or other removable storage (i.e. digital camera with built in memory that acts as a removable drive, memory card, ect)?

and if so is there a way to get the path to it?
by Bobboau
Sat Sep 08, 2007 1:02 am
Forum: Compiler / Linking / IDE Related
Topic: will someone tell me what the hell is wrong with this stupid
Replies: 3
Views: 584

will someone tell me what the hell is wrong with this stupid

this is makeing my skin crawl I'm so frustrated with this... error C2664: 'wxToggleButton::wxToggleButton(const wxToggleButton &)' : cannot convert parameter 1 from 'UI_window *const ' to 'const wxToggleButton &' Reason: cannot convert from 'UI_window *const ' to 'const wxToggleButton' No constructo...
by Bobboau
Thu Jul 12, 2007 4:51 am
Forum: C++ Development
Topic: externaly opening a file in shell assosiated program
Replies: 9
Views: 1764

well I only know win32, and only sort of at that. the prototype of the function would be something like, bool wxShellOpenFile(const wxString&filename); the innards of which would be that one line posted above for win32, your line for mac, and god only knows what for nix. where would I have to go to ...
by Bobboau
Wed Jul 11, 2007 4:57 pm
Forum: C++ Development
Topic: externaly opening a file in shell assosiated program
Replies: 9
Views: 1764

we are going for multi-platform support. it's a major design goal.

...why isn't there a function that would do that in a platform independent manner?
by Bobboau
Wed Jul 11, 2007 4:38 pm
Forum: C++ Development
Topic: externaly opening a file in shell assosiated program
Replies: 9
Views: 1764

it's more that I cannot force other people to recompile there libs, which this would do, since we are sharing a common code base. and yeah, I just made it edit the string, but I'm worried, that A)the syntax won't always be exactly the same and B)I might mis things. so this is only a temporary soluti...
by Bobboau
Wed Jul 11, 2007 3:59 pm
Forum: C++ Development
Topic: externaly opening a file in shell assosiated program
Replies: 9
Views: 1764

yeah, it's got that, I've tried removing it, and all it get's me is the file not opening. the app will launch, but it'll say it can't open the file, if I don't modify the command provided, it will open the file, but only after lagging and producing the mentioned error message. it's more than just pr...
by Bobboau
Wed Jul 11, 2007 3:20 pm
Forum: C++ Development
Topic: externaly opening a file in shell assosiated program
Replies: 9
Views: 1764

externaly opening a file in shell assosiated program

first off this is what I have wxString filename = get_filename(); wxString execute_cmd = (wxTheMimeTypesManager->GetFileTypeFromExtension( filename.AfterLast('.') ))->GetOpenCommand(filename); wxExecute(execute_cmd, wxEXEC_ASYNC); now, what I'm trying to do is open a file in what ever sort of progra...
by Bobboau
Mon Jun 25, 2007 2:16 am
Forum: C++ Development
Topic: getting passed filenames
Replies: 1
Views: 468

getting passed filenames

what is the 'corect' way to get a file name that the OS passes to my application. as in if I set my app to be associated with certain file types, when I double click on one my program is loaded up and opens the file, I know from experimentation that in windows (XP at least) two comand line arguments...
by Bobboau
Tue Jun 12, 2007 4:42 am
Forum: C++ Development
Topic: quick question about wxTreeCtrl
Replies: 4
Views: 734

I didn't mean to be snooty there, I was just a bit confused.

it seems an image list is required after all, that seems like something which realy should be documented somewhere, oh well, got it solved thanks for you help anyway. :)
by Bobboau
Tue Jun 12, 2007 1:50 am
Forum: C++ Development
Topic: quick question about wxTreeCtrl
Replies: 4
Views: 734

I'm not sure how that is going to help. I suposed I should clarify what's happening, when I try to drag an item I get a crash, in debug it breaks in a function with a comment saying that I need an image list (the image list should not be NULL). [edit] well I'm trying to make and set an image list, b...
by Bobboau
Sun Jun 10, 2007 11:51 pm
Forum: C++ Development
Topic: quick question about wxTreeCtrl
Replies: 4
Views: 734

quick question about wxTreeCtrl

is it required that I have an image list associated in order to have drag and drop capabilities? it seems as though this is the case, and I don't realy want an image list especially just for this. and it doesn't say anything about it in the docs (as far as I could find), but I do see something to th...
by Bobboau
Mon Mar 26, 2007 10:43 am
Forum: C++ Development
Topic: proper use of wxClientData
Replies: 1
Views: 505

proper use of wxClientData

specifically wxTreeItemData. am I suposed to make a derived class from this, and then cast the pointer I get back from the control to my derived class? this seems like an odd way of doing this (I would have expected some sort of template) so I wanted to be sure this was the way I'm suposed to do it.