Search found 23 matches

by anna
Fri Feb 20, 2009 11:04 am
Forum: C++ Development
Topic: How to save bmp n gif file as jpg?
Replies: 1
Views: 429

How to save bmp n gif file as jpg?

hi.. I use : wxFileDialog wxfiledlg(this); wxfiledlg.ShowModal() to load dialog and wxfiledlg.GetPath() to get the pathname.... i use wxFileName::GetExt to get my file extension. im using only image files....(jpg, bmp, gif formats) Is there someway i can save gif n bmp images as jpg and use it ? (if...
by anna
Fri Feb 20, 2009 9:48 am
Forum: C++ Development
Topic: How do i get the file or image extension?
Replies: 3
Views: 594

How to show only image files when selecting files ?

hi...

Ive got a wxButton in my dialog to upload images...
im using wxFileDialog::ShowModal()

but i want my file dialog to show only image files...
How do i do it?

this is my code :

wxFileDialog wxfiledlg(this);
wxfiledlg.ShowModal();
by anna
Fri Feb 20, 2009 6:46 am
Forum: C++ Development
Topic: How do i get the file or image extension?
Replies: 3
Views: 594

How do i get the file or image extension?

hi all... There is a wxButton on my dialog that shows a wxFileDialog. I extracted the file pathname by: wxFileDialog::GetPath Now i want to extract the image in the file. So i used wxImage::LoadFile and i extracted the image's height and width. Now i want the file or image extension... ie. .ini, .pn...
by anna
Fri Jan 23, 2009 9:24 am
Forum: C++ Development
Topic: Modal dialog n modelless dialogs same?
Replies: 1
Views: 449

Modal dialog n modelless dialogs same?

hi... There are two kinds of dialog -- modal and modeless. A modal dialog blocks program flow and user input on other windows until it is dismissed, whereas a modeless dialog behaves more like a frame in that program flow continues, and input in other windows is still possible. To show a modal dialo...
by anna
Fri Jan 23, 2009 7:22 am
Forum: C++ Development
Topic: how to make a Modal Dialog a System dialog?
Replies: 1
Views: 384

how to make a Modal Dialog a System dialog?

hi..

Im using a wxWidgets Modal dialog
its called using ShowModal();

But my Dialog is an application dialog....
how do i convert it to system dialog?
by anna
Mon Jan 05, 2009 4:04 am
Forum: C++ Development
Topic: how to check validity of text in wxTextCtrl in EVT_TEXT
Replies: 4
Views: 956

well my dialog is used to set page info... before printing.. there is a TextCtrl where ive to enter the starting page.... even b4 clicking the ok button of dialog.. i need to check the validity of entered no.... I need TO CHECK THESE: 1) the default value has to be set to 1 2) also, if the value ent...
by anna
Fri Jan 02, 2009 10:51 am
Forum: C++ Development
Topic: using wxFocusEvent and wxMouseEvent event macros
Replies: 1
Views: 562

using wxFocusEvent and wxMouseEvent event macros

hi.... i need to use MouseEvents and wxFocusEvent. Now wxFocusEvent's event handlers are : EVT_SET_FOCUS(func) EVT_KILL_FOCUS(func) so it can be applied to a window right??? how do i apply it to a control? If the event handler was like this: EVT_SET_FOCUS(id,func) - it was easy. now how do i do it? ...
by anna
Fri Jan 02, 2009 10:31 am
Forum: C++ Development
Topic: how to check validity of text in wxTextCtrl in EVT_TEXT
Replies: 4
Views: 956

how to check validity of text in wxTextCtrl in EVT_TEXT

hi... i need some help i have a dialog box .. with some controls. there is a wxTextCtrl. now i need to extract the text from it and check if the value is valid. If the value is valid- i have to display it. else display "Error" in the TextCtrl. Ive to do this in EVT_TEXT itself. how do i achieve it? ...
by anna
Thu Dec 18, 2008 3:47 am
Forum: C++ Development
Topic: Inserting values to ComboBox loaded using XRC
Replies: 3
Views: 867

Setting TextCtrl style to password (accept input as asterix)

thanks.... but can u tell me one more thing... how can u set the style of TextCtrl to Password?? (accept input as asterix ) ive done it by editing xrc.. how do i do it in code? i tried getting the pointer to control by: XRCCTRL(window,id,type).... then i called SetStyle() ... since it dint work... i...
by anna
Tue Dec 16, 2008 10:01 am
Forum: C++ Development
Topic: Inserting values to ComboBox loaded using XRC
Replies: 3
Views: 867

Inserting values to ComboBox loaded using XRC

hi........... Ive created a ComboBox in a dialog in RC(Windows) file.... and entered values to it... Ive converted the RC file to XRC using convertrc tool of wxWidgets... the data i entered into the combobox is not present in the xrc... why is it???? Now i load the XRC file..... n the corresponding ...
by anna
Fri Dec 05, 2008 11:44 am
Forum: C++ Development
Topic: using wxWidgets-2.8.9\contrib\utils\convertrc
Replies: 0
Views: 336

using wxWidgets-2.8.9\contrib\utils\convertrc

Im creating dialogs and stuff using in visual studio rc files...... all the info is stored in resource.rc after makin them...i convert it to XRC using wxWidgets - contrib\utils\convertrc.... i got resource.xml... i load it in my code using wxXmlResource... n it works..... but there are few things th...
by anna
Thu Dec 04, 2008 5:25 am
Forum: C++ Development
Topic: loading XRC file to project
Replies: 2
Views: 532

thank u....
i had to give the full pathname..
wen i did it worked
by anna
Wed Dec 03, 2008 11:07 am
Forum: C++ Development
Topic: loading XRC file to project
Replies: 2
Views: 532

loading XRC file to project

hi... i used wxFormBuilder to generate a dialog ... so the corresponding c++ and XRC files got generated.... how do i now incorporate in my proj? ive added... #include "wx/xrc/xmlres.h" and wxXmlResource::Get()->InitAllHandlers(); wxXmlResource::Get()->Load("WidgetGUI.xrc"); wxDialog Dlg; wxXmlResou...
by anna
Fri Nov 28, 2008 11:13 am
Forum: C++ Development
Topic: Convert RC files to XRC
Replies: 1
Views: 593

Convert RC files to XRC

In wxWidgets 2.8.9 HTML documentation... UNDER THE TOPIC XML-based resource system overview /XRC concepts /To create an XRC file, you can use one of the following methods.... ITs given..... convert WIN32 RC files to XRC with the tool in contrib/utils/convertrc now after coverting it ... how do i loa...
by anna
Wed Nov 26, 2008 10:02 am
Forum: C++ Development
Topic: adding menubar and toolbar to frame
Replies: 7
Views: 1622

wxWidget tools

there r other tools too... ive checked... Open Tools: wxFormBuilder, wxDev-C++, Code::Blocks, wxGlade, XRCed, VisualWX Available Proprietary Tools: wxDesigner, DialogBlocks, wxForms, uiVersalBuilder but i want the code to be developed in WINDOWS and later run in MAC OSX without much change... So whi...