Thanks for the answers...Its working now, i have needed to add the button procedure to the class, under public worked well... Also, i was having problems, but then i saw that it was needed to specify (Sender:TObject) Then worked... I've used:
fpc -Fu/usr/local/share/lazarus/lcl/units/powerpc-darwin -Fu/usr/ local/share/lazarus/lcl/units/powerpc-darwin/gtk -Fl/sw/lib -Fl/usr/ X11R6/lib tests.pas
And compiled, and runs, but the button dont shows... So what i did was add:
BUTTONS1 := TButton.Create(FORM); (FORM is the variable i've created for FORMCLASS... ) Compiles but button still dont exist..Then at last looking on lazarus, button events/methods etc.. i sae Parent.. then wrote after Create(Self)
BUTTONS1 := TButton.Create(Self);
BUTTONS1.Parent:=FORM;
And after that, everything worked fine, and the button is there....
After all of this, i did a test, to see if i can compile ussing
Carbon, (i have the lcl compiled and ive tested on lazarus with
sucess for textbox, buttons and checkboxes) and well, used this:
fpc -Fu/usr/local/share/lazarus/lcl/units/powerpc-darwin -Fu/usr/ local/share/lazarus/lcl/units/powerpc-darwin/carbon -Fl/sw/lib -Fl/ usr/X11R6/lib tests.pas
Just changed the /units/powerpc-darwin/gtk to /units/powerpc-darwin/ carbon and well i got these errors....
Linking tests /usr/bin/ld: Undefined symbols: _ActivateWindow _CallNextEventHandler _CreateEvent _DisposeEventHandlerUPP _GetApplicationEventTarget _GetCurrentEventTime _GetCurrentKeyModifiers _GetEventClass _GetEventDispatcherTarget _GetEventKind _GetEventParameter _GetGlobalMouse _GetKeyboardFocus _GetMainEventQueue _GetNextWindow _GetWindowList _InstallEventHandler _IsWindowActive _NewEventHandlerUPP _PostEventToQueue _QuitApplicationEventLoop _ReceiveNextEvent _ReleaseEvent _RemoveEventHandler _RunApplicationEventLoop _SendEventToEventTarget _SetEventParameter _YieldToAnyThread _GetControlEventTarget _GetWindowEventTarget _CFRelease _CFStringCreateWithCString _CreatePushButtonControl _CFStringGetCString _CFStringGetCStringPtr _CFStringGetLength _CopyControlTitleAsCFString _DisposeControl _HIViewGetBounds _SetControlBounds _SetControlTitleWithCFString _SetWindowBounds _CreateNewWindow _DisposeWindow _SetWindowResizeLimits _SetWindowTitleWithCFString _ShowWindow _CreateCheckBoxControl _CreateEditUnicodeTextControl _GetControl32BitValue _GetControlData _SetControl32BitValue _SetControlData _GetControlProperty _GetWindowProperty _IsValidControlHandle _RemoveControlProperty _RemoveWindowProperty _SetControlProperty _SetWindowProperty _DisposeControlActionUPP _GetCurrentEventButtonState _GetRootControl _GetWindowBounds _HIViewConvertPoint _HIViewGetSuperview _HIViewGetViewForMouseEvent _HIViewGetWindow _NewControlActionUPP tests.pas(71,2) Error: Error while linkingError: /usr/local/bin/ppcppc returned an error exitcode (normal if you did not specify a source file to be compiled)
What this can be? Thanks for all your help guys. Roberto.
tests.pas
Description: Binary data
