Can I create objects (like rectangles) with commands in Powerbuilder?
up vote
0
down vote
favorite
I'm trying to program Tetris with powerscript. Don't ask why, but I would know, if I could create random objects in powerbuilder.
sybase powerbuilder tetris
add a comment |
up vote
0
down vote
favorite
I'm trying to program Tetris with powerscript. Don't ask why, but I would know, if I could create random objects in powerbuilder.
sybase powerbuilder tetris
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to program Tetris with powerscript. Don't ask why, but I would know, if I could create random objects in powerbuilder.
sybase powerbuilder tetris
I'm trying to program Tetris with powerscript. Don't ask why, but I would know, if I could create random objects in powerbuilder.
sybase powerbuilder tetris
sybase powerbuilder tetris
asked Nov 5 at 19:38
Lemonated
131
131
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
You can create these types of objects within a datawindow control. Generally this would be a series of 'Modify' statements. Here is one example from the PowerBuilder help:
string modstring
modstring = 'create rectangle(Band=background X="206" Y="6"
height="69" width="1363" brush.hatch="6" brush.color="12632256"
pen.style="0" pen.width="14" pen.color="268435584" background.mode="2"
background.color="-1879048064" name=rect1 )'
dw_cust.Modify(modstring)
This creates a rectangle in the background of a datawindow. If you need to move the thing you would have to set up a timer and then change the x and y properties appropriately.
To create a Tetris type game in PB would be quite an achievement. I've made games with PB before but none which had the movement complexity of Tetris.
I try this out. Thank you :-)
– Lemonated
Nov 7 at 17:12
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
You can create these types of objects within a datawindow control. Generally this would be a series of 'Modify' statements. Here is one example from the PowerBuilder help:
string modstring
modstring = 'create rectangle(Band=background X="206" Y="6"
height="69" width="1363" brush.hatch="6" brush.color="12632256"
pen.style="0" pen.width="14" pen.color="268435584" background.mode="2"
background.color="-1879048064" name=rect1 )'
dw_cust.Modify(modstring)
This creates a rectangle in the background of a datawindow. If you need to move the thing you would have to set up a timer and then change the x and y properties appropriately.
To create a Tetris type game in PB would be quite an achievement. I've made games with PB before but none which had the movement complexity of Tetris.
I try this out. Thank you :-)
– Lemonated
Nov 7 at 17:12
add a comment |
up vote
0
down vote
accepted
You can create these types of objects within a datawindow control. Generally this would be a series of 'Modify' statements. Here is one example from the PowerBuilder help:
string modstring
modstring = 'create rectangle(Band=background X="206" Y="6"
height="69" width="1363" brush.hatch="6" brush.color="12632256"
pen.style="0" pen.width="14" pen.color="268435584" background.mode="2"
background.color="-1879048064" name=rect1 )'
dw_cust.Modify(modstring)
This creates a rectangle in the background of a datawindow. If you need to move the thing you would have to set up a timer and then change the x and y properties appropriately.
To create a Tetris type game in PB would be quite an achievement. I've made games with PB before but none which had the movement complexity of Tetris.
I try this out. Thank you :-)
– Lemonated
Nov 7 at 17:12
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
You can create these types of objects within a datawindow control. Generally this would be a series of 'Modify' statements. Here is one example from the PowerBuilder help:
string modstring
modstring = 'create rectangle(Band=background X="206" Y="6"
height="69" width="1363" brush.hatch="6" brush.color="12632256"
pen.style="0" pen.width="14" pen.color="268435584" background.mode="2"
background.color="-1879048064" name=rect1 )'
dw_cust.Modify(modstring)
This creates a rectangle in the background of a datawindow. If you need to move the thing you would have to set up a timer and then change the x and y properties appropriately.
To create a Tetris type game in PB would be quite an achievement. I've made games with PB before but none which had the movement complexity of Tetris.
You can create these types of objects within a datawindow control. Generally this would be a series of 'Modify' statements. Here is one example from the PowerBuilder help:
string modstring
modstring = 'create rectangle(Band=background X="206" Y="6"
height="69" width="1363" brush.hatch="6" brush.color="12632256"
pen.style="0" pen.width="14" pen.color="268435584" background.mode="2"
background.color="-1879048064" name=rect1 )'
dw_cust.Modify(modstring)
This creates a rectangle in the background of a datawindow. If you need to move the thing you would have to set up a timer and then change the x and y properties appropriately.
To create a Tetris type game in PB would be quite an achievement. I've made games with PB before but none which had the movement complexity of Tetris.
answered Nov 6 at 16:27
Matt Balent
1,7431116
1,7431116
I try this out. Thank you :-)
– Lemonated
Nov 7 at 17:12
add a comment |
I try this out. Thank you :-)
– Lemonated
Nov 7 at 17:12
I try this out. Thank you :-)
– Lemonated
Nov 7 at 17:12
I try this out. Thank you :-)
– Lemonated
Nov 7 at 17:12
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53161087%2fcan-i-create-objects-like-rectangles-with-commands-in-powerbuilder%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password