Re: Creating Help's Forms

2005-07-11 Thread Andre Augusto
Hello! My experience isn't much, but I create a modal form and put the text like labels and put graphics normally (in my case I show buttons with images to explain what they mean...). Then I use MenuEraseStatus(0); frmP = FrmInitForm (HelpForm);

BmpGetDensity: invalid argument

2005-07-07 Thread Andre Augusto
Hello everybody! I'm having a problem when I exit my application. I get the error Bitmap.c, Line:1082, BmpGetDensity: invalid argument. This only occurs on my TungstenC emulator, because in my real TungstenC nothing occurs. I have search on internet for this problem, without finding any

Hardware Button Code...

2005-07-06 Thread Andre Augusto
Hello everybody! Can anyone tell me how can I detect that a hardware button was pressed? I need to know this because I want to save some information when the user gets out of my application by hiting the applications button, the one who goes to the main form of My palm... Thanks a lot, André

Re: Background trigger....

2005-07-02 Thread Andre Augusto
Thanks a lot! My application will listen the internet at intervals with 15 or 20 minutes Is there a sample available for me to look up, explaining how to construct an app like this? Thanks! André Augusto Scott Erickson wrote: I have an app that sounds like it does the same thing as

Re: Release bitmap necessary?

2005-07-01 Thread Andre Augusto
I use FrmGotoForm() in all 3 Forms... It's not a real problem because sometimes the switch between the forms is so quick that I can't see that there's a problem! Thanks! Jonathan King wrote: How are you jumping from form to form? Are you using FrmPopuForm or FrmGoToForm? -- For

Background trigger....

2005-07-01 Thread Andre Augusto
Hello Everybody! I have a program that needs, from time to time, to communicate with internet automatically. The program needs to open a connection and make a query to a RemoteDatabase. What I need to know, is how to program my application to do that? Maybe it's on my AppEventLoop function...

Re: Background trigger....

2005-07-01 Thread Andre Augusto
Thanks everybody! I want to do like this: 1. Have a program that activates something like AlarmManager to listen a remote Database on the internet for some changes of information; This program will not be running. It wil be run only to activate the AlarmManager and then exit. 2. Then, after

Re: Question on Real Time Clock.

2005-06-30 Thread Andre Augusto
Use this, like I do: In your Form handle function put Char txtTime[timeStringLength]; Char finalTxtTime[timeStringLength+(5*sizeof(Char))]; DateTimeType theDate; case nilEvent: // update the time if (!gMenuOn) « This is used to know if a Form Menu is shown...

Release bitmap necessary?

2005-06-30 Thread Andre Augusto
Hello everybody! Is it necessary to release a bitmap, assigned in PilRC? I use a button with a bitmap in a form, say Form 1. Then i swith to another form, say Form 2. From Form 2 I jump to a Form3. In this jump, i can see for some micro seconds the Form1, and that button with the image. This

Re: Programatically assign a bitmap to a Button...

2005-06-29 Thread Andre Augusto
Anakym kerberos-hotmail wrote: el bitmapFamily selecciona un bitmap de una lista... pero la selecciona dependiendo del soporte de colores de tu dispositivo PDA... tienes que generar las imagenes en varios tipos de grado de color porque si no es capaz de soportar la imagen coloca cualquier

Programatically assign a bitmap to a Button...

2005-06-28 Thread Andre Augusto
Hello everybody! How can I assign a bitmap to a simple button in my application? I want to know this because I'm having problems using PilRC. The problem is: I have for example 3 bitmaps like BITMAPFAMILY ID FamilyHelpDesk header_helpdesk.bmp COMPRESS BITMAPFAMILY ID FamilyCICUA

Authentication with an Active Directory

