hi I''ve got an MDI-based app, and when it''s restarted i''d like it to remember the contents and state (eg line pos in a TextCtrl) of the MDI Children. Any tips on how to easily marshal this sort of thing? Also, the default text size for the contents of controls (ComboBox, Text etc) is quite small on my monitor (MSWIN) - any suggestions on how to adjust this in a fairly portable, general way? good news about msvc-swig. when it''s stable enough i''d be interested in trying to swig some classes. cheers alex
alex fenton wrote:> > Also, the default text size for the contents of controls (ComboBox, > Text etc) is quite small on my monitor (MSWIN) - any suggestions on > how to adjust this in a fairly portable, general way?Is it small on all applications or just your wxRuby app? Nick
Nick wrote:> Is it small on all applications or just your wxRuby app?no, just my WxRuby App. I''m not really sure where it''s picking the default font it uses up from; can''t see anything like it in my desktop settings. a
devel@nicreations.com
2004-Jul-28 17:17 UTC
[Wxruby-users] app state persistence. text size
Quoting alex fenton <alex@pressure.to>:> hi > > I''ve got an MDI-based app, and when it''s restarted i''d like it to > remember the contents and state (eg line pos in a TextCtrl) of the MDI > Children. Any tips on how to easily marshal this sort of thing?I don''t know of anything in wxWindows that makes that easier except for wxConfig, and I don''t think thats in wxRuby yet. Marhalling in Ruby is so easy that I''d suggest keeping data in Ruby structures.> Also, the default text size for the contents of controls (ComboBox, Text > etc) is quite small on my monitor (MSWIN) - any suggestions on how to > adjust this in a fairly portable, general way?Do the wxWidgets samples exhibit the same problems, or just wxRuby? Nick
devel@nicreations.com wrote: >> Also, the default text size for the contents of controls (ComboBox, Text >> etc) is quite small on my monitor (MSWIN) - any suggestions on how to >> adjust this in a fairly portable, general way? > > > > Do the wxWidgets samples exhibit the same problems, or just wxRuby? yep, wxwidgets too it turns out. the wxwindows default here (from native_font_info) seems to be MS Sans Serif, which looks terrible sized up to 10pt. There looks to be a way to retrieve a "GUI Default Font" which might be what I want, but it''s not yet ported. I''ve hard-coded it to match my settings for now, which looks great, temporary but works for m. Anyway, thanks for the help. Like the XML example in the Dialogs Tutorial, am sold on the idea. cheers alex