How to develop Menu options in a C console application - mrtyler/queen GitHub Wiki
<%= render :partial => 'form' %> <%= submit_tag "Create" %>
<% end %>
<%= link_to 'Back', :action => 'list' %>
loop(...) { // is max less than input at current position?
// is input at pos equal to max ? // write out positions
}# [PostTitle Median](http://programmersheaven.com/categories/offtopic) 
- !doctype html
أضيف بتاريخ: 16-Nov-2014 أضيف بواسطة: معانق الجرحّ الزيارات: 4442 زيارة
صعود الجبال ومن يتهيب صعود الجال يعش أبد الدهر بين الحفر (أبو القاسم الشابي)
أضيف بتاريخ: 10-Oct-2008 أضيف بواسطة: ابن حجر الغامدي الزيارات: 13401 زيارة
فارسل حكيماً
إذا كنت في حاجة مرسلا فأرسل حكيما ولا توصه وإن ناصح منك يوما دنا فلا تنأ عنه ولا تعصه (الشافعي)
أضيف بتاريخ: 10-Oct-2008 أضيف بواسطة: ابن حجر الغامدي الزيارات: 4560 زيارة
ٌإقتباس إنها لا تختفي ! إنها تقضي الليالي دائما ً في معطفي دائما ً تحضنُ في الظلمةِ قلبي هذه الشمس لكي لاتنطفي (أحمد مطر)
أضيف بتاريخ: 01-Oct-2008 أضيف بواسطة: سلطان المعيي الزيارات: 3716 زيارة
خراف نزعم أننا بشر لكننا خراف! ليس تماماً.. إنما في ظاهر الأوصاف نُقاد مثلها؟ نعم نُذعن مثلها؟ نعم نُذبح مثلها؟ نعم تلك طبيعة الغنم لكنْ.. يظل بيننا وبينها اختلاف نحن بلا أردِية وهي طوال عمرها ترفل بالأصواف! (احمد مطر)
أضيف بتاريخ: 08-Sep-2008 أضيف بواسطة: فيصل الزيارات: 3017 زيارة
حديث الموسم ما لي أراكَ موَزَّعاً يا خافقي بينَ الأُلى ... أتشُوقُكَ الأصفادُ !؟ فيُجيبُ : إني قد فُتِنْتُ بنجمةٍ حَلَّتْ هنا وسماؤُها بغدادُ ! طَلَعَ الشروقُ من الغروبِ لأجلِها والصيفُ حَرْثٌ والشتاءُ حصادُ ! والناسُ سَهْواً ما جَنوا إلاّ دمي أَكْرِمْ بِهم , قد أحسنوا وأجادوا! (سامي العامري)
أضيف بتاريخ: 04-Sep-2008 أضيف بواسطة: سامي العامري الزيارات: 2552 زيارة
في الدنيا أُف على الدُّنيا وأسبابُها فإنها للحُزن مخلوقه همومُها ما تنقضي ساعةً عن ملِكٍ فيها وعن سُوقَه (الإمام علي بن أبي طالب)
أضيف بتاريخ: 30-Aug-2008 أضيف بواسطة: العابرة الزيارات: 3657 زيارة
في صيانة اللسان فلا تكثرنَّ القول في غير وقتهِ وأدمن على الصمتِ المُزينِ للعقلِ يموتُ مِن عثرةٍ بلسانهِ وليسَ يموتُ المرءُ مِن عثرة الرِجلِ و لا تكُ مبثاثاً لقولكَ مغشياً فستجلب البغضاء مِن زلة النعلِ (علي بن أبي طالب) _ `$dimensions = "ga:landingpagePath"; $metrics = "ga:sessions"; $filters = "ga:landingpagePath=~^/biz"; $sort = "-ga:sessions";` > Hi,
- Does anyone know how to get the directory path that an OpenDialog or SaveDialog box will open to (assuming an unspecified InitialDir)?
- It can be extracted from the Filename property once the dialog has been executed, but I want to find the directory path that it will be opening to before my app executes it.
- ie. I have a box that displays the last directory that a file was opened from or saved to (the user's working dir). It's all well and good after a dialog execution but I want to be able to put something in there when the application form is Created (without forcing the InitialDir to some hardcoded directory).
- Thanks
procedure Form1.FormDestroy(Sender: TObject); var IniFile: TIniFile; begin IniFile := TIniFile.Create('MyApp.ini'); with IniFile do try if OpenDialog1.Filename <> then WriteString('Paths', 'WorkDir', ExtractFilePath(OpenDialog1.Filename)); // Write the file path to the inifile for next time, but only if the opendialog was executed. finally IniFile.Free; end; end; /code The initial directory is hardcoded into the program, but after the program has run and the opendialog's directory has changed the new directory is recorded. The second time the program runs, the initialdir is set to the stored directory.
Flag Quote · Vote Down Vote Up · Share on Facebook MRGoodMRGood Posts: 15Member November 2002
- : Hi,
- : Does anyone know how to get the directory path that an OpenDialog or SaveDialog box will open to (assuming an unspecified InitialDir)?
- :
- : It can be extracted from the Filename property once the dialog has been executed, but I want to find the directory path that it will be opening to before my app executes it.
- :
- : ie. I have a box that displays the last directory that a file was opened from or saved to (the user's working dir). It's all well and good after a dialog execution but I want to be able to put something in there when the application form is Created (without forcing the InitialDir to some hardcoded directory).
- :
- : Thanks
- :
- :
- The current directory can be retrieved using the GetCurrentDirectory() function (see help files for more info).
- As for storing the dialog's directory, I suggest you use a TIniFile key or a TRegistry key to store the working directory in. Here is a code based on the TIniFile to help you get started.
- [code]
- procedure Form1.FormCreate(Sender: TObject);
- var
- IniFile: TIniFile;
- begin
- IniFile := TIniFile.Create('MyApp.ini');
- with IniFile do try
- OpenDialog1.InitialDir := ReadString('Paths', 'WorkDir',
- ExtractFilePath(Application.ExeName));
- // Get the InitialDir from the IniFile or set it to the application dir
- finally
- IniFile.Free;
- end;
- end;
- procedure Form1.FormDestroy(Sender: TObject);
- var
- IniFile: TIniFile;
- begin
- IniFile := TIniFile.Create('MyApp.ini');
- with IniFile do try
- if OpenDialog1.Filename <> then
- WriteString('Paths', 'WorkDir', ExtractFilePath(OpenDialog1.Filename));
- // Write the file path to the inifile for next time, but only if the opendialog was executed.
- finally
- IniFile.Free;
- end;
- end;
- /code
- The initial directory is hardcoded into the program, but after the program has run and the opendialog's directory has changed the new directory is recorded. The second time the program runs, the initialdir is set to the stored directory.
- +1:
• PDF to PDFA1B: compliance failure • Incorectly converting international characters from text file • Footnote does not reflect as expected when document expand to second page • Inline image rendering issues • FootNote does not render correctly when using LineSpacing • Linespacing issue with multiple TextFragments containing hyperlinks • TextReplace moves page contents • PDF to APS : text is converted incorrectly(weird chars appear in result APS). • FloatingBox ignores the margin setting of TextFragment with IsInlineParagrapsh property set to true • PDF to HTML results incorrect output • PDF to HTML - Text is overlapped in Header section • Text wrapping in FreeTextAnnotation • Image to PDF - Evaluation watermark appears when setting IsBlackWhite as True • Auto font size of form field is not being honored after Aspose.PDF API fill • To replace attachments in PDF file • TOC split while using the heading property IsInNewPage • Linespacing issue of first line with IsInlineParagraph property • HTML to PDF: HTML file with SVG image throws exception • HTML to PDF: HTML containing svg • PDF to DOCX - Images are flipped in resultant files • PDF to PDFA preflight verification failed • Repeating Header row of table has left Alignment, instead of Center • Table issue in FloatingBox • EPUB to PDF: PDF page is trimmed • Doc to PDF and then PDF to Image does not show Chinese Text • Form Fill: Fields associated with drop down are not appearing • XML to PDF: Tab stop issue • PDF to HTML: square characters are rendered in resultant HTML • PDF to HTML conversion takes too much time • Exception when trying to convert XFA to Standard format • PDF to HTML: results encoding issue • XPS to PDF throws exception while using Aspose.Pdf for .NET net4.0 dll • PCL to PDF conversion: Text postion • HTML to PDF: Checkboxes are not visible Other most recent bug fixes are also included in this release.