Recent

Author Topic: [SOLVED] Unwanted "autocheck" in TMainMenu Ubuntu  (Read 3381 times)

Henppy

  • Jr. Member
  • **
  • Posts: 60
[SOLVED] Unwanted "autocheck" in TMainMenu Ubuntu
« on: December 15, 2013, 04:22:21 am »
Hello gents, new to Lazarus here so I'm having three million question. You've been lucky Google has the answers so far, but this one I can't solve. :)

I'm developing this app and something strange happens with the TMainMenu in Ubuntu. The Autocheck property is set to false, and it works in Windows and Mint, but in Ubuntu, when I click an item it autochecks anyways.   :(

So, anything I should know about menu items in Unity?

BTW, the icons are not shown either. Could this be related?
« Last Edit: December 21, 2013, 04:09:42 am by Henppy »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Unwanted "autocheck" in TMainMenu Ubuntu
« Reply #1 on: December 15, 2013, 05:44:18 am »
Welcome. Glad Google was able to answer a lot of your questions.

Not an Ubuntu user and can't answer your question, but it always helps to specify the version of Lazarus you use. See first link in my signature.
(Actually... you can put it in your forum signature... saves typing...)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Henppy

  • Jr. Member
  • **
  • Posts: 60
Re: Unwanted "autocheck" in TMainMenu Ubuntu
« Reply #2 on: December 15, 2013, 06:15:06 am »
Thanks BigChimp.

My Lazarus is 1.0.12 and FPC is 2.6.2 (32 bits apparently, "C:\lazarus\fpc\2.6.2\bin\i386-win32\fpc.exe"). Same in Ubuntu.

I'm building with "lazbuild -B" so everything by default.

Widget I'm using... erm... no idea. I'm not a fan of Ubuntu neither, but for what I understand it's GKT2?

As I said, when I click any item in the... Ok, I know what's causing it. Items with icons in them show this behavior. If the item doesn't have an icon (ImageIndex = -1) then everything is fine.

And with that knowledge I can see there are some reports about icons not showing in the main menu. Time to investigate!
« Last Edit: December 15, 2013, 06:17:34 am by Henppy »

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Unwanted "autocheck" in TMainMenu Ubuntu
« Reply #3 on: December 15, 2013, 06:58:22 am »
Glad you found out quickly. I do remember imageindex bug report(s) as well, yes.

Lazarus default widgetset on Linux is indeed GTK2.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Henppy

  • Jr. Member
  • **
  • Posts: 60
Re: Unwanted "autocheck" in TMainMenu Ubuntu
« Reply #4 on: December 21, 2013, 04:07:01 am »
This error is solved in Lazarus 1.0.14!  :D

 

TinyPortal © 2005-2018