Search found 42 matches

by kayamel
Wed Jun 18, 2008 11:55 am
Forum: C++ Development
Topic: wxfile, wxtextfile, something... just help me!
Replies: 7
Views: 1987

Hi,

When you are using the "run" in CodeBlocks, it looks for the attached resources in the project directory and not in the bin directory.

Regards
by kayamel
Wed Jun 18, 2008 11:50 am
Forum: C++ Development
Topic: Some questions about wxDateTime?
Replies: 2
Views: 841

Hi,

Considering for the example that the day is today

Code: Select all

    wxDateTime dt;
    dt = wxDateTime::Now();
    
    //Number of days in the month
    short int days_in_month = dt.GetNumberOfDays(dt.GetMonth());

    //ith-day in the month
    short int day_today = dt.GetDay ()
Regards
by kayamel
Tue Apr 29, 2008 4:33 pm
Forum: C++ Development
Topic: SetValue and SetStringSelection in a wxComboBox
Replies: 1
Views: 740

SetValue and SetStringSelection in a wxComboBox

Hi, I'm facing a problem when using SetValue in a combobox. In my code i define a wxArrayString for the combobox. wxArrayString cb_multiply; cb_multiply.Add(_("1")); cb_multiply.Add(_("2")); cb_multiply.Add(_("4")); cb_multiply.Add(_("8")); combo = new wxCombo...
by kayamel
Fri Apr 04, 2008 4:50 pm
Forum: Platform Related Issues
Topic: resources in the same directory not found (Linux)
Replies: 3
Views: 945

Thank your for your assistance. After much tinkering I finally got it to work. I'm new to linux and also discovering the method to do file associations so I'm trying to slowly assimilate all of this and blend them together. argv[0] alway returns an absolute path on my system, including the name of t...
by kayamel
Fri Apr 04, 2008 10:37 am
Forum: Platform Related Issues
Topic: resources in the same directory not found (Linux)
Replies: 3
Views: 945

resources in the same directory not found (Linux)

Hello all, I have all my resources in a folder which is located in the same directory as my project and also a copy in the directory where the application itself is generated. when I run the application from my IDE (CodeBlocks) to test, everything is ok (it finds the "resources" folder in ...
by kayamel
Thu Apr 03, 2008 1:30 pm
Forum: C++ Development
Topic: How to assign one vector data to anothe vector ?
Replies: 8
Views: 1511

Hi,

I'm puzzled at what you are trying to do.

Do you want to take just one element from a vector and copy it to into an element of another vector or do you want to copy all the elements of a vector to another vector ?
by kayamel
Thu Apr 03, 2008 9:39 am
Forum: C++ Development
Topic: Mouse point
Replies: 3
Views: 1197

Hi,

Try replacing event.m_x() and event.m_y() with event.GetPosition()

Regards
by kayamel
Thu Apr 03, 2008 8:53 am
Forum: C++ Development
Topic: Plotting and mouseover
Replies: 7
Views: 1377

Ok, I gave this a thought and I have come to a problem : If I have two points that have adjacent x coordinates but very different y coordinates (or vice versa), the screen display would approximate the segment with a few horizontal or vertical lines. In real math, I would get fractional coordinates ...
by kayamel
Wed Apr 02, 2008 10:31 pm
Forum: C++ Development
Topic: Plotting and mouseover
Replies: 7
Views: 1377

That's why I said I'll have to apply the code on every segment if I do it manually. With data ranging from 1024 to 4096 -> 1023 - 4095 segments for which I'll have to check for every point...

Or maybe there is something I'm not getting
by kayamel
Wed Apr 02, 2008 9:58 pm
Forum: C++ Development
Topic: Plotting and mouseover
Replies: 7
Views: 1377

Hi, No I don't plot a function actually. I'm taking a data file with columns of x and y's and just plot them. Unless there is some preset function in wxWidgets or anything else, I don't think I'll take the pain of developing something to try and get all the points by which a line passes. Also I'll h...
by kayamel
Wed Apr 02, 2008 9:21 pm
Forum: C++ Development
Topic: Plotting and mouseover
Replies: 7
Views: 1377

Plotting and mouseover

Hi, I would appreciate any idea on how to detect a mouseover when the user hover the mouse pointer over any part of a plot. To draw the plot, I'm drawing lines from point to point so a solution based on comparing the mouse position and the points would leave out the hovering over the connecting line...
by kayamel
Sat Mar 31, 2007 12:22 am
Forum: C++ Development
Topic: Access Violations in debug
Replies: 4
Views: 1038

Thanks, I'm trying to hunt them down but seems like moody bugs...
One thing you know and they just disapear like that...
by kayamel
Tue Mar 27, 2007 11:34 pm
Forum: C++ Development
Topic: Access Violations in debug
Replies: 4
Views: 1038

Hi, Here are some of the error messages I get with Code::Blocks "../../src/common/notebook.cpp(751):assert "pPage != __NULL failed in InsertPage():NULL page in wxNoteBook::InsertPage" I have two member notebooks but I don't use InsertPage() Otherwise, another one is in sizer.cpp (116)...
by kayamel
Tue Mar 27, 2007 11:40 am
Forum: C++ Development
Topic: Access Violations in debug
Replies: 4
Views: 1038

Access Violations in debug

Usually I never use debug :oops: but lately I started using it and there are loads of segmentations faults coming up. I never have any warning or compilation faults when I don't use it so I was wondering what I should do with these. Besides I have no clue for most of them as the error shown is alway...
by kayamel
Wed Mar 21, 2007 10:02 am
Forum: General Development
Topic: multiline textctrl without vertical scrollbars
Replies: 8
Views: 1504

Ah, sorry Clyde, it seems that the SetScrollbar is working actually. Thanks a lot. ONEEYEMAN : when you hit the bottom screen (on any of the two) you just go on adding lines even if you don't see it. For that I think it's just a question of deciding what's best for the user. I'll have to check what ...