Search found 31 matches

by Fire Lancer
Sun Apr 18, 2010 4:54 pm
Forum: C++ Development
Topic: Printing a single image
Replies: 3
Views: 971

Printing across multiple pages is the desired way, since the images are mostly diagrams and other things with text on which need to remain readable. Although I guess in an ideal world having an option the user can change relating to scaling would be ideal.
by Fire Lancer
Sun Apr 18, 2010 8:41 am
Forum: C++ Development
Topic: Own Class and wxDialog and ShowModal
Replies: 7
Views: 2404

What exactly is your problem? You create a dialogue, show it (ending when it calls EndModal on itself), grab any data from it, then delete it. If modal dialogues were to be deleted on the EndModal call, then you would not be able to retrive the data easily that many modal dialogues are designed for....
by Fire Lancer
Sun Apr 18, 2010 8:20 am
Forum: C++ Development
Topic: Printing a single image
Replies: 3
Views: 971

Printing a single image

Is there an easy way to print a single image, ranging anywhere from around 50x50 up to 2000x2000 (potentially much larger, although unlikely in practice)? I came across the wxHtmlEasyPrinting which I just gave a nice simple <img src="myimage.png" />. This works nicely, for images that fit ...
by Fire Lancer
Wed Apr 14, 2010 9:54 am
Forum: C++ Development
Topic: Creating a table to display data
Replies: 2
Views: 4331

Creating a table to display data

I want a read only table to display some simple text data. I also want to be able to merge some of the columns in the top row together for headers, and control over the cells borders rather than just a general borders:yes/no. I took a look at wxGrid, however it doesn't seem to allow cell merging, an...
by Fire Lancer
Wed Mar 03, 2010 7:38 pm
Forum: C++ Development
Topic: Creating an expandable work space?
Replies: 5
Views: 1666

First question, have you done any windows based programming in any programming environment or language?... Yes. The wxScrolledWindow would not be a top level window. The current structure follows: wxFrame (derived from) wxMenuBar ...menues... wxPanel (side bar) ...various controls... wxNotebook (re...
by Fire Lancer
Wed Mar 03, 2010 7:07 pm
Forum: C++ Development
Topic: Creating an expandable work space?
Replies: 5
Views: 1666

Creating an expandable work space?

How can I make the "work space" in my application be expandable like in say MS Excel? I'm guessing I need to start with wxScrolledWindow as a base, but what is the best way in general to handle the expansion (and contraction) of the usable space? I looked at the scroll bar related events, ...
by Fire Lancer
Mon Mar 01, 2010 10:53 pm
Forum: C++ Development
Topic: (Windows)Problem with loading an icon from resource file
Replies: 8
Views: 4413

The wx.rc is included at the bottom of mine. I just played around with basically every possible string I could think of to pass to wxIcon or wxICON and found one that worked. wxIcon icon("#101"); Which is the same string form a lot of the Win-API functions take (as well as the value from M...
by Fire Lancer
Mon Mar 01, 2010 10:32 pm
Forum: C++ Development
Topic: (Windows)Problem with loading an icon from resource file
Replies: 8
Views: 4413

Nope same problem :(
by Fire Lancer
Mon Mar 01, 2010 10:16 pm
Forum: C++ Development
Topic: (Windows)Problem with loading an icon from resource file
Replies: 8
Views: 4413

(Windows)Problem with loading an icon from resource file

Ive got an .ico file with images from 256*256 down to 16*16 which I wish to use for my application. I added it to a resource file, but for some reason wxWidgets seems to be unable to find it :( wxIcon icon(wxICON(IDI_APPICON)); assert(icon.Ok());//fails SetIcon(icon); But I know its there since the ...
by Fire Lancer
Thu Nov 12, 2009 4:16 pm
Forum: C++ Development
Topic: wxMenu::AppendSubMenu help string not displaying
Replies: 0
Views: 704

wxMenu::AppendSubMenu help string not displaying

Ive been adding help strings to my menu bar items which displays in the first field of the status bar when selected/mouse hovers over them. This works fine for basic items added with wxMenu::Append using the "help" parameter, however I can not get it to work with sub-menus, either though w...
by Fire Lancer
Mon Dec 01, 2008 7:47 pm
Forum: C++ Development
Topic: Limiting the values of wxTextCtrl
Replies: 3
Views: 1028

Yes I saw that, but it doesnt have the ability to limit the input to a certain range (eg -2^15 to 2^15 -1). Id rather have a validator that stops input outside this range to start with, opposed to having to check when the user presses a button or somthing. However ive found no info on how to extend ...
by Fire Lancer
Mon Dec 01, 2008 5:25 pm
Forum: C++ Development
Topic: Limiting the values of wxTextCtrl
Replies: 3
Views: 1028

Limiting the values of wxTextCtrl

How do I go about limiting the value a user can enter into a text ctrl, eg only allow integers between -2^16 and 2^16 -1 ? I want the text ctrl not to allow other things to be entered in the first place, rather than checking when the user presses the next/submit/finish/whatever button. I think I can...
by Fire Lancer
Sun Nov 23, 2008 11:51 pm
Forum: C++ Development
Topic: Window with scroll bars and zooming
Replies: 1
Views: 1131

Window with scroll bars and zooming

I need to create a window which can be scrolled up/down left/right and zoom in and out (like in an image editor). Is there some way to do this with a wxScrolledWindow and such that i can get the mouses position relative to the area inside the window (ie so i can tell which pixel of the image the mou...
by Fire Lancer
Sun Nov 23, 2008 7:51 pm
Forum: C++ Development
Topic: scroll bars
Replies: 1
Views: 894

scroll bars

Ive got a window which contains a number of custom controls. Each control is garunteed to me 64*64. What I want is for these controls to be arranged in a grid arcordingly, and for a vertical scroll bar to be added if needed. I tried doing this using a wxGridSizer, and cacluating the number of colums...
by Fire Lancer
Fri Nov 07, 2008 11:34 pm
Forum: C++ Development
Topic: printer, working out the sizes
Replies: 2
Views: 1020

How exactly is it intended that i use those to set the correct scale? I tried this however it always seems to return the paper pixel size...how can i get a correct value for previews + take into account preview zooming? GetPageSizeMM (&pageSizeW, &pageSizeH); GetPageSizePixels(&pagePixel...