Posts

Showing posts with the label Delphi Developers: Delphi FMX Windows / OSX

10.3 Rio Bluetooth not working on macOS Mojave?

Image
10.3 Rio Bluetooth not working on macOS Mojave? Hi, I tried all BlueTooth examples available with 10.3 Rio on my Mac (Xcode 10.1) but none of the them, compiled to Windows or macOS, work. Each time I click the scan button to list all available BlueTooth devices, I get a dialog box stating: Error BlueTooth device not found: disconnected or turned off. My BlueTooth card on my Mac is turned on and fully functional.  Can anybody here use BlueTooth functionalities with Rio 10.3 on a Mojave macOS machine with Xcode 10.1? Or do you face the same problem? Thanks for any help. Steve

I have problems when using RAD Studio 10.

I have problems when using RAD Studio 10.2 with Mac OS Mojave 10.14. I Get dccosx fatal error for a any application compiled. I have installe xcode 10.1 and PAserver, network connection is also established. Can any one help

I have problems when using RAD Studio 10.2 with Mac OS Mojave 10.14. I Get dccosx fatal error for a any application compiled.

I have problems when using RAD Studio 10.2 with Mac OS Mojave 10.14. I Get dccosx fatal error for a any application compiled. I have installe xcode 10.1 and PAserver, network connection is also established. Can any one help

Hello

Hello, I have a trouble wirh FMX.WebBrowser on windows. I have a Form > TabControl > TabITem > WebBrowser and when I close form receive erros like: FMX.WebBrowser.TWBFactoryService.RealignBrowsers FMX.WebBrowser.TWBFactoryService.FormActivateHandler(???,???) how can I avoid it. On Mac works well the same code. Thank you

Just got a brand new shiney Huawei P20 Pro phone.

Just got a brand new shiney Huawei P20 Pro phone. Quite a good beast, but when I try to debug programmes with Rad/Delphi, it compiles and links the programme, copies it to the phone, starts it running, then sits on the Delphi screen with the "Run" window. Nothing happens. When I press "Cancel", I get the message "Cannot start gdbserver on port 62311 (or whatever - I can't remember) - port already in use. Any ideas about how to get gdbserver running happily again please?

Just got a brand new shiney Huawei P20 Pro phone. Quite a good beast, but when I try to debug programmes with Rad/Delphi, it compiles and links the programme, copies it to the phone, starts it running, then sits on the Delphi screen with the "Run" window. Nothing happens. When I press "Cancel", I get the message "Cannot start gdbserver on port 62311 (or whatever - I can't remember) - port already in use.

Just got a brand new shiney Huawei P20 Pro phone. Quite a good beast, but when I try to debug programmes with Rad/Delphi, it compiles and links the programme, copies it to the phone, starts it running, then sits on the Delphi screen with the "Run" window. Nothing happens. When I press "Cancel", I get the message "Cannot start gdbserver on port 62311 (or whatever - I can't remember) - port already in use. Any ideas about how to get gdbserver running happily again please?

I've posted the code for the simple test application previously, but can provide if necessary.

I've posted the code for the simple test application previously, but can provide if necessary. Basically a function in a DYLIB is passed a string parameter, it returns TRUE with an OUT variable of another string which proves that the data went into the DYLIB function and returned out. The function template: function _say_Hello(Hello: string; out ReturnString: string): boolean; cdecl; external TestDLL; I have simple showmessage() statements in the calling application for things like onCloseQuery and onClose etc, these all show, everything WORKS as it should until the application closes(onCloseQuery executed, onClose executed, and about half a second to a second after everything shuts down the problem report pops up). I've put the google drive link to the error log. Basically I get this: Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000bf7ffffc Exception Note...

I've posted the code for the simple test application previously, but can provide if necessary. Basically a function in a DYLIB is passed a string parameter, it returns TRUE with an OUT variable of another string which proves that the data went into the DYLIB function and returned out. The function template:

