PulkoMandy | a3e9cfe | 2023-04-10 10:01:36 +0200 | [diff] [blame] | 1 | BeDC |
| 2 | |
| 3 | Written By: Magnus Landahl |
| 4 | Copyright © Magnus Landahl - Stockholm 2000 |
| 5 | This application is FreeWare! |
| 6 | |
| 7 | Version 1.0 |
| 8 | |
| 9 | |
| 10 | New features in Ver 1.0 |
| 11 | Cut/Copy/Delete has been added. |
| 12 | Full implementation of drag and drop. |
| 13 | You´re now able to dump BMessages and send format strings like printf. |
| 14 | A 'windows always on top' property has been added. |
| 15 | And a lot of other improvments... |
| 16 | |
| 17 | Installation: |
| 18 | Drop the BeDC.h file in the link or copy the file to /boot/deveop/headers/ |
| 19 | |
| 20 | How to use: |
| 21 | All you have to do is to create an BeDC object and use that one to send messages. It´s that simple. |
| 22 | An quick example: |
| 23 | |
| 24 | BeDC dc; |
| 25 | dc.SendMessage("It just works!!!"); |
| 26 | |
| 27 | First some defines: |
| 28 | Colors: |
| 29 | White = DC_WHITE |
| 30 | Black = DC_BLACK |
| 31 | Blue = DC_BLUE |
| 32 | Red = DC_RED |
| 33 | Yellow = DC_YELLOW |
| 34 | Green = DC_GREEN |
| 35 | |
| 36 | Message types: |
| 37 | Normal message = DC_MESSAGE |
| 38 | Success message = DC_SUCCESS |
| 39 | Error message = DC_ERROR |
| 40 | |
| 41 | The constructor: |
| 42 | |
| 43 | BeDC(const char *name, int8 color); |
| 44 | 'name' is the display name, it could be what ever you want. Default is: "Application" |
| 45 | 'color' is the color of the head. If you don´t specify a color BeDC will use the defaut head color. |
| 46 | |
| 47 | Member functions: |
| 48 | |
| 49 | SendMessage(char *text, int8 type); |
| 50 | Sends a normal message. |
| 51 | |
| 52 | SendSeparator(); |
| 53 | Adds a separator. |
| 54 | |
| 55 | SendInt(Int32 / Int64 integer, const char *description, int8 type); |
| 56 | Sends an int32 or int64. If you don´t specify a description BeDC will print "Integer" |
| 57 | |
| 58 | SendPoint(BPoint point, const char *description, int8 type); |
| 59 | Sends a BPoint. If you don´t specify a description BeDC will print "Point" |
| 60 | |
| 61 | SendRect(BRect rect, const char *description, int8 type); |
| 62 | Sends a BRect. If you don´t specify a description BeDC will print "Rectangle" |
| 63 | |
| 64 | SendFormat(const char *text, ...); |
| 65 | SendFormatT(const char *text, int8 type, ...); |
| 66 | Sends a format string like printf. SendFormatT is used when you want to specify the message type. |
| 67 | |
| 68 | DumpBMessage(BMessage *Message, const char *desc = "", int8 type = DC_MESSAGE); |
| 69 | Dumps a BMessage... |
| 70 | |
| 71 | |
| 72 | Contact: |
| 73 | E-Mail : magnus.landahl@swipnet.se |
| 74 | |
| 75 | |
| 76 | BeDC History: |
| 77 | |
| 78 | Ver 0.9b |
| 79 | BeDC now saves the current state on exit, including window contents. |
| 80 | You´re now able to customize the colors BeDC use including background color. |
| 81 | Save to file has been added. |
| 82 | Some minor bugs has been fixed. |
| 83 | |
| 84 | Ver 0.8.1b |
| 85 | A couple of small bugs fixed. |
| 86 | |
| 87 | Ver 0.8b |
| 88 | First public release. |
| 89 | |
| 90 | |