Thread overview | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 21, 2020 Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Today's post was requested by Joel Christensen, how to have one button affect another. You can find it here: https://gtkdcoding.com/2020/01/21/0099-sfx-button-interactions-i-text-labels.html |
January 21, 2020 Re: Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ron Tarrant | On Tuesday, 21 January 2020 at 14:02:59 UTC, Ron Tarrant wrote:
> Today's post was requested by Joel Christensen, how to have one button affect another. You can find it here: https://gtkdcoding.com/2020/01/21/0099-sfx-button-interactions-i-text-labels.html
Hi Ron. Your blog is great. I have saved it for the future. (I know it from reddit).
I would also like to request a future blog post about animation.
I know you have done that in the past, but i am thinking of some animation triggered by user input (say a button, or some text field, which provides parameters for a circle).
|
January 21, 2020 Re: Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Hönig | On Tuesday, 21 January 2020 at 18:57:47 UTC, Jan Hönig wrote: > Hi Ron. Your blog is great. I have saved it for the future. (I know it from reddit). Glad you like it. > I would also like to request a future blog post about animation. > I know you have done that in the past, but i am thinking of some animation triggered by user input (say a button, or some text field, which provides parameters for a circle). Okay. I'll see what I can come up with. Lead time is 2-3 months, just so you're aware. |
January 21, 2020 Re: Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Hönig | On Tuesday, 21 January 2020 at 18:57:47 UTC, Jan Hönig wrote:
> I would also like to request a future blog post about animation.
> I know you have done that in the past, but i am thinking of some animation triggered by user input (say a button, or some text field, which provides parameters for a circle).
Just to make sure I know exactly what you want...
- the user inputs parameters for a circle - I'm assuming size, position, perhaps the fraction of the circle (half, quarter, two-thirds, whatever)
- the user then clicks a button and that draws the circle.
Is that more or less what you're after?
|
January 21, 2020 Re: Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ron Tarrant | On Tuesday, 21 January 2020 at 22:06:30 UTC, Ron Tarrant wrote:
> On Tuesday, 21 January 2020 at 18:57:47 UTC, Jan Hönig wrote:
>
>> I would also like to request a future blog post about animation.
>> I know you have done that in the past, but i am thinking of some animation triggered by user input (say a button, or some text field, which provides parameters for a circle).
>
> Just to make sure I know exactly what you want...
>
> - the user inputs parameters for a circle - I'm assuming size, position, perhaps the fraction of the circle (half, quarter, two-thirds, whatever)
> - the user then clicks a button and that draws the circle.
>
> Is that more or less what you're after?
Hi Ron!
Do you still have the Maurer Rose example? Do you think it could fit this kind of example?
Antonio
|
January 22, 2020 Re: Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ron Tarrant | On Tuesday, 21 January 2020 at 14:02:59 UTC, Ron Tarrant wrote:
> Today's post was requested by Joel Christensen, how to have one button affect another. You can find it here: https://gtkdcoding.com/2020/01/21/0099-sfx-button-interactions-i-text-labels.html
Another useful tutorial would be something using bindProperty and/or bindPropertyWithClosures. Once I used bindProperty with vala, but I think there is no any example to do it with gtkd.
|
January 22, 2020 Re: Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ron Tarrant | On Tuesday, 21 January 2020 at 22:06:30 UTC, Ron Tarrant wrote:
> On Tuesday, 21 January 2020 at 18:57:47 UTC, Jan Hönig wrote:
>
>> I would also like to request a future blog post about animation.
>> I know you have done that in the past, but i am thinking of some animation triggered by user input (say a button, or some text field, which provides parameters for a circle).
>
> Just to make sure I know exactly what you want...
>
> - the user inputs parameters for a circle - I'm assuming size, position, perhaps the fraction of the circle (half, quarter, two-thirds, whatever)
> - the user then clicks a button and that draws the circle.
>
> Is that more or less what you're after?
Yes something in that manner.
I am not familiar with GTK, i have done a few things in QT.
I am mainly interested in the information passing.
When i make some change to the input || hit enter || hit the button, the scene will change accordingly.
For a more satisfying example, you could have a ball on one line. Below that you have a horizontal slider. Whenever you move the slider, the ball on the line will move accordingly.
|
January 22, 2020 Re: Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Posted in reply to Antonio Corbi | On Tuesday, 21 January 2020 at 22:12:10 UTC, Antonio Corbi wrote: > On Tuesday, 21 January 2020 at 22:06:30 UTC, Ron Tarrant wrote: > Do you still have the Maurer Rose example? I had to look this up. I'd never heard of it before. That being said... > Do you think it could fit this kind of example? When I say "demo" I'm talking about examples of how to do various GTK GUI stuff rather than mathematical exercises. Trying to do this mathematical/drawing exercise, I'd be waaaaaaay out of my element. The few simple math/draw examples I did in Cairo (posts #0057 to #0064) is about my limit as far as math goes. However, I can point you at this repository of Java examples: https://github.com/iabin/Maurer-Rose/tree/master/src Using the methods outlined in the posts I've listed, you should be able to port it over from Java to D. I'm not a mathematician, so I wouldn't be of much help. I wish you the best of luck on this endeavour. |
January 22, 2020 Re: Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ferhat Kurtulmuş | On Wednesday, 22 January 2020 at 09:18:51 UTC, Ferhat Kurtulmuş wrote:
> Another useful tutorial would be something using bindProperty and/or bindPropertyWithClosures. Once I used bindProperty with vala, but I think there is no any example to do it with gtkd.
I found a bindProperty() function in gobject/ObjectG.d. Is this what you're referring to?
|
January 22, 2020 Re: Blog Post #0099: A Special Request | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Hönig | On Wednesday, 22 January 2020 at 15:29:44 UTC, Jan Hönig wrote:
> Yes something in that manner.
> I am not familiar with GTK, i have done a few things in QT.
> I am mainly interested in the information passing.
> When i make some change to the input || hit enter || hit the button, the scene will change accordingly.
>
> For a more satisfying example, you could have a ball on one line. Below that you have a horizontal slider. Whenever you move the slider, the ball on the line will move accordingly.
Would you be able to do a quick sketch/rough drawing of this? Perhaps before and after drawings? I wanna make sure I understand exactly what you're looking for. I don't know if this forum will allow images, so perhaps we could switch over to email (gtkdcoding@gmail.com) so you can attach them.
|
Copyright © 1999-2021 by the D Language Foundation