Search found 73 matches

by jazz
Mon Sep 05, 2005 11:42 pm
Forum: C++ Development
Topic: Bitmap buttons with no borders?
Replies: 2
Views: 1213

Remove the button wxBU_AUTODRAW style, use 0 for the style value. Ok, I think I know what's going on now. You're right, but I already had only wxNO_BORDER as the style which removes the wxBU_AUTODRAW. According to the documentation, this will only work on Win32 and I'm writing this for Linux. Not t...
by jazz
Mon Sep 05, 2005 5:11 am
Forum: C++ Development
Topic: Bitmap buttons with no borders?
Replies: 2
Views: 1213

Bitmap buttons with no borders?

I'm using bitmap buttons on a menu and have them set wxNO_BORDER and they look exactly how I want them to. That is, until the mouse pointer hovers over the button. This causes a 3D border to appear around the bitmap I've loaded and totally destroying the look of my app. I'd like to turn this off so ...
by jazz
Wed Aug 31, 2005 1:04 am
Forum: Compiler / Linking / IDE Related
Topic: Newbie: Why 800KBs binary?
Replies: 8
Views: 1576

The project i'm currently working on has about 5000 lines of code and includes about 16 WX headers giving me a debuggable executable of about 1.6meg. If i manually edit the Makefile and remove all the little '-g's, i builds at 400k. :D Removing the -g flags from the Makefile has the same result as u...
by jazz
Wed Aug 31, 2005 12:53 am
Forum: Compiler / Linking / IDE Related
Topic: IDE for Linux
Replies: 12
Views: 2427

Currently using Kdevelop but have never used anything else. I'm going to check out that Anjuta thing upCASE suggested though.
by jazz
Tue Aug 30, 2005 2:19 am
Forum: C++ Development
Topic: wxODBC: Identifying an inserted row
Replies: 7
Views: 1816

Hey, jazz, Why don't you use "autoincrement" field type and forget about the problem? Thank you. Umm.. dood.. U've already posted that, and I replied saying why i can't.. I NEED THE INCREMENTED VALUE TO BE RETURNED!!! That's the whole problem. The field already IS autoincrementing, but I need to kn...
by jazz
Wed Aug 17, 2005 2:19 am
Forum: Announcements and Discoveries
Topic: Almas Designer Version 0.8 released (not a preview anymore!)
Replies: 22
Views: 5573

I have to agree with metalogic. I've been looking for a GUI designer and there's so many to choose from and none of them either do what I want or even build properly. Anywayz, I just wanted to mention that Almas falls into the "doesn't build at all" category. I keep getting "no matching function cal...
by jazz
Tue Aug 16, 2005 12:46 am
Forum: C++ Development
Topic: wxODBC: Identifying an inserted row
Replies: 7
Views: 1816

jazz, First of all, you coukld define you field as "AutoIncrement", so you will always know what will be the next value of this field before you insert record. After looking at you code more closely, I am not sure what you are trying to achieve. Could you post the exact table structure you are work...
by jazz
Thu Aug 11, 2005 12:27 am
Forum: C++ Development
Topic: wxODBC: Identifying an inserted row
Replies: 7
Views: 1816

What kind of DBMS you are using? Thank you. PostgreSQL. I'm currently working on using a query to getnextval('table_field_seq') to get the next sequence value BEFORE i update the database, but this will only work on Postgres as far as I'm aware. Which is fine for me, but I always like to be as gene...
by jazz
Thu Aug 11, 2005 12:20 am
Forum: C++ Development
Topic: wxodbc get number of rows
Replies: 3
Views: 992

http://www.wxwidgets.org/manuals/2.6.1/wx_wxdbtable.html#wxdbtablecount If you're using wxDbTable::QueryBySqlStmt like i am, this is useless as it does not know about the WHERE part of your SQL statement and will just return all rows in the table. To that end, I came up with this exrtemely simple f...
by jazz
Wed Aug 10, 2005 2:41 am
Forum: wxDev-C++
Topic: Gauge doesn't update...
Replies: 17
Views: 3839

Entering any value causes the whole program to segfault. My question is...... WHAT THE!?!?!? You need to check the value to make sure whether it is with in the interval of the Min and Max value of Gauge. If not, you are sure of getting runtime errors. -Guru Kathiresan I have 2 things to say to that...
by jazz
Wed Aug 10, 2005 2:34 am
Forum: C++ Development
Topic: wxODBC: Identifying an inserted row
Replies: 7
Views: 1816

wxODBC: Identifying an inserted row

Hi all, I seem to have this problem in just about every language and database combination I've worked with and it's annoying to say the least. Basically I need to identify a row that I have just inserted using the wxDb::Insert() member. The row is inserted correctly but the cursor stays pointing to ...
by jazz
Thu Jul 28, 2005 4:06 am
Forum: C++ Development
Topic: wxDbTable::SetColDefs does not support SQL_VARCHAR? WTF!?
Replies: 0
Views: 454

wxDbTable::SetColDefs does not support SQL_VARCHAR? WTF!?

Ok, for now I've got a work-around in place for this but this seem totally weird so I thought I'd bring it up. I'm writing a sort of database abstraction layer that allows me to use standard SQL queries that get chopped up and passed to a wxDbTable object. So far everything is working great. I have ...
by jazz
Tue Jul 26, 2005 3:16 am
Forum: C++ Development
Topic: Problem with WxDb and WxDbTable
Replies: 2
Views: 830

Re: Problem with WxDb and WxDbTable

Here's the source code wxChar PRIV[1]; wxString result; /* Here's the rest of the code, query, getnext() and other controls */ if (!db->GetData(2, SQL_C_CHAR, &PRIV, 0, &cb1)){ er->generaErrore("Error","!!!???!!!!???"); //this is to show an error return; } result=PRIV[0]; //but the result is always...
by jazz
Sun Jul 24, 2005 10:47 pm
Forum: Compiler / Linking / IDE Related
Topic: Cross-compile woes: Compile on Linux for Windows or Linux
Replies: 5
Views: 1351

seperate the linux libraries from the cross-compile libraries. an easy way is to install them in differnet places like ./configure --prefix=/cross and in your makefile, seperate out the cross-compiled build from the linux native build. because what I think is happening, is that when you compiled fo...
by jazz
Mon Jul 18, 2005 5:13 am
Forum: Compiler / Linking / IDE Related
Topic: Cross-compile woes: Compile on Linux for Windows or Linux
Replies: 5
Views: 1351

Ok.. I took another crack at this today and still no joy. I have the full wxWidgets-2.6.1 source which I compile using: ./configure --with-msw --target=i586-mingw32msvc --host=i586-mingw32msvc --build=i386-linux --with-odbc make make install This compiles and installs without problems. Then compilin...