Hehe, it's really time for me to read a c(++) book from begin to end!
Type casting is in fact a nice - less simple as it looks in code - thing!!
But it surprises me, that it doesn't matter if I use
((TEXT*)Object).pos_x = PositionX; or
((PANEL*)Object).pos_x = PositionX; in my code above. Both works independet from which type is passed... (?)
Problem1 -> getting the right HBYTE-type
I couldn't solve it on my own, yet. Has anybody an idea what's wrong with Sid's piece of code?