|
| Get a horizontal Shape by programming |
| Iniciado por guest, 23,mar. 2015 16:27 - 8 respuestas |
| |
| | | |
|
| |
| Publicado el 23,marzo 2015 - 16:27 |
Hello,
First I want to mention that I am quite new to WinDev and pogramming, please keep that in mind. <img src="/NG2013_WEB/ui/smiley/1.gif" align=absmiddle border=0 alt=":)"> I want to get a horziontal line with "controlcreate()" with typeshape. After creation the shapes are vertically and I would like to change their direction by programming. How can I do this?
OR I also thought of coloring background and line to get a horizontal line. The shape looks like []=control border, ||=line [ || ] after creation. Using the same color in background and line would look like a horizontal line I think. The "..brushcolor" command didn't change the background color. As I tried to modify the background color of a manually created shape in the descrpition it only worked with preset gradient colors like "tube" but not with standard colors like "black" or "red". How can I change the background color by programming or how can I make the "..brushcolor" command working?
Hope for your Help! Greetings  |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,marzo 2015 - 16:31 |
Hi Markus,
Did you try to work with the control properties? <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?1013029">http://doc.windev.com/en-US/…</a>
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,marzo 2015 - 16:35 |
Hi Alexandre,
Yes I kind of studied it, but the only useful command I found was the ..brushcolor-command. And as I said if I type control..brushcolor = black nothing changes. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,marzo 2015 - 16:57 |
Hi Markus,
I never used this control personnaly (because never needed to do so). So I can't help more. But a side question would be, what are you trying to achieve? Is drawing in a bitmap control a solution for you, instead of creating many form controls?
Best regards, Alexandre Leclerc
PS. Maybe the Form Control style is managed by a style? If so, check in the style tab. Creat a style, create a skin template and then apply the desired style to the shape. In WD20 you will be able to use ..Style to do that very simply. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,marzo 2015 - 17:16 |
Hi Alexandre,
I also found the solution to create an image and then draw lines with "dstartdrawing" and "dline", but my in my previous project I used shapes and created a fixed number of them manually. Now my task is to do the same but generate them so there are not only 3 fixed lines but n lines, depending on the User. Just tried your Style-Method (using WD19) and it nearly worked. After creating a style and using it with "changestyle" now the line looks like ______________|______________ a mirrored T. <img src="/NG2013_WEB/ui/smiley/5.gif" align=absmiddle border=0 alt=":D">
Greetings, Markus |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,marzo 2015 - 18:08 |
Hi Markus,
Then work differently: create a form control that will be you line "model" (make it invisible) then use the ControlClone() command to make an exact copy of the desired line. <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?3025017">http://doc.windev.com/en-US/…</a>
Maybe you will have better success and will answer the requirements.
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 24,marzo 2015 - 10:27 |
Hi Alexendre,
Well, I guess I have to do it that way. :|
Thank you for helping me <img src="/NG2013_WEB/ui/smiley/1.gif" align=absmiddle border=0 alt=":)">
Best regards Markus |
| |
| |
| | | |
|
| | |
| |
| Publicado el 24,marzo 2015 - 13:16 |
Hi Markus,
You are welcome. Also, if you have issues with the form control you can send these to the Free Technical Support. But my feeling on that one is that you probably will not see any improvements for this control (alas). But maybe they can give you hints on how to do exactly what you want to do, if this is possible.
Best regards, Alexandre Leclerc |
| |
| |
| | | |
|
| | |
| |
| Publicado el 26,marzo 2015 - 11:16 |
Hi Alexendre,
Thank you <img src="/NG2013_WEB/ui/smiley/1.gif" align=absmiddle border=0 alt=":)">. I think this problem may not be worthy to send it to the Technical Support.
Best regards, Markus |
| |
| |
| | | |
|
| | | | |
| | |
|