Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Aug 19, 2019 4:35 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Pushbutton Action event not firing in Linux?
PostPosted: Thu Mar 04, 2010 3:31 pm 
Offline

Joined: Wed Mar 25, 2009 4:30 pm
Posts: 245
Location: Alexandria, VA, USA
I have an application that has a toolbar with buttons, as well as some pushbuttons. It works fine on Mac and Windows, but when I run it through the remote debugger on Linux I can't push any of the PushButtons.

Graphically, they appear to push, but nothing happens.

If I set a debug point within the IDE it never fires because the Action event doesn't seem to be being called.

Interestingly, the toolbar buttons work just fine.

Does anyone know what I might be doing wrong that is causing the PushButtons to fail? The only thing I am doing differently in Linux is resizing them so that they look pretty:

'Added to the work of another author to add support for listboxes, comboboxes and editfields.
Sub AdjustButtons(MainWindow As Window)
#If TargetLinux Then
dim i As Int32
For i =0 To MainWindow.ControlCount-1
If (MainWindow.Control(i) IsA PushButton) Then
PushButton(MainWindow.Control(i)).Height = PushButton(MainWindow.Control(i)).Height + 10
PushButton(MainWindow.Control(i)).Top = PushButton(MainWindow.Control(i)).Top -3 // just a little tweak
elseif (MainWindow.Control(i) isa Listbox) then
ListBox(MainWindow.Control(i)).top = ListBox(MainWindow.Control(i)).top + 23
elseif (MainWindow.Control(i) isa ComboBox) then
ComboBox(MainWindow.Control(i)).Height = ComboBox(MainWindow.Control(i)).Height + 6
ComboBox(MainWindow.Control(i)).Top = ComboBox(MainWindow.Control(i)).Top -3 // just a little tweak
elseif (MainWindow.Control(i) isa EditField) then
EditField(MainWindow.Control(i)).Height = EditField(MainWindow.Control(i)).Height + 6
EditField(MainWindow.Control(i)).Top = EditField(MainWindow.Control(i)).Top -3 // just a little tweak
End If
Next
#EndIf
End Sub


Top
 Profile  
Reply with quote  
 Post subject: Re: Pushbutton Action event not firing in Linux?
PostPosted: Thu Mar 04, 2010 5:27 pm 
Offline

Joined: Wed Mar 25, 2009 4:30 pm
Posts: 245
Location: Alexandria, VA, USA
It turns out you can click the buttons, you just have to click about 15 pixels above where you think you should click.

Since the problem is different and affects more than just pushbuttons I made a new thread:

http://forums.realsoftware.com/viewtopic.php?f=8&t=32842&start=0&st=0&sk=t&sd=a


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group