AW: sendall show hide button text

Martin Obongita martin.obongita at yahoo.com
Fri Feb 25 13:51:01 UTC 2022


 Hi Udo,
I meant to say the line of code does not adjust the size of the icon to a button named btnToolbarNew.My end result is to apply the $assign to all the buttons.It should work on one button first and then it can be applied to all the buttons.
Martin.

    On Friday, February 25, 2022, 04:43:34 PM GMT+3, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:  
 
  Hi Udo,
I wish to adjust the size of all buttons in a pagedPage depending on the screen layout.This is the code added in the event method:

Do $cinst.$objs.pagedPaneButtonContainer.$objs.btnToolbarNew.$iconid.$assign('add_circle'+k16x16)

Why would the buttons not react to this command line when the screen is changed?
Kind regards, Martin.



    On Friday, February 25, 2022, 12:03:30 PM GMT+3, Udo Sonnabend | WigaSoft AG <u.sonnabend at wigasoft.ch> wrote:  
 
 Hi Obongita

Try this

Do $cinst.$objs.$sendall($sendallref.$text.$assign($cclass.$objs.[$sendallref.$name()].$text),mid($sendallref.$name,1,10)='btnToolbar')

$name instead of $text in square brackets and $sendallref inside $sendall ( $ref is sometimes ambigous)

Regards,
Udo.

WigaSoft AG
Udo Sonnabend
Entwickler

Oberstrasse 222 | Postfach 51 | CH-9014 St. Gallen
Telefon +41 71 274 51 31 | www.wigasoft.ch<http://www.wigasoft.ch/> | U.Sonnabend at wigasoft.ch<mailto:U.Sonnabend at wigasoft.ch>


Diese Mitteilung kann pers?nliche, vertrauliche oder rechtlich gesch?tzte Informationen enthalten und ist nur f?r die Verwendung durch den beabsichtigten Empf?nger bestimmt. Auf Vertraulichkeit oder Rechte wird aufgrund von Fehl?bertragungen nicht verzichtet. Wenn Sie nicht der beabsichtigte Empf?nger dieser Mitteilung sind, d?rfen Sie diese in keiner Form verwenden, verbreiten oder kopieren. Haben Sie diese Mitteilung irrt?mlich erhalten, dann l?schen Sie diese und allf?llige Kopien und benachrichtigen Sie bitte unverz?glich den Absender - besten Dank.

P Bitte denken Sie an die Umwelt, bevor Sie dieses Mail drucken. Think before print!

________________________________
Von: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> im Auftrag von Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com>
Gesendet: Freitag, 25. Februar 2022 09:43
An: omnisdev-en at lists.omnis-dev.com <omnisdev-en at lists.omnis-dev.com>
Cc: Martin Obongita <martin.obongita at yahoo.com>
Betreff: sendall show hide button text

Hi $Listers,
With help and advice from @kellyB, I decided to do away with toolbars in my windows and instead use individual buttons.I now find it easier to design my User Interface.
 I have $sendall command shown below in the $event method of a remote form to hide text in buttons inside a pagedPane if the screen layout is changed to small:


Do $cinst.$objs.$sendall($ref.$text.$assign(),mid($ref.$name,1,10)='btnToolbar')

This works well. The text buttons are hidden.
 I have $sendall command shown below in the same $event of the above window to show the hidden text if the screen layout is changed to big:


Do $cinst.$objs.$sendall($ref.$text.$assign($cclass.$objs.[$ref.$text()].$text),mid($ref.$name,1,10)='btnToolbar')

For some reason, it does not show the hidden button text when the screen is changed to big.I have tested this line many times in all manner of ways, changing this, removing that, adding a parenthesis, with no success.What am I missing in the $sendall parameters?
Kind regards, Martin Obongita.


_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
  
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
  


More information about the omnisdev-en mailing list