Newbie Developer Forum

This forum will be closed shortly. Please post all development related questions and/or discussion on the Haiku Development, or Haiku 3rd party Development mailing lists.

bmessage confusion

Forum thread started by Remco.Johannes on Tue, 2014-06-03 21:09

hi,

I did read the last few weeks 3 haiku developer ebooks and one general c++ book, so lets the fun get started.

How does a button know that the bmessage past in by contructor is ment for the buutonclick?
What you pass in is a new message with a 4 letter user defined acronym, so confussing

where i can think of is: click is the only "event", or there is a standard event when not specified.

Remco J

PS is there a forum/thread when people introduce themself ?

messaging

Forum thread started by Remco.Johannes on Tue, 2014-06-03 20:48

Hi,

I got a fquestion (well... a lot but start with one) about message-ing in haiku.


when you create for example a button like this

BButton *button = new BButton(BRect(10,10,11,11),"button","Click Me!"
, new BMessage(M_BUTTON_CLICKED));
and handling like yhis
MessageReceived(BMessage *msg)
{
switch(msg->what)
{
case M_BUTTON_CLICKED:
{
// blablabla
}
}
}
how does the button "knows" that the passed in bmessage is associated with the click.
Is this a standard "event" or is there only 1 "event" (click) or........confused

I hope my q is understabable

Remco J

Porting old BeOS code to latest Haiku nightlies

Forum thread started by Earl Colby Pottinger on Tue, 2014-05-27 20:12

Hello,
Since I got my new computer last month I decided to get back into coding. I want to clean up my old code and start on some new programs for Haiku-OS.

Mind you I don't claim to be a great programmer, but I have created some programs in the past to help me with certain problems.

However, I seem to have a real problem with my more advance programs.

All of these programs compiled okay under BeOS, but they spam out tons of errors when I try to compile them on Haiku-OS. Worse, some will compile under GCC2 but fail under GCC4.

While I have figured out some of the errors most of them leaves me at a lose.

Yes, I know it is certainly my fault in not getting some simple little thing, but I need help.

I have gone thru the online guides, but they don't answer enough questions.

While I can post on the mailing list, I want to include the source code, and a dump of the terminal report. Is it okay to give large attachments to the mailing list? Are zip files okay?

PS. It is my GUI code that seems to have the most problems.

How to create a new filetype

Forum thread started by lelldorin on Thu, 2014-03-20 19:59

Hello guys,

how i can create a own fieltype for my applications?

Greetings Lelldorin

CaesarIA

Forum thread started by dalerank on Thu, 2014-01-23 19:01

I made remake Caesar3 (see here http://steamcommunity.com/sharedfiles/filedetails/?id=201200943&searchtext=)
sometime ago i try compile game for haiku, after resolving some troubles i did it.
now i have caesaria.bin, but when i try execute binary i have this message "Cannot start application. library libfreetype.so no found". Where i have mistake???
environment: gcc4.7.3, cmake, git
screenshots of error upload later.
Thanks for help.

Reviving the yab community

Forum thread started by HaikuForever on Mon, 2013-11-25 13:50

Whatever happened to yab? It used to be Haiku's favorite programming language for newbies, and now it is all but forsaken. Apart from a few users (like Lelldorin), nobody seems to be exploiting yab's wonderful potential.

Is anyone out there still interested in yab? I am, and I would like to get in touch with other yab people, to revive the yab community.

Please reply to this thread if you are interested in yab.

Nightly Images (with GCC4) or A4 (with GCC2) to develop apps?

Forum thread started by slooksterpsv on Tue, 2013-11-19 17:14

What's the best one to use? Is GCC4 going to be the primary GCC for Haiku or is GCC2 still going to be used? I have a few apps I want to develop on Haiku but need to know which to use to push out my programs. I want to assume the Nightly Images due to it having the latest GCC available, but wanted to find out first.

Thanks,

Shawn

Syndicate content