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 » U++ Library support » U++ Widgets - General questions or Mixed problems » How to arrange widgets
How to arrange widgets [message #9583] Fri, 18 May 2007 10:08 Go to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
I want to place a imagectrl and a button on a topwindow. This is how i tried to do it:

Add(aboutImg.SetImage(MyImg::about()).LeftPos(1¸ 200).TopPos(1¸ 200));
Add(closeBtn.SetLabel("Close AboutDialog").LeftPos(1, 20).TopPos(250, 20));


I got these error:

G:\Entwicklung\UPP\prohibisZA\aboutdialog.cpp: In constructor `AboutDialog::AboutDialog()':
G:\Entwicklung\UPP\prohibisZA\aboutdialog.cpp:13: error: stray '\184' in program
G:\Entwicklung\UPP\prohibisZA\aboutdialog.cpp:13: error: expected `)' before numeric constant
G:\Entwicklung\UPP\prohibisZA\aboutdialog.cpp:13: error: stray '\184' in program
G:\Entwicklung\UPP\prohibisZA\aboutdialog.cpp:13: error: expected `)' before numeric constant


What's the right way to do it?

Michael
Re: How to arrange widgets [message #9586 is a reply to message #9583] Fri, 18 May 2007 10:19 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
michael wrote on Fri, 18 May 2007 04:08

I want to place a imagectrl and a button on a topwindow. This is how i tried to do it:

Add(aboutImg.SetImage(MyImg::about()).LeftPos(1¸ 200).TopPos(1¸ 200));
Add(closeBtn.SetLabel("Close AboutDialog").LeftPos(1, 20).TopPos(250, 20));


I got these error:

G:\Entwicklung\UPP\prohibisZA\aboutdialog.cpp: In constructor `AboutDialog::AboutDialog()':
G:\Entwicklung\UPP\prohibisZA\aboutdialog.cpp:13: error: stray '\184' in program


What's the right way to do it?

Michael


You did it right, just got puzzled by Assist++:

LeftPos(1¸

look there, it is not regular comma, it is marker. Try to press ',' with cursor before it to find out the meaning... (it converts to ',' and selects the next parameter).
Re: How to arrange widgets [message #9587 is a reply to message #9586] Fri, 18 May 2007 10:26 Go to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Ups. Rolling Eyes

Thanks, this works!

Michael
Previous Topic: Ctrl::Accept
Next Topic: DropList::Find() error?
Goto Forum:
  


Current Time: Sat May 04 22:11:24 CEST 2024

Total time taken to generate the page: 0.01640 seconds