> I tried >> Cancel_Button := >> Qt4.Push_Buttons.Q_Push_Button_Access >> (Button_Box.Button(Cancel)); > but I get the same failure. > The remainder of the error message is "defined at > qt4-dialog_button_boxes.ads:106" which is > type Q_Dialog_Button_Box is limited interface > and Qt4.Widgets.Q_Widget; > which certainly includes the Button function. > > > On 18/12/2011, at 1:39 AM, Vadim Godunko wrote: > >> On 12/17/2011 07:04 AM, Roger Mc Murtrie wrote: >>> Following on using qtada-gpl-3.2.0-20111213-3862, >>> I still can't access the Cancel button, presumably something wrong with my >>> code: >>> >>> Button_Box : >>> Qt4.Dialog_Button_Boxes.Q_Dialog_Button_Box_Access; >>> Cancel_Button : Qt4.Push_Buttons.Q_Push_Button_Access; >>> - >>> - >>> - >>> Button_Box := Interactor.Button_Box; >>> Cancel_Button := Button_Box.Button(Cancel); >>> >>> The above fails to compile with message: >>> no selector "Button" for type "Q_Dialog_Button_Box'Class" >>> The gps code completion tip certainly offers "button" as a selector and >>> qt4-dialog_button-boxes.ads certainly includes the function "Button" which >>> returns "access Qt4.Push_Buttons.Q_Push_Button'Class". >>> I have found that the gps "no selector" error is often misleading as the >>> error often occurs for some sort of declaration error; but in this case I >>> can't figure it out. >> >> Try: >> >> Cancel_Button := >> Qt4.Push_Buttons.Q_Push_Button_Access >> (Button_Box.Button(Cancel)); >> >
_______________________________________________ qtada-users mailing list [email protected] http://box347.bluehost.com/mailman/listinfo/qtada-users_lists.qtada.com
