Basic Code::Blocks problem - c++

I apologize for asking a question of this caliber. I am at my wits end and have spent to much time trying to figure out how to get the side bar I closed back. I closed the "management" (the box with all the headers and .cpp's) and "messages" (where the compiler errors are displayed) box after I created a project. Now I can't get them back. When I close and reopen the management box is back, but the compiler box is not. I looked through the tabs for a while and will continue to investigate, but I think this is a really simple problem I have made extremely hard.
-With thanks and regret.

Right-click on one of the tabs that are showing up in the "Logs & others" pane. Then you should be able to re-enable other tabs in the "Toggle..." menu.
If you don't see any tabs, just right-click in the pane.

Related

Get one file's name method - Customize the interface - Microsoft Visual Studio 2010 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm looking for some guide for Microsoft Visual Studio 2010, but I can't find nothing useful.
I'm coding in c++.
What I need is to create a button (in the dialog box) that, when I click on it, gives me the possibility to choose a file from my pc.
After that, I only need to charge in memory (like in a string variable nameFile) the name of this file.
Do anyone know how to do this operation?
And second problem, do you guys know any youtube guide or similar to customize the interface??
Like to put one picture on the background of the application, or change button style etc.
I used Eclipse before, coding in Java and It was totally different.
Thank you all!!
Here is an MFC tutorial for adding a button to a dialog and what has to be done to "wire it up" so that clicking the button invokes an event handler for the BN_CLICKED event.
Inside the BN_CLICKED event handler (that is, the function that is called when you click the button), you'll want to launch the dialog that lets you selecte the file. #Jongware suggested this link, which has a couple of approaches.
Once the file has been selected and the dialog disappears, you'll have access to the string containing the selected file. How you do this will depend on which approach you take in the preceding step. Once you have the string, you can use the appropriate File Management functions to slice-and-dice the file name as necessary.
That's far short of the actual code you'll need to write, I know, but it should give you enough of a start to get going. HTH.

Is there any way to use Qt and C++ to interact with a webpage?

I have a project using Qt 4.7. I need to display the contents of a webpage produced by performing a search on a website. The site has a box to type text into and an "ok" push button. When the ok button is pushed, it searches the site and goes to another page with the results. It's worth noting that these are NOT webpages made through Qt - they're just normal pages on a website. My Qt code so far is a simple UI with a QLineEdit and QPushButton. When the button is pushed, it needs to run the search on the site as if the user had typed the QLineEdit text into the search bar and clicked the ok button.
I know we're generally supposed to show sample code of what we've tried, but I honestly don't even know where to start with this, or if it's even possible. I've worked extensively with C++ but only a few months with Qt, and I've never had to write something like this. I've written code to write/parse HTML, but never to interact with a webpage that already exists. Can anyone please help? I'm really lost here. Thanks.
Edit: While looking for answers elsewhere online and seeing some of the similar-sounding questions people ask, I feel I should clarify: I absolutely am NOT in any way planning the use this for any sort of malware. It seems like a lot of similar questions get shot down over that, and I can assure everyone this project has no malicious intent whatsoever.
Try this:
void on_nameOfPushButton_pressed()
{
nameOfWebView->load(QUrl(QString("http://<website-url>.com/<search-url>?q="+
QUrl::toPercentEncoding(nameOfLineEdit->text()));
}

How to lock the toolbars in WebStorm

I'm new to JetBrains WebStorm IDE. I really like it, especially for my JavaScript development, but I can't find how to set a very simple preference. I use the Project and Structure toolbars constantly, but every time one of the toolbars loses focus, the toolbar hides. Is there any way to lock the toolbars to keep them from hiding so that they are always visible? It seems like something very obvious, but perhaps not... I have gone through every setting in preferences that I can see but haven't found anything that works.
Any help would be greatly appreciated.
Enable the Pinned Mode:
If you also enable Split Mode, you can have both Project and Structure visible at the same time on the same side.

How to enable drag-selection in Berkelium?

I've got an application that's using Berkelium for an embedded web browser, and I'm having trouble getting the drag-selection to work. I've seen examples of other WebKit-based applications that have it working just like a normal browser (Steam, Awesomium demo), so I feel like it shouldn't be that difficult to get working, but I don't know what may be wrong.
I'm passing in all of the mouse down, mouse move, and mouse up events to the Berkelium browser (mouseButton and mouseMoved functions on the Window) and I feel like that's all I should need to do? I wasn't able to find any help online about this, so hopefully someone here might know what's going on or where to look!
Thanks!
I tried drag selection in Berkelium in my app. It works in fields, it doesn't seem to work for page text.
It looks like the second comment on this page could be a fix for you:
http://code.google.com/p/berkelium-sharp/issues/detail?id=1#c2
The shift clicking apparently works fine to highlight text, so if you send a shift down along with button down, and a shift with button up, it will select the text along with it when the user drags.
I'm not sure if this will have an adverse affect on things like selecting multiple options on a list, but if you don't have that type of thing in the site you're trying to support, it wouldn't matter. I can't think of any other adverse effects right now, but I'm sure some probably exist.
This user says it worked for him, so it's worth a shot.

Tab control like in FireFox in native windows app

I would like to enable tabbing for my application. And so far it seems I could use a tab control. The problem with it is, though, that it creates a border around the client area. What I want, is more like a FireFox tab control, that only takes up a row in the application and doesn't create any frames around client area.
Does anyone know if it is possible with the default control?
I'm using MFC, but that shouldn't change things much I hope.
I'm pretty sure the tab control consists of two parts - the tab headers and the tab page. So you should be able to use the tab header only. It will take more work, but I think you can get what you want.
Look at CTabCtrl and CHeaderCtrl - will those do it? I've never customized them, but it seems possible.
There is also a CPropertySheet that's a good control. But so far it seems disabling and changing some things is simply impossible. No solution for the problem except full ownerdraw path.