Search found 113 matches

by Ugly!
Wed Feb 28, 2007 6:05 pm
Forum: C++ Development
Topic: Newbie Unicode question - Is this ok?
Replies: 9
Views: 10515

Please be aware that your source code is NOT unicode. So any character you use in there does not have to match to a unicode character per-ce as it might be displayed differently in another code page. I'm using windows XP. Isn't it supossed to be in Unicode? If it doesn't, where "is" the U...
by Ugly!
Wed Feb 28, 2007 9:35 am
Forum: C++ Development
Topic: Newbie Unicode question - Is this ok?
Replies: 9
Views: 10515

Newbie Unicode question - Is this ok?

Hi folks, I'm a little confused here. I've started using the Unicode build not long ago and I have a question/problem.
I'm using Visual C++ 2005 Express Edition.

When I do:

Code: Select all

wxLogMessage(wxT("
by Ugly!
Sun Feb 18, 2007 8:27 pm
Forum: wxCode
Topic: Using wxSQLite3?
Replies: 18
Views: 6780

Well, I have a fairly decent (good enough for this) knowledge of using SQL commands, I just don't know how I would use them using wxSQLite3. Well, then it shoudn't be that difficult... :wink: wxSQLite3Database db(wxT("mydatabase.db")); if(!db.IsOpen()) return; //Oops! db.ExecuteUpdate(wxT...
by Ugly!
Sun Feb 18, 2007 4:54 am
Forum: C++ Development
Topic: ODBC strategic question
Replies: 6
Views: 2221

Instead of ODBC you might also use DatabaseLayer to connect with your database backend if it is supported. And I think DatabaseLayer also has OBDC if you need it.

But I don't know much about ODBC

Regards, Mat
by Ugly!
Sun Feb 18, 2007 4:50 am
Forum: C++ Development
Topic: wxView question
Replies: 1
Views: 654

How are you Initializing your Frame/Dialog? Have you tried creating the Dialog right after the Creation of your frame controls?

You can also put the code in your wxApp initialization after the wxFrame/wxDialog creation.
by Ugly!
Sun Feb 18, 2007 4:36 am
Forum: wxCode
Topic: Using wxSQLite3?
Replies: 18
Views: 6780

Hi!
You should probably look for a short explanation of the SQL commands to start. Then see the specific for sqlite3.

Regards, Mat
by Ugly!
Sun Dec 10, 2006 4:56 am
Forum: wxCode
Topic: wxGrid: need to write to the cell in the left upper corner
Replies: 7
Views: 4168

Thank you, nice idea! :) But I think it may be useful to set a label at this cell, e.g. if you want to make a table containing measurements. Then you could set "x/y" as a label. Would be cool if one of the developers could implement a function like "SetTopLabel()"! Thanks. You a...
by Ugly!
Sat Dec 09, 2006 9:26 pm
Forum: wxCode
Topic: wxGrid: need to write to the cell in the left upper corner
Replies: 7
Views: 4168

THe reason i think you can't (and maybe shouldn't) add a label there, it's because it's ambigous. The label is set for the rows or for columns? No way to know. My way would be: Hide the row labels but setting its width to zero and add a column with part_numers. You'll have to add the numbers your se...
by Ugly!
Sat Dec 09, 2006 9:12 pm
Forum: wxCode
Topic: How to scrolling deevice context?
Replies: 1
Views: 831

Re: How to scrolling deevice context?

The problem is in OnDown handler function, wich should scrollling the device context 1 pixel to right and another down; ... When you say scrolling I think you mean displacement. Basically you want to move the dc 1 px right and 1 px down. There are ways to do this with a DC: - SetDeviceOrigin(1,1) a...
by Ugly!
Tue Dec 05, 2006 8:32 am
Forum: Open Discussion
Topic: wxGrid (column or row ) size to fit within wxStaticBoxSizer
Replies: 7
Views: 2905

I'll see into this. But can you post the the images again? (You can't do this from your root I think, you have to get them to a server)
by Ugly!
Mon Dec 04, 2006 7:21 am
Forum: Open Discussion
Topic: wxGrid (column or row ) size to fit within wxStaticBoxSizer
Replies: 7
Views: 2905

hi, thanks a lot for ur reply.. I had tried out your idea in my code .... But after resizing the panel , controls are not displayed correctly i.e at the top corner of panel only a very small grid is displayed..but i am having label, textctrl controls etc...in that panel which are not dispalyed ...I...
by Ugly!
Fri Dec 01, 2006 2:03 pm
Forum: C++ Development
Topic: wxWizard and translucent png
Replies: 2
Views: 1048

Try constructing the bitmap this way:

Code: Select all

 wxBitmap(wxXmlResource::Get()->LoadBitmap("mypng"),wxBITMAP_TYPE_PNG )
Have you add the png handler?

Code: Select all

wxImage::AddHandler(new wxPNGHandler);
Regards, Mat
by Ugly!
Fri Dec 01, 2006 11:09 am
Forum: Open Discussion
Topic: wxGrid (column or row ) size to fit within wxStaticBoxSizer
Replies: 7
Views: 2905

What about catching the size event for the panel and resizing the grid columns. void MyPanel::OnSize(wxSizeEvent& event ) { //this will resize the columns widths int totalWidth = m_grid->GetSize()->Width() - m_grid->GetRowLabelSize(); m_grid->SetDefaultColSize(totalWidth/m_grid->GetNumberCols(),...
by Ugly!
Wed Nov 29, 2006 1:16 am
Forum: The Code Dump
Topic: wxGrid printing - wxGridPrintout
Replies: 2
Views: 4149

wxGrid printing - wxGridPrintout

Hello wxusers, here I leave you something I've been doing for work: a wxPrintout derived class to use with wxGrid. How to use: wxGridPrintout* printOut=new wxGridPrintout(grid,wxGP_DEFAULT); wxGridPrintout* printOutForPrinting=new wxGridPrintout(grid,wxGP_DEFAULT); printOut->SetUserScale(0.75); //se...
by Ugly!
Wed Nov 08, 2006 7:05 am
Forum: C++ Development
Topic: Can't set the right width in the wxListCtrl, What's wrong?
Replies: 1
Views: 735

I think there are some problems with changing the width of an already inserted column. The way I do it, it is at insertion time: listCtrl->InsertColumn(0,wxT("My Header"),wxLIST_FORMAT_LEFT,150); /* note the 150 as the last argument*/ /*or you can modifie this later*/ listCtrl->SetColumnWi...