Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » login and main window
Re: login and main window [message #55353 is a reply to message #55352] Sun, 01 November 2020 23:22 Go to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

You could simplify it even more according to GUI tutorial:
struct Snh : public WithsnhLayout<TopWindow> {
   typedef Snh CLASSNAME; 

   Snh(){
  	 CtrlLayoutOKCancel(*this, "Acesso inicial");
   }  
};

Please rename "sai" to "cancel" and everything should be OK. Also tomorrow there will be update to tutorail and you should see more information about "CtrlLayoutOKCancel" construction.

Also, here is some power tip - write application using English with t_ macro
CtrlLayoutOKCancel(*this, t_("Initial access"));

Then all you need to do is translate the app to your language in .t file and it should work like a charm. For more information please read following document. At the beginning it was hard to me to write using English only (code and text), but in the end it paid off.

Klugier


U++ - one framework to rule them all.

[Updated on: Sun, 01 November 2020 23:23]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to access base class function in this case?
Next Topic: report generator
Goto Forum:
  


Current Time: Sun Apr 28 10:58:56 CEST 2024

Total time taken to generate the page: 0.02140 seconds