I'm converting my PB SerialTerminal program to full ScreenMode ...
but I'm stuck with a Enumeration problem
as I undertands, Enum is a compiler part...
Code: Select all
Enumeration
#MyWindow
#MyScreen
#MyFont
#MyMPU_Sprite
#MyConverterSW_Sprite
#MyConverterHW_Sprite
...
EndEnumeration
Code: Select all
CreateSprite (#MyMPU_Sprite, 250, 300, #PB_Sprite_AlphaBlending)
CreateSprite (#MyConverterSW_Sprite, 250, 125, #PB_Sprite_AlphaBlending)
CreateSprite (#MyConverterHW_Sprite, 250, 125, #PB_Sprite_AlphaBlending)
Code: Select all
StartDrawing (SpriteOutput ())
...
...
...
...
StopDrawing ()
But then if I want to add more SignalConverters on the screen, (see image arrow below)
- I hover with mouse on the RibbonBar
- I click inside the SignalConverter Button
- I drag to the position
- I drop by release the mouse button
Till here it works ok,
- I need to create a new Sprite and populate it ...
Q1)
Now I need to add/create a new Sprite Numeration,
What is the best way to add (Enumerate) a image or sprite number ?
Can I just do this inside a compiled PB .exe file:
Code: Select all
MyNextSprite.i = CreateSprite (#PB_Compiler_EnumerationValue, 250, 125, #PB_Sprite_AlphaBlending)
- I use Win10Pro + PB 5.73x64
thanks,
marc,