I've posted the code for the simple test application previously, but can provide if necessary. Basically a function in a DYLIB is passed a string parameter, it returns TRUE with an OUT variable of another string which proves that the data went into the DYLIB function and returned out. The function template: function _say_Hello(Hello: string; out ReturnString: string): boolean; cdecl; external TestDLL; I have simple showmessage() statements in the calling application for things like onCloseQuery and onClose etc, these all show, everything WORKS as it should until the application closes(onCloseQuery executed, onClose executed, and about half a second to a second after everything shuts down the problem report pops up). I've put the google drive link to the error log. Basically I get this: Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000bf7ffffc Exception Note...

I have a form (Fire Monkey) with multiple frames on it.

I have a form (Fire Monkey) with multiple frames on it. I would like to execute some common code (same code for all frames) when the focus enters a frame and exists a frame. Can anyone assist with some example please? I tried setting the OnEnter and OnExit in the Frame definition and also on the Frame instances, but none worked. If I set it on a control on the Frame it works, but I need to know when a frame becomes focused, irrespective of the controls on it. In short, using this, I want to know where in my form the focus is at any point in time. I need to load the frames at runtime, so I will need to link the events also at runtime I think.

I have a form (Fire Monkey) with multiple frames on it. I would like to execute some common code (same code for all frames) when the focus enters a frame and exists a frame. Can anyone assist with some example please? I tried setting the OnEnter and OnExit in the Frame definition and also on the Frame instances, but none worked. If I set it on a control on the Frame it works, but I need to know when a frame becomes focused, irrespective of the controls on it.

I have a form (Fire Monkey) with multiple frames on it. I would like to execute some common code (same code for all frames) when the focus enters a frame and exists a frame. Can anyone assist with some example please? I tried setting the OnEnter and OnExit in the Frame definition and also on the Frame instances, but none worked. If I set it on a control on the Frame it works, but I need to know when a frame becomes focused, irrespective of the controls on it. In short, using this, I want to know where in my form the focus is at any point in time. I need to load the frames at runtime, so I will need to link the events also at runtime I think.

Hello

Hello I want to control the thumb of a trackbar. I create on run a trackbar. vTrackbar := TTrackBar.Create(main_form); vTrackbar.Name := 'A_SP_SongPos'; vTrackbar.Parent := main_form; vTrackbar.Width := 1000; vTrackbar.Height := 30; vTrackbar.X := 460; vTrackbar.Y := 100; vTrackbar.Min := 0; vTrackbar.Max := 1000; vTrackbar.visible:= true; if i do this vTrackbar.thumb.size.width:= 10; than i get an errror that can't do this bcs the thumb= nil; so How to assign a tcustomthumb in the vtrackbar.thumb. of how to create the current thumb on vTrackbar; Thank you

Up coming OSX changes

Up coming OSX changes more info https://developer.apple.com/developer-id/ https://developer.apple.com/developer-id/

I'm trying to debug an OSX app.

Image
I'm trying to debug an OSX app. It's very simple and I'm trying to Attach to Process. I get a list of the processes on the mac, but the PIDs displayed only goes up to 35717. The PID of the OSX process is 36193 (confirmed on the Mac). I've tried show system processes, but that makes no difference. As you can see, the last available PID to attach to is 35717, but my app on the deployment Mac has a PID of 36193. Anyone know what I'm doing wrong, how to fix the situation where the PID for my app is displayed on the dev (windows) site?

I'm trying to debug an OSX app. It's very simple and I'm trying to Attach to Process. I get a list of the processes on the mac, but the PIDs displayed only goes up to 35717. The PID of the OSX process is 36193 (confirmed on the Mac).

Image
I'm trying to debug an OSX app. It's very simple and I'm trying to Attach to Process. I get a list of the processes on the mac, but the PIDs displayed only goes up to 35717. The PID of the OSX process is 36193 (confirmed on the Mac). I've tried show system processes, but that makes no difference. As you can see, the last available PID to attach to is 35717, but my app on the deployment Mac has a PID of 36193. Anyone know what I'm doing wrong, how to fix the situation where the PID for my app is displayed on the dev (windows) site?

I'm converting a windows VCL application to FMX macOS.

I'm converting a windows VCL application to FMX macOS. I've started with the simplest application that calls a function in a DYLIB/DLL. Basically that's all the app does. It works fine in Win32. If I reply application with DYLIB to OSX, it aborts as soon as the app loads with ...unable to Register TFMXApplicationDelegate... I've posted to the Delphi community and Stack Exchange - no replies. If I just call an internal function (ie. I do not reference a DYLIB) the application works fine on macOS. As soon as I just use the code for the DYLIB it aborts on startup. It seems to me this is very basic, an FMX/macOS test app calling a function in an FMX/DYLIB, it doesn't get much more basic, but it is a real blocker for me. I've searched the net and nothing. Does ANYONE have any idea how I get past this.

I'm converting a windows VCL application to FMX macOS. I've started with the simplest application that calls a function in a DYLIB/DLL. Basically that's all the app does. It works fine in Win32.

I'm converting a windows VCL application to FMX macOS. I've started with the simplest application that calls a function in a DYLIB/DLL. Basically that's all the app does. It works fine in Win32. If I reply application with DYLIB to OSX, it aborts as soon as the app loads with ...unable to Register TFMXApplicationDelegate... I've posted to the Delphi community and Stack Exchange - no replies. If I just call an internal function (ie. I do not reference a DYLIB) the application works fine on macOS. As soon as I just use the code for the DYLIB it aborts on startup. It seems to me this is very basic, an FMX/macOS test app calling a function in an FMX/DYLIB, it doesn't get much more basic, but it is a real blocker for me. I've searched the net and nothing. Does ANYONE have any idea how I get past this.

Synchronized ListBoxes

Image
Synchronized ListBoxes I have created a test app that has 2 ListBoxes where the ListBoxItems move with each other. It works but has an oddity. If the right side ListBoxItem (lbi) is out of view when the corresponding left side lbi is selected then the right side lbi move into view at the top or bottom of the right side box, but not aligned with the left side lbi. I can work with this in my app but is not user-friendly. Does anyone have any suggestions on avoiding an offset? The pas code: unit LBTest; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Layouts, FMX.ListBox; type TForm1 = class(TForm) lb1: TListBox; pnl1: TPanel; lb2: TListBox; btn1: TButton; procedure btn1Click(Sender: TObject); procedure lb2Change(Sender: TObject); procedure lb1Change(Sender: TObject); procedure lb1MouseWheel(Sende...

I have listbox with pictures

Image
I have listbox with pictures var Item:TlistBoxItem; F:TBitmap; for s in FolderList{Bilder} do begin Item:=TlistBoxItem.Create(nil); Item.StyleLookup:='listboxitemnodetail'; Item.Width:=90; Item.Height:=200; Item.Margins.Rect:=rectF(0,5,5,0); F:=TBitmap.Create; f.LoadFromFile(s); Item.ItemData.Bitmap:=(f); Tried // Item.ItemData.Bitmap.Resize(60,60); //Canvas.DrawBitmap(f, Rect(0, 0, sib.Width, sib.Width), ib);// f.Free; Pictures are too small on android. do i resize after loading ? but then it will be to slaw. any other list box component that i can inflate the picture to full item square ?

Hello

Image
Hello , I need some help about the TTabItem When i use the tabitemcustom in the stylelookup loses the style theme in the ttabitem. How can i do that; Thanks. P.S. I am using the 10.2.3 CE FMX Delphi.

Is there another shortcut to create a new FMX-based Windows application, besides "Firemonkey Metropolis UI...

Is there another shortcut to create a new FMX-based Windows application, besides "Firemonkey Metropolis UI Application?" What if one just wants to use the FMX library, without any of the Metropolis stuff? And why is FMX for Windows such a hidden option? I remember it being quite prominent in XE2.