I want to set the FMain form's icon property (in the FMain Form_Open
sub) to the picture contained in a .png file which I've added to to the
Data section (of the Gambas IDE). Here is my non-working code, which
gives 'Null Object' at runtime:
Dim picIcon As Picture
2013-12-16 11:52 keltezéssel, John Rose írta:
I want to set the FMain form's icon property (in the FMain Form_Open
sub) to the picture contained in a .png file which I've added to to the
Data section (of the Gambas IDE). Here is my non-working code, which
gives 'Null Object' at runtime:
Vuott,
I've added the New word:
Dim picIcon As New Picture
Though I no longer got 'Null Object', the icon didn't appear on the
form's title bar.
--
Regards, John
--
Rapidly troubleshoot problems before they affect
Tried:
FMain.Icon = Picture[StreamRecorder.png]
Still no icon on window's title bar.
PS using Ubuntu Precise with Gambas 3.5.1
--
Regards, John
--
Rapidly troubleshoot problems before they affect your business. Most IT
The code is correct. Does it get executed?
Do you have error messages?
Jussi
On Mon, Dec 16, 2013 at 2:42 PM, John Rose john.aaron.r...@gmail.comwrote:
Tried:
FMain.Icon = Picture[StreamRecorder.png]
Still no icon on window's title bar.
PS using Ubuntu Precise with Gambas 3.5.1
--
Re Fmain.Icon method does not cause the appearance of the icon on the caption
bar of the window, but in the menu bar:
Even if the form's Icon property is set in the form's definition (i.e. by
browsing to the .png file in the project directory) rather than in code then it
doesn't appear in the
I wonder if this is a fault with Precise which uses a Global menu bar.
Anybody know?
As it has been said before, this is the way Unity desktop works. If you want to
see your icon in the form caption, you need to switch to another desktop
manager or tweak Unity (which I don't know if it is