Report Designer
-
Hi All!!! I have to design an application like access report designer. Where we would have drag n drop contorls like Text Boxes, Check Boxes, Radio Buttons, Labels etc and then have to preview them,select them, resize them and so on. I was thinkin about Creating standard Contorls but then I realized that its difficult to handle them, for example if you click a textbox to select it for resizing, it will start funtioning, similary if u select checkbox to resize, it will eb checked. And their preview wasnt posisble a well. So i created my own custom controls using GDI+ whose preview is also possible in PrintPreviewDialog. Any help (even if is very basic and just provide an idea to take start) will be highly appriciated. Thanx in Advance :) sorry for my bad English.
-
Hi All!!! I have to design an application like access report designer. Where we would have drag n drop contorls like Text Boxes, Check Boxes, Radio Buttons, Labels etc and then have to preview them,select them, resize them and so on. I was thinkin about Creating standard Contorls but then I realized that its difficult to handle them, for example if you click a textbox to select it for resizing, it will start funtioning, similary if u select checkbox to resize, it will eb checked. And their preview wasnt posisble a well. So i created my own custom controls using GDI+ whose preview is also possible in PrintPreviewDialog. Any help (even if is very basic and just provide an idea to take start) will be highly appriciated. Thanx in Advance :) sorry for my bad English.
Itanium wrote: Any help (even if is very basic and just provide an idea to take start) will be highly appriciated. When you click on the control, trap the click by handling the "OnClick" event. Draw a frame around the control and set the focus to the control. You might need to trap the message itself rather than the event and "steal" it from the control. I've been wanting to write a generic form layout tool for ages, but have never gotten around to it. Want to collaborate? Marc Latest AAL Article My blog Join my forum!
-
Itanium wrote: Any help (even if is very basic and just provide an idea to take start) will be highly appriciated. When you click on the control, trap the click by handling the "OnClick" event. Draw a frame around the control and set the focus to the control. You might need to trap the message itself rather than the event and "steal" it from the control. I've been wanting to write a generic form layout tool for ages, but have never gotten around to it. Want to collaborate? Marc Latest AAL Article My blog Join my forum!
since he is going to use it in a report i think it would be unwise to use actual window controls. it would be better to create your own gdi+ based 'controls' that render themselves onto a graphics/dc using true controls he will get a hard time to render them in a good way to the printer , and if the report is big , he will endup with a zillion hwnds that eats resources.. if you want to do a form designer , you should take a look aT: http://www.windowsforms.com/default.aspx?tabindex=5&tabid=47&ItemID=13&mid=142[^] //Roger
-
since he is going to use it in a report i think it would be unwise to use actual window controls. it would be better to create your own gdi+ based 'controls' that render themselves onto a graphics/dc using true controls he will get a hard time to render them in a good way to the printer , and if the report is big , he will endup with a zillion hwnds that eats resources.. if you want to do a form designer , you should take a look aT: http://www.windowsforms.com/default.aspx?tabindex=5&tabid=47&ItemID=13&mid=142[^] //Roger
Roger J wrote: using true controls he will get a hard time to render them in a good way to the printer , and if the report is big , he will endup with a zillion hwnds that eats resources.. Those are great points. My thinking cap isn't properly attached this morning. :) Marc Latest AAL Article My blog Join my forum!
-
Roger J wrote: using true controls he will get a hard time to render them in a good way to the printer , and if the report is big , he will endup with a zillion hwnds that eats resources.. Those are great points. My thinking cap isn't properly attached this morning. :) Marc Latest AAL Article My blog Join my forum!
Hello Marc!! Infact i started work on the deisgner few days back. I used the same way as Rojer told. I have made my own custom control classes hierarchy and renedring them both on design time and at preview. Here i posted because( i was studying Java Reflection API's in previous days there we can have all classes , properties methods etc i htought that if anyone have used same kind of thing in .net (if available)) so that if i could found a better way but i came to know htat i am going in right direction. You said about "Collboration"... Sure ...why not...:) sorry for my bad English.