GUI
- FDR
- Offline
I can't do the image button, because the ImageMap struct member of the guiButton defined const, so I cannot assign a value for it runtime.
What do you suggest?
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
FDR wrote: Help!
I can't do the image button, because the ImageMap struct member of the guiButton defined const, so I cannot assign a value for it runtime.
What do you suggest?
What are you trying to do?
you want an image to change when you press it, or to only do an action when an image is pressed?
I was planning to support the latter case by defining a screen-region that when clicked executes a callback. If you want to be able to dynamically change an image, that is somewhat more challenging. I currently do it by deletingthe old object and replacing it with a new one.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Based on the button struct, which has everything for it, but would make a different create function, which instead of the button type gets file name and size parameters, like an image control does.
But I can't fill the buttons ImageMap part with this data, because it is defined const...
EDIT: Sorry, I've misunderstood you question! So I want the latter case only...
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I have checked in a complete rearrangement of the mixer pages!
Now it is much more logical for me.
(Especially after you have enlighten me about the min/max values.)
All the controls are in the order they shoul be set, or at least in which they effect the output.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
FDR wrote: I want to make an image button, like an icon.
Based on the button struct, which has everything for it, but would make a different create function, which instead of the button type gets file name and size parameters, like an image control does.
But I can't fill the buttons ImageMap part with this data, because it is defined const...
EDIT: Sorry, I've misunderstood you question! So I want the latter case only...
...or should we add every icon as a new button type?
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Edit:
On the main page the icon and the model name will both go to the load/save page. this is just an example, we probably don't want them both to gothere, but it shows how it works.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- MatCat
- Topic Author
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Let me know if you see any regressions. The new code should make it possible to support a pure-numeric keyboard. I'll work on that next.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
The listbox has button support, but it isn't very good (I used left/right for the scrolling)
I also fixed it so you can change mixer-type without resetting the selection.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
PhracturedBlue wrote: Ok, the fixed-id now uses a number-only keypad.
The listbox has button support, but it isn't very good (I used left/right for the scrolling)
I also fixed it so you can change mixer-type without resetting the selection.
About the numeric keypad's navigation:
- from 8 the up goes to 4;
- from 0 the up goes to 7;
- from 9 the up goes to 5;
- from 9 the down is not clear, where it goues to;
- can't select done.
EDIT:
Can the list box selection include the scrollbar too? They form one control together.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
It took me a while to turn it on!
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
It should be much more intuitive now.FDR wrote: About the numeric keypad's navigation:
- from 8 the up goes to 4;
- from 0 the up goes to 7;
- from 9 the up goes to 5;
- from 9 the down is not clear, where it goes to;
- can't select done.
No, that will be somewhat difficult as they are separate gui objects.EDIT:
Can the list box selection include the scrollbar too? They form one control together.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Yes indeed.PhracturedBlue wrote: I think we do need different icons for these toggle-able spinbuttons. That would make it clear when they can be pressed or not.
I've just made the reverse clickable too...
Ckecked in.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Better, but still hard to select done:PhracturedBlue wrote:
It should be much more intuitive now.FDR wrote: About the numeric keypad's navigation:
- from 8 the up goes to 4;
- from 0 the up goes to 7;
- from 9 the up goes to 5;
- from 9 the down is not clear, where it goes to;
- can't select done.
- from del the down goes to 0;
- from done the up goes to 9...
OK, not a big deal...PhracturedBlue wrote:
No, that will be somewhat difficult as they are separate gui objects.EDIT:
Can the list box selection include the scrollbar too? They form one control together.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Ok, i merged it. i also just added support for SPINPRESS buttons. They aren't used yet though.FDR wrote:
Yes indeed.PhracturedBlue wrote: I think we do need different icons for these toggle-able spinbuttons. That would make it clear when they can be pressed or not.
I've just made the reverse clickable too...
Ckecked in.
you can create spinp32.bmp, spinp64.bmp and spinp96.bmp
we can then switch the controls over to use FILE_SPINPRESS64 etc where necessary to use them.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
yes, that is known. I'm not sure yet how to fix it without coding every transition though.FDR wrote:
Better, but still hard to select done:PhracturedBlue wrote:
It should be much more intuitive now.FDR wrote: About the numeric keypad's navigation:
- from 8 the up goes to 4;
- from 0 the up goes to 7;
- from 9 the up goes to 5;
- from 9 the down is not clear, where it goes to;
- can't select done.
- from del the down goes to 0;
- from done the up goes to 9...
For now the rule is that when switching rows, it will always select the closest numeric/alpha button, and will never select the 'special' del,done, caps, ... buttons.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Checked in spinpress bitmaps.PhracturedBlue wrote: Ok, i merged it. i also just added support for SPINPRESS buttons. They aren't used yet though.
you can create spinp32.bmp, spinp64.bmp and spinp96.bmp
we can then switch the controls over to use FILE_SPINPRESS64 etc where necessary to use them.
Please Log in or Create an account to join the conversation.