2005-06-27 Thread Andre Augusto
Hello everybody! Can anybody tell me how can I authenticate someone that uses my application with an Active Directory Authentication (http://www.microsoft.com/windows2000/server/evaluation/features/dirlist.asp#heading3)? Are there any examples where I can learn how to do this? This

Disable a simple button with code...

2005-06-22 Thread Andre Augusto
Hello everybody! Can anyone tell me what is the function to disable a normal button in real-time ? Thanks a lot! -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Disable a simple button with code...

2005-06-22 Thread Andre Augusto
Thanks a lot! That was it! No, I wasn't talk about hardware buttons! Cheers! Robert Moynihan wrote: Andre Augusto wrote: Hello everybody! Can anyone tell me what is the function to disable a normal button in real-time ? Thanks a lot! The best way, IMO, is with FrmHideObject

Commute between application, and then back to it with same state...

2005-06-17 Thread Andre Augusto
Hello everybody!! Here is my question: I want to commute between my application and for example a web-browser, and then back to my app. How can I mantain the state, i.e., the same form I was when got out of my application? For example, I want to do the same that the program Photos that came

Re: Field with current time + Form menu

2005-06-15 Thread Andre Augusto
Thanks a lot! Here is the final code i use: In EventLoop Function .. EvtGetEvent(event, SysTicksPerSecond()); if (event.eType == winExitEvent) { if (event.data.winExit.exitWindow == (WinHandle)FrmGetFormPtr(MenuInicialForm)) {

Field with current time + Form menu

2005-06-14 Thread Andre Augusto
Hello everybody! In my application, i have a field that shows the current time, updated every second. I manage to do this by using, in the EventLoop function the code do { EvtGetEvent(event, SysTicksPerSecond()); --- if (! SysHandleEvent(event)) if

How to know the Active Form?

2005-06-09 Thread Andre Augusto
Hello everybody! I need to know how can I know what is the form I am into ,in a specific moment of my application, i.e, for instance, I have 2 Forms: FormA and FormB and I have also a function that runs on both Forms A and B. I Want the function to do different things, regarding the Form is

Re: How to know the Active Form?

2005-06-09 Thread Andre Augusto
Hello! I was using FrmGetActiveForm already, but it was giving me an error, so I get it to work by using FrmGetActiveFormID(), so now I can compare this function with the name of my Form, like if (FrmGetActiveFormID() == FormA). Thanks a lot! André Augusto Christian Lindemeier wrote:

Re: Code reference out of range... (codewarrior + C++)

2005-05-11 Thread Andre Augusto
Hello, and thanks for all your help! I followed Erico Franco's first option as I use Codewarrior v9... and it worked in a flash! Thanks for the tip! André Augusto -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Using Palm Progress Manager example...

2005-05-11 Thread Andre Augusto
Hello everybody! Can anyone give me an example how can I use the Progress Manager in my application? Or redirect me to a place that explains how? Thanks! André Augusto -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Using Palm Progress Manager example...

2005-05-11 Thread Andre Augusto
Thanks a lot! I already saw this link, but the problem is that the sample code is not there Does anyone has it? Thanks! Scott Erickson wrote: http://www.developer.com/lang/other/article.php/615961 -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: Using Palm Progress Manager example...

2005-05-11 Thread Andre Augusto
Hello! Off course I saw that code... but I thought that something was missing, as the page has a link Click here http://www.developer.com/ew_downloads/common/content/article/19990913/dc_progmgr/progress.zip for the source code for the Progress Manager sample application so I could see how

Code reference out of range... (codewarrior + C++)

2005-05-10 Thread Andre Augusto
Hello everybody! At this time, i never had problems in constructing forms and then create handle events functions for them. But recently I added a login form in my app that has 2 fields. In the AppHandleEvent(EventType * eventP) I use switch (formId) { case LoginForm:

Feasible ideia? Multiple Forms...

2005-05-06 Thread Andre Augusto
Hello everybody! I need to know if this ideia is feasible... I have 4 forms. One with a table, associated to a database that exist in my PDA. When I click in an entry, one of 3 forms appears. Those forms are related with info in the database, readed to various fields. The sequence is like 1/3

Re: Feasible ideia? Multiple Forms...

2005-05-06 Thread Andre Augusto
I think I got the ideia!! By the way, is there a simple example that you know that follows the same ideia, for me to look at? Thanks a lot! André Augusto Robert Moynihan wrote: You can certainly use the same form handler for multiple forms, or multiple handlers for one form. You just have to

Changing only one attribute from structure...

2005-05-06 Thread Andre Augusto
Hello everybody! I have a structure that contains 3 attributes. I have a form that shows the information that exist in that record, that is, the 3 attributes. I want to know how can I change only 1 attribute, without changing the other 2. I use simple API functions to create the record like

Re: Changing only one attribute from structure...

2005-05-06 Thread Andre Augusto
Thanks a lot! It worked! André Augusto Florian-Wolfgang Stock wrote: Andre Augusto [EMAIL PROTECTED] writes: Hello everybody! I have a structure that contains 3 attributes. I have a form that shows the information that exist in that record, that is, the 3 attributes. I want to know how can I

Re: Type Problems

2005-05-05 Thread Andre Augusto
Hello! I think that you must include in your project files PalmCompatibility library like #include PalmCompatibility.h Bye! Daniel Medina wrote: Hi, I'm working with CodeWarrior and have a problem with type CharPtr when I compile, Error: undefined identifier CharPtr, Where is CharPtr's

Unlock lock record

2005-05-05 Thread Andre Augusto
Hello everybody! How can I unlock a record from being locked? Thanks a lot! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Unlock lock record

2005-05-05 Thread Andre Augusto
Sorry... don't bother to answer... it was so obvious... Bye Andre Augusto wrote: Hello everybody! How can I unlock a record from being locked? Thanks a lot! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Simple code in Pascal - C

2005-05-04 Thread Andre Augusto
Thanks for your help! One more thing... can you tell me if this function is correct? void SetFieldValue( FieldPtr field, UInt16 fieldLen, UInt16 *Offset) ///Problema em ler o valor Offset { MemHandle FieldTextHandle; const char* FieldText; DBRecordPtr RecordPtr; FieldTextHandle =

Re: Simple code in Pascal - C

2005-05-04 Thread Andre Augusto
Ok! Thanks to everybody for your help! See ya! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Simple code in Pascal - C

2005-05-03 Thread Andre Augusto
Ok! Let's see if I can explain myself. I put some Pascal code to C, but I have some problems when using an offset value, because i don't know very well how to use pointers ===In pascal I have a struct like this: type TEmptyRecord = record Rating : UInt16; // is beeing use to draw a

Re: Simple code in Pascal - C

2005-05-03 Thread Andre Augusto
Let me see... The problem is due to put PASCAL to C. If you see in Pascal functions, I put an arrow pointing some problems, as I don't know if the code I put in C is or isn't correct... =For example, there is an error in the SaveFieldValue(FieldPtr field, UInt16 Offset) function in the lines

Simple code in Pascal - C

2005-05-02 Thread Andre Augusto
Hello! Can anyone help on translating a simple program made in Pascal, to C . I have already done almost the work with this tranlation, but there are some problems, regarding some pointers that I can't solve Please tell where can I send my project, and Pascal files Thanks a lot! André

Re: Simple code in Pascal - C

2005-05-02 Thread Andre Augusto
Andre Augusto wrote: Hello! Can anyone help on translating a simple program made in Pascal, to C . I have already done almost the work with this tranlation, but there are some problems, regarding some pointers that I can't solve Please tell where can I send my project, and Pascal files

Table - chars and numbers

2005-04-30 Thread Andre Augusto
Hello everybody! I have a table and I use a function to draw some caracters taken from a structure ... case 1: //UnidadeColumn WinDrawTruncChars( RecordPtr-Unidade, StrLen(RecordPtr-Unidade),bounds-topLeft.x,bounds-topLeft.y,TblGetColumnWidth((TablePtr)table, UnidadeColumn));

Translation code problems...

2005-04-29 Thread Andre Augusto
Hello everybody! I have a little problem in my hands! A friend of mine ask me to translate a Palm programm writen in Pascal, to C! But i don't remember very well some things associated with that language! I have a struct like this type TEmptyRecord = record Rating : UInt16; Name :

Re: Table with scroll capabilities - please help

2005-04-27 Thread Andre Augusto
or redirect me to the right location where i can find an example. Andre Augusto wrote: Hello everybody! I have an application that has a table with fields, and I would like to give the table scroll down/up capabilities... How can I do that? Can anyone give me an example, or a link for me

Re: Table with scroll capabilities - please help

2005-04-27 Thread Andre Augusto
Augusto Manpreet wrote: Hi Andre Augusto, You can look into the sample applications that come with Codewarrior. They should contain enough material to start with. These link may also help: http://mega.ist.utl.pt/~ic-asc/docs/palmos%20dev%20documentation/UserInterface.html#943701 http://www.experts

Browser with popup support...

2005-04-26 Thread Andre Augusto
Hello everybody!!! Does anyone know if there is a browser that supports Popups, for Tugsten C? Thanks a lot! André Augusto -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Table with scroll capabilities

2005-04-26 Thread Andre Augusto
Hello everybody! I have an application that has a table with fields, and I would like to give the table scroll down/up capabilities... How can I do that? Can anyone give me an example, or a link for me to know how to do that? I'm using Codewarrior and C++. Thanks a lot, André Augusto -- For

Constructor equivalence... PilRC designer

2005-04-23 Thread Andre Augusto
Hello! Can anyone tell me what is the equivalent of App Info String List (Constructor for PalmOS) in PilRC Designer. Thanks everybody! André Augusto -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Simple field with scrollbar

2005-04-21 Thread Andre Augusto
Hello everybody! I have a doubt and I hope someone can solve this problem. I want to construct a form with 10 fields, from top to bottom, but I don't want to put them in a table. But some fields will be at the bottom of the screen, and so they won't appear... Is it possible to do a ScrollBar to

Scroll up/down code error

2005-04-20 Thread Andre Augusto
Hello everybody! I want to do a scroll up and down, but theres something with my code... The compiler says: illegal use of incomplete stuct/union/class 'struct Control.Type' relative to the line (2) What am I doing wrong? Thanks to everybody! André Augusto switch(

Re: List with scroll... error in code (illegal conversions....)

2005-04-18 Thread Andre Augusto
Hello, and thanks for the Tip!!! By the way, usually this errors appear to me because I have some examples written in C, but I compile to C++, because of some libraries that I must use in my application. In some cases, I have also an error with he function GetObjectPtr. For example, the next

List with scroll... error in code (illegal conversions....)

2005-04-17 Thread Andre Augusto
Hello everybody! I'm trying to construct a list with a scrollbar. But there's something wrong with my code! In the marked line, I get an error saying illegal implicit conversion from 'void *' to char *. I can I solve this problem? I'm programming in C++, with Codewarrior v9. Thanks everybody!

Default field text

2005-04-13 Thread Andre Augusto
Hello everybody! Is there any pre-made PALM function that can I use to wright a default text in some fiels in a form? Thanks a lot! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Default field text

2005-04-13 Thread Andre Augusto
Andre Augusto wrote: Hello everybody! Is there any pre-made PALM function that can I use to wright a default text in some fiels in a form? Thanks a lot! I manage to do that, doing this: FieldType *field; const char *fieldDescription = Dolce Vita; UInt16 fieldIndex; fieldIndex

Re: Default field text

2005-04-13 Thread Andre Augusto
Thanks a lot! I had to change some lines, because I'm programming in C++... UInt16 object = FrmGetObjectIndex(frmP, objectID); field = (FieldType *)FrmGetObjectPtr(frmP, object); A.Kazantsev wrote: Andre, There is no API like that you are asking about. However, the following

SetField function error... (codewarrior)

2005-04-13 Thread Andre Augusto
Hello everybody! I keep getting an error in this function, and I don't know why!!! This function is used to put in a field some data from a database read with another function... The compiler show me this error: function call 'StrCopy({lval} char *, {lval} void *)' does not match

GetField error in C++ (codewarrior)

2005-04-12 Thread Andre Augusto
Hello everybody! I want to use the next funciton, in a C++ app for Palm, using Codewarrior v9. The problem is when I compile the project, there is an error that I can't solve. The function is intended to read the text from a field. In the last line of the function, the debug doesn't like the ,

C++ Save to Database, from field (codewarrior) problems

2005-04-12 Thread Andre Augusto
Hello everybody! I'm bit frustrated because my app is giving me problems It compiles without any errors. I have a function to get text from a field and another function to save the text to a database. But when I call the InsertRecord() function, the simulator craches (I also try the code in

Re: C++ Save to Database, from field (codewarrior) problems

2005-04-12 Thread Andre Augusto
db; and all worked fine!!! André Augusto Chris Tutty wrote: From: Andre Augusto [EMAIL PROTECTED] I have a function to get text from a field and another function to save the text to a database. But when I call the InsertRecord() function, the simulator craches (I also try the code in PDA

Form, fileds and scroll

2005-04-05 Thread Andre Augusto
Hello everybody! Is it possible for me, without using a table, to use for instance 10 fields in a form, and do a scroll down function, to see all the fields, if they don't apear in the screen? How can I do this? Thanks to everybody! -- For information on using the Palm Developer Forums, or to

Data Base entrys...

2005-03-29 Thread Andre Augusto
Hello. Can anybody help? What are the steps for me to construct a database with the next items: [mastamp] [char] (25) DEFAULT (''), [utecn] [numeric](4, 0) DEFAULT (0), [aglocal] [varchar] (55) DEFAULT (''), [agente] [bit] DEFAULT (0), [dataump] [datetime] DEFAULT

Re: Codewarrior IDE - Connection Attempt failed.

2005-03-04 Thread Andre Augusto
Usually when that happens to me, I use the right button of the mouse in the upper part of the emulator and do a soft reset and then the Codewarrior Message disapears! With that, you don't need to close the emulator. I use TungstenC emulator... André prabakar.mp wrote: Hi, Sometimes When I run

Exit Application

2005-02-28 Thread Andre Augusto
Hello! I need to know how can I exit an application from anywhere, like, appStop I want to have in a menu, a Shortcut from where I can exit the program! Thanks a lot -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: Exit Application

2005-02-28 Thread Andre Augusto
Andre Augusto wrote: Hello! I need to know how can I exit an application from anywhere, like, appStop I want to have in a menu, a Shortcut from where I can exit the program! Thanks a lot Ups... I was doing something wrong, but now I know how it's done! Thanks -- For information on using

Progress Bar code

2005-02-20 Thread Andre Augusto
Hello! Can anyone tell me where can I find some code regarding progress bar, especialy in C language, to use with codewarrior? Thanks! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Palm OS Cobalt for Tungsten C?

2005-02-09 Thread Andre Augusto
Janos Vajda wrote: Is there any way that Cobalt can be run on the Tungsten C? I need WPA support to connect to my home network and it seems that cobalt is the only OS that supports 3rd party WPA access. Any help would be appreciated. Thanks. Hello. I need to know where can I get information