diagonal controls
-
dear all, this may seem as a weird problem but still i think its worth askin' in this forum of TOPGUN programmers. is there any way to create controls diagonally or at any given angle. Eg a button inclined at say 45 degrees wrt to the dialog. i just wondered if this can be done in windows or any other programming environment. :omg: regards, rIsHaBh
-
dear all, this may seem as a weird problem but still i think its worth askin' in this forum of TOPGUN programmers. is there any way to create controls diagonally or at any given angle. Eg a button inclined at say 45 degrees wrt to the dialog. i just wondered if this can be done in windows or any other programming environment. :omg: regards, rIsHaBh
I have never tried it, but may be using regions will solve your problem.
Hosam Aly Mahmoud
-
dear all, this may seem as a weird problem but still i think its worth askin' in this forum of TOPGUN programmers. is there any way to create controls diagonally or at any given angle. Eg a button inclined at say 45 degrees wrt to the dialog. i just wondered if this can be done in windows or any other programming environment. :omg: regards, rIsHaBh
It is possible to output text at any angle. None of the existing win32 controls will allow you to edit text at an angle. look thru MSDN for Rotating Lines of Text You can rotate TrueType fonts at any angle. This is useful for labeling charts and other illustrations. The following example rotates a string in 10-degree increments around the center of the client area by changing the value of the lfEscapement and lfOrientation members of the LOGFONT structure used to create the font. On top of this you would need to draw a rotated control on a transparent window and deal with hit testing etc and passing mouse events to underlying controls 'shadowed' by the transparent window (which would still have normal horizontal and vertical orientation). All in all not work the effort :)
-
It is possible to output text at any angle. None of the existing win32 controls will allow you to edit text at an angle. look thru MSDN for Rotating Lines of Text You can rotate TrueType fonts at any angle. This is useful for labeling charts and other illustrations. The following example rotates a string in 10-degree increments around the center of the client area by changing the value of the lfEscapement and lfOrientation members of the LOGFONT structure used to create the font. On top of this you would need to draw a rotated control on a transparent window and deal with hit testing etc and passing mouse events to underlying controls 'shadowed' by the transparent window (which would still have normal horizontal and vertical orientation). All in all not work the effort :)
it comes around to the same question....how do i create rotated control? rIsHaBh