Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: samidha on February 19, 2016, 07:21:44 pm

Title: Size and Coordinated of the Text Editor
Post by: samidha on February 19, 2016, 07:21:44 pm
Hello all !

I am working on a project on Code Blocks where I need to retrieve the size and the coordinates of the text editor window in the IDE. I am not able to find the required documentation or help for the same. If anyone could direct me towards a useful documentation, it would be a huge help !

Thanks
Title: Re: Size and Coordinated of the Text Editor
Post by: CHAOS-THEORY on February 19, 2016, 08:19:21 pm
I don't know almost anything about wxWidgets, but the editor must be a wxWidgets window.
I have checked the source and found cbeditor.h in the includes, and cbeditorprintout.h might help you, check the wxRect structures they prolly hold the size of the text editing window
There's also editorbase.h
Title: Re: Size and Coordinated of the Text Editor
Post by: oBFusCATed on February 19, 2016, 08:26:19 pm
@samidha: Why do you need to do this?

@CHAOS-THEORY: Can you please stop using this ugly font?
Title: Re: Size and Coordinated of the Text Editor
Post by: CHAOS-THEORY on February 19, 2016, 09:03:42 pm
@CHAOS-THEORY: Can you please stop using this ugly font?
Nope, i like this font, and am allowed to use it.