agraham Expert Licensed User Longtime User Apr 1, 2009 #21 CryoGenID said: The image inside the RectDest is always completely visible and simply gets streched with increase of the RestDest... Click to expand... Probably because you are not resizing the source rectangle but are specifying the entire source bitmap to be drawn on the destination Rectangle.
CryoGenID said: The image inside the RectDest is always completely visible and simply gets streched with increase of the RestDest... Click to expand... Probably because you are not resizing the source rectangle but are specifying the entire source bitmap to be drawn on the destination Rectangle.
klaus Expert Licensed User Longtime User Apr 1, 2009 #22 Here you have an example on how to do it. As agraham mentioned, you must resize the source rectangle to the width you want to display and the width and height of source and destination rectangles must be the same to avoid stretching. Best regards. Attachments CustomControl.zip CustomControl.zip 14.1 KB · Views: 324
Here you have an example on how to do it. As agraham mentioned, you must resize the source rectangle to the width you want to display and the width and height of source and destination rectangles must be the same to avoid stretching. Best regards.
klaus Expert Licensed User Longtime User Apr 2, 2009 #23 Here is another example. It erases the end of the image when the next one is shorter than the previous one. Best regards. Attachments CustomControl1.zip CustomControl1.zip 14.3 KB · Views: 327
Here is another example. It erases the end of the image when the next one is shorter than the previous one. Best regards.
C CryoGenID Active Member Licensed User Longtime User Apr 15, 2009 #24 Klaus (and agraham and cableguy), thank you VERY much! This is exactly it I will now try to incorporate this into my app Thanks a lot again!! Best regards, Chris Last edited: Apr 15, 2009
Klaus (and agraham and cableguy), thank you VERY much! This is exactly it I will now try to incorporate this into my app Thanks a lot again!! Best regards, Chris
B Byak@ Active Member Licensed User Apr 16, 2009 #25 and what about creating a custom scrollbar(with chandgeble images)?for htmlpanel for example (this control has scroll event). i'm try but there are many-many work with it (for example this control must ascept transparent thence it will be formex form we add it 'addform' to general formex) maybe somebody want to do it? :-[ of course I want it to desktop =)
and what about creating a custom scrollbar(with chandgeble images)?for htmlpanel for example (this control has scroll event). i'm try but there are many-many work with it (for example this control must ascept transparent thence it will be formex form we add it 'addform' to general formex) maybe somebody want to do it? :-[ of course I want it to desktop =)