News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

User template project creation

Started by kkez, February 23, 2006, 11:19:50 PM

Previous topic - Next topic

kkez

When creating a default project, the "Browse for folder" (the one you get by calling SHBrowseForFolder, i dunno its wxwidgets name) dialog has the button to create a new folder. When creating a project from a user template, instead, the "Browse for folder" dialog does not have that button.

EDIT: also, that dialog isn't modal (actually it seems a top window, even if child of codeblocks...), so if i switch to another program and return to CB, that dialog is visible but suddenly disappear under the codeblocks window. If i click on the shell toolbar (the one with the start button on it, i don't know how to all that  :D) button for that dialog, the same thing happens.

EDIT2: another little thing: you can name the user template project, but that seems to apply only to the project file name, and not to the project name inside codeblocks.

thomas

Hmm... I just looked into this, thought "Why, someone forgot a flag, that'll be easy to fix".
But in fact... there is no flag you can pass to wxFileDialog which controls whether or not you can create new folders :(

Also, I checked for modality, and all wxFileDialogs are shown as modal dialogs.

Unsure whether we will be able to fix this...
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya


kkez

Quote from: thomas on February 24, 2006, 12:29:03 AM
Hmm... I just looked into this, thought "Why, someone forgot a flag, that'll be easy to fix".
But in fact... there is no flag you can pass to wxFileDialog which controls whether or not you can create new folders :(

Also, I checked for modality, and all wxFileDialogs are shown as modal dialogs.

Unsure whether we will be able to fix this...

It's not the wxFileDialog, it's the wxDirDialog (i found its name). And there's a flags that enable that button: wxDD_NEW_DIR_BUTTON.
See the screenshots attached:


[attachment deleted by admin]