Re: Trying to use the Segmented Control
Thank you, I'm glad to see that there is someone who finds use for the widget. Ralf On 20.01.21 22:33, J. Landman Gay via use-livecode wrote: On 12/4/20 3:32 AM, Niggemann, Bernd via use-livecode wrote: Ralf Bitter wrote See: https://github.com/revig/universal-button-widget/releases/tag/1.0.1 Thank you Ralf for this brilliant widget. Kind regards Bernd I finally had a chance to look at this widget. Thank you Ralf for your generous contribution, this is very useful! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
On 12/4/20 3:32 AM, Niggemann, Bernd via use-livecode wrote: Ralf Bitter wrote See: https://github.com/revig/universal-button-widget/releases/tag/1.0.1 Thank you Ralf for this brilliant widget. Kind regards Bernd I finally had a chance to look at this widget. Thank you Ralf for your generous contribution, this is very useful! -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
Roland thanks, did what you proposed, means I added two check boxes to toggle the properties of the button group. And please don't forget to send me your button bar. Ralf On 10.12.20 23:30, R.H. via use-livecode wrote: @ Ralf Bitter Dear Ralf, I downloaded your segmented control from: https://github.com/revig/universal-button-widget/releases/tag/1.0.1 and I installed the widget using the Extension Manager in the IDE. It looks very nice. Exactly what allows control and even change the behavior. First time users should know that the custom properties (as described by you) are custom properties of the group "menuBtnGrp". For a first time, two visible switches would probably allow users to just test without having to look under the hood. Since I must build such button groups dynamically (users can add or remove modules which then appear put on the navigation bar that is constiung of such "buttons") I will just need to script this a bit in more detail. I also wrote my own bar using a table field where I mimic the hiliting and hover (mouseover) effect when moving the mouse over lines or using arrow keys (up and down. It looks like a button bar when using an image source for a first character. But it does not work for SVG as far as I know. And it only works for vertical "bars". On the other hand, it is very easy to dynamically create and remove lines. Actually, I track the mousemove and detect the line number and then place a transparent graphic over the selected line. This gives more control than using the built-in hilited property. If someone is interested, I can send... So, thanks a lot to you for providing this, and I am sure I will have fun using it... Roland ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
@ Ralf Bitter Dear Ralf, I downloaded your segmented control from: https://github.com/revig/universal-button-widget/releases/tag/1.0.1 and I installed the widget using the Extension Manager in the IDE. It looks very nice. Exactly what allows control and even change the behavior. First time users should know that the custom properties (as described by you) are custom properties of the group "menuBtnGrp". For a first time, two visible switches would probably allow users to just test without having to look under the hood. Since I must build such button groups dynamically (users can add or remove modules which then appear put on the navigation bar that is constiung of such "buttons") I will just need to script this a bit in more detail. I also wrote my own bar using a table field where I mimic the hiliting and hover (mouseover) effect when moving the mouse over lines or using arrow keys (up and down. It looks like a button bar when using an image source for a first character. But it does not work for SVG as far as I know. And it only works for vertical "bars". On the other hand, it is very easy to dynamically create and remove lines. Actually, I track the mousemove and detect the line number and then place a transparent graphic over the selected line. This gives more control than using the built-in hilited property. If someone is interested, I can send... So, thanks a lot to you for providing this, and I am sure I will have fun using it... Roland ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
OT Re: Trying to use the Segmented Control
> On 6 Dec 2020, at 10:16 am, Richmond via use-livecode > wrote: > > I started driving again in the United Arab Emirates on the basis of a Saudi > licence I had got for a bottle > of fake Chanel number 5. I never drive in the UAE. Hit a camel = go to jail. David G ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
When I was about 18 I was driving tractors on a farm: really old-fashioned things with about 3 gears. Later, in the United States, I learnt to drive a car; out car was a Ford Tempo with 5 gears and a reverse. However, when I went to take the test the officers there would not let me use our car because it had a pea-sized spot of the windscreen. So, I borrowed a friend's car: the only problem was that it was an automatic: so I took a driving test in an automatic car when I had never driven one before . . . what a load of rubbish. I, then, left the U.S. and did not drive a car for about 6 months, and managed to have my American licence stolen. I started driving again in the United Arab Emirates on the basis of a Saudi licence I had got for a bottle of fake Chanel number 5. That's when I really started to drive. The few times I have had to drive a car with an automatic gear system since then I have generally panicked as they make me feel out of control. WIDGETS seem to me like cars with automatic transmission: all very clever, drive themselves, but no chance for any creative driving. Personally I'll always opt for 'stick' given the choice. On 30.11.20 13:05, R.H. via use-livecode wrote: Basically, I think, it is a nice widget. --- But sometimes, I would like to show text with icons together, or each icon in a different color. Possible? --- Then I would like to import whatever icon or image and individually set its size, and margins individually. I like to have access to the details of each segment and it's look and feel. Even each segment's rect and other details should be modifiable. I would like to be able to define the size and the color of each object's border and dividing lines. The only way around is scripting lines or whatever to be used as an overlay -- which is a kludge. But is it possible using LCB to address individual parts and define a more detail-grained API? --- Messages: I do not understand why not standard mouse messages would work here and are not supported. Other messages than just "hilitedChange" should be detected. But it would be important, in my opinion, to allow each and every graphical widget to detect mouseWithin, mouseMove, mouseDown, mouseUp, mouseEnter, mouseLeave, etc. Is there anybody working on such widgets and updating them to newer versions? Is there a version history for each widget? The documentary of the widget (widgets) in the Dictionary could be enhanced with a first date of appearance and dates of new versions as well as enhancement requests or planned enhancements? I assume the author is LiveCode Ltd.? Roland ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
Bernd thanks, at some point I just wanted to do away with the shortcomings of the segmented control. Though modifying the segmented control might have been a better approach. Ralf On 04.12.20 10:32, Niggemann, Bernd via use-livecode wrote: Ralf Bitter wrote See:https://github.com/revig/universal-button-widget/releases/tag/1.0.1 Thank you Ralf for this brilliant widget. Kind regards Bernd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
>Ralf Bitter wrote >See: https://github.com/revig/universal-button-widget/releases/tag/1.0.1 Thank you Ralf for this brilliant widget. Kind regards Bernd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
Hi Roland, I added a custom property "multipleHighlights" to the widgets group (segmented control) of the demo stack and modified the behavior script, so that the functionality is on par with the segmented control widget. See: https://github.com/revig/universal-button-widget/releases/tag/1.0.1 Ralf On 03.12.20 18:35, R.H. via use-livecode wrote: @ Ralf Hi Ralf Your link and what I can see looks very promising. I will certainly try this out. Thanks a lot. At first glance, it looks very professional. I guess it is ... ))) Roland ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
@ Richmond Richmond, to be honest, I am quite ignorant about developing widgets. I never took the time to dig deep into them. It is certainly my fault. So, I cannot say whether or not it is hard work and how much work. But from a user (developer) perspective, I think we can freely formulate our wishes? If this is ignorant -- then, yes, I am in this case ) -- so even if this is the case, I am trying to create (my) a wishlist. (1) To me, most widgets make sense only when they can be used universally. This also means that they work on all platforms LiveCode is supporting. I guess that it is hard, but the fundaments were provided by LiveCode Ltd. (3) I understand that certain widgets are based on DLLs or functions of the OS that might be different on different platforms or not available at all. I do not like it, but I have to accept this fact. But any widget that breaks the universal rule stands out breaching the promise of platform-interoperability. (3) For widgets, I wish that it should be possible during development to simply enable or disable all messages that also other controls in LiveCode receive. At least a list of checkboxes that enables the developer to work all types of messages when enabled. For example, why this segmented control does not receive a mouseDown message, I cannot explain. I do not understand it. I have to script around it and that should not be. (4) I think that a standard widget must support all properties as in all other controls, but the list of properties might be limited to the specific use, of course. If a widget is not visual then it makes no sense to change it's rect. But if visual, then it usually has the properties and way for manipulation as at least other such controls. (5) A well documented API to access properties and functions that is based on a standard. I guess this is more or less already the case? (5) One of my biggest wishes for all LCS controls (fields, buttons, ...) is the same as for all widgets: Enable to manipulate details as they are found using CSS (at least a good-enough subset), and that includes settings for individual borders, etc. If that would be the case, even using CSS could be parsed in such a way that it would reflect in our graphical objects. When scripting in CSS and HTML, I really have quite some detailed control. (6) If (5) would work then it would also be possible to script an "engine" to transform LC into a webpage using CSS. The problem would still exist to transform LiveCode Script into JavaScript. Probably, that is not really possible. The platforms are very different. But again, we are allowed to express wishful thinking...) -- I am not now going into the "HTML" possibility. The user opinions are quite obvious. Slowly, I am working on a general usage product to eventually sell, I am thinking ahead to offer solutions for the major platforms (Android, Windows, iOS, OSX and Linux). But definitely, there also must be a web application. So far, I only worked either in-house (hobby, private usage), or for very specific solutions in a vertical market. So, big thanks for your comment. I just tried to elaborate a bit. If you or others can correct me -- that is fine. I am always eager to learn. Wishing all here the best Roland ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
@ Ralf Hi Ralf Your link and what I can see looks very promising. I will certainly try this out. Thanks a lot. At first glance, it looks very professional. I guess it is ... ))) Roland ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
Yes, it is a nice widget. But, because it is a widget it has several quite obvious and annoying limitations when compared with making your own thing using the 'old fashioned' objects in LiveCode. At this point things come to some hard choices: 1. Do you want a quick-and-easy, one-size-fits-all solution? If you do that's the segmented control widget. 2. Do you want something you can customise to exactly fits your needs? If you do, chuck the widget and start grouping some customised buttons. 3. Think about Python Libraries . . . [had quite a 'flame thrower' about them just last week with someone extolling the supposed virtues of Python]. Richmond. On 30.11.20 13:05, R.H. via use-livecode wrote: Basically, I think, it is a nice widget. --- But sometimes, I would like to show text with icons together, or each icon in a different color. Possible? --- Then I would like to import whatever icon or image and individually set its size, and margins individually. I like to have access to the details of each segment and it's look and feel. Even each segment's rect and other details should be modifiable. I would like to be able to define the size and the color of each object's border and dividing lines. The only way around is scripting lines or whatever to be used as an overlay -- which is a kludge. But is it possible using LCB to address individual parts and define a more detail-grained API? --- Messages: I do not understand why not standard mouse messages would work here and are not supported. Other messages than just "hilitedChange" should be detected. But it would be important, in my opinion, to allow each and every graphical widget to detect mouseWithin, mouseMove, mouseDown, mouseUp, mouseEnter, mouseLeave, etc. Is there anybody working on such widgets and updating them to newer versions? Is there a version history for each widget? The documentary of the widget (widgets) in the Dictionary could be enhanced with a first date of appearance and dates of new versions as well as enhancement requests or planned enhancements? I assume the author is LiveCode Ltd.? Roland ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
Hi Roland, I have a LCB widget I used as a replacement for the segmented control. My "segmented control" actually consists of a group of button widgets, but it seems it comes close to what you are looking for. See: https://github.com/revig/universal-button-widget Ralf On 30.11.20 12:05, R.H. via use-livecode wrote: Basically, I think, it is a nice widget. --- But sometimes, I would like to show text with icons together, or each icon in a different color. Possible? --- Then I would like to import whatever icon or image and individually set its size, and margins individually. I like to have access to the details of each segment and it's look and feel. Even each segment's rect and other details should be modifiable. I would like to be able to define the size and the color of each object's border and dividing lines. The only way around is scripting lines or whatever to be used as an overlay -- which is a kludge. But is it possible using LCB to address individual parts and define a more detail-grained API? --- Messages: I do not understand why not standard mouse messages would work here and are not supported. Other messages than just "hilitedChange" should be detected. But it would be important, in my opinion, to allow each and every graphical widget to detect mouseWithin, mouseMove, mouseDown, mouseUp, mouseEnter, mouseLeave, etc. Is there anybody working on such widgets and updating them to newer versions? Is there a version history for each widget? The documentary of the widget (widgets) in the Dictionary could be enhanced with a first date of appearance and dates of new versions as well as enhancement requests or planned enhancements? I assume the author is LiveCode Ltd.? Roland ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Trying to use the Segmented Control
Basically, I think, it is a nice widget. --- But sometimes, I would like to show text with icons together, or each icon in a different color. Possible? --- Then I would like to import whatever icon or image and individually set its size, and margins individually. I like to have access to the details of each segment and it's look and feel. Even each segment's rect and other details should be modifiable. I would like to be able to define the size and the color of each object's border and dividing lines. The only way around is scripting lines or whatever to be used as an overlay -- which is a kludge. But is it possible using LCB to address individual parts and define a more detail-grained API? --- Messages: I do not understand why not standard mouse messages would work here and are not supported. Other messages than just "hilitedChange" should be detected. But it would be important, in my opinion, to allow each and every graphical widget to detect mouseWithin, mouseMove, mouseDown, mouseUp, mouseEnter, mouseLeave, etc. Is there anybody working on such widgets and updating them to newer versions? Is there a version history for each widget? The documentary of the widget (widgets) in the Dictionary could be enhanced with a first date of appearance and dates of new versions as well as enhancement requests or planned enhancements? I assume the author is LiveCode Ltd.? Roland ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
Brian and Ralph, Thanks. I gave up because there are easier, more obvious ways to do what I want. Several posts have mentioned shortcomings in the segmented control widget and I think if it would respond to mousedown and mouseup messages, it would be easier to use in more situations, as well. It could use an upgrade, in my humble opinion! Best, Bill William Prothero http://es.earthednet.org > On Nov 28, 2020, at 3:52 PM, Brian Milby via use-livecode > wrote: > > The widget isn’t impacted by lock messages. I have used it in the past to > switch cards and just checked for the current card to avoid the loop. That > doesn’t sound like it would work here. You could use a script local flag > though. Set sNoAction to true before changing the hilight; in your > hiliteChanged handler exit if sNoAction is true (but probably reset the flag > before exiting). > > Sent from my iPhone > >> On Nov 28, 2020, at 6:14 PM, Ralph DiMola via use-livecode >> wrote: >> >> Put an lock/unlock messages around your code to keep from getting a message >> when you are doing those type of changes. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdim...@evergreeninfo.net >> >> -Original Message- >> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf >> Of prothero--- via use-livecode >> Sent: Saturday, November 28, 2020 5:32 PM >> To: JJS via use-livecode >> Cc: proth...@earthlearningsolutions.org >> Subject: Trying to use the Segmented Control >> >> Folks: >> I’m trying to use the segmented control and a navigation button on a card. >> Its purpose is to go to various location in my app. The only message it >> seems to respond to is hiliteChanged. But when I then try to set the hilites >> to empty (so no segments are hilited), it triggers another hiliteChanged >> message. This makes it a real pain to use for what I want. >> >> I see there have been numerous discussions about this control. It’s been a >> time-waster for me. >> >> Bill >> >> William A. Prothero >> Santa Barbara, CA. 93105 >> http://earthlearningsolutions.org/ >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Trying to use the Segmented Control
The widget isn’t impacted by lock messages. I have used it in the past to switch cards and just checked for the current card to avoid the loop. That doesn’t sound like it would work here. You could use a script local flag though. Set sNoAction to true before changing the hilight; in your hiliteChanged handler exit if sNoAction is true (but probably reset the flag before exiting). Sent from my iPhone > On Nov 28, 2020, at 6:14 PM, Ralph DiMola via use-livecode > wrote: > > Put an lock/unlock messages around your code to keep from getting a message > when you are doing those type of changes. > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of prothero--- via use-livecode > Sent: Saturday, November 28, 2020 5:32 PM > To: JJS via use-livecode > Cc: proth...@earthlearningsolutions.org > Subject: Trying to use the Segmented Control > > Folks: > I’m trying to use the segmented control and a navigation button on a card. > Its purpose is to go to various location in my app. The only message it seems > to respond to is hiliteChanged. But when I then try to set the hilites to > empty (so no segments are hilited), it triggers another hiliteChanged > message. This makes it a real pain to use for what I want. > > I see there have been numerous discussions about this control. It’s been a > time-waster for me. > > Bill > > William A. Prothero > Santa Barbara, CA. 93105 > http://earthlearningsolutions.org/ > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Trying to use the Segmented Control
Put an lock/unlock messages around your code to keep from getting a message when you are doing those type of changes. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of prothero--- via use-livecode Sent: Saturday, November 28, 2020 5:32 PM To: JJS via use-livecode Cc: proth...@earthlearningsolutions.org Subject: Trying to use the Segmented Control Folks: I’m trying to use the segmented control and a navigation button on a card. Its purpose is to go to various location in my app. The only message it seems to respond to is hiliteChanged. But when I then try to set the hilites to empty (so no segments are hilited), it triggers another hiliteChanged message. This makes it a real pain to use for what I want. I see there have been numerous discussions about this control. It’s been a time-waster for me. Bill William A. Prothero Santa Barbara, CA. 93105 http://earthlearningsolutions.org/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode