SE-NSE Forums:

Jump to content

  • (19 Pages)
  • +
  • « First
  • 12
  • 13
  • 14
  • 15
  • 16
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

Tutorial | Creating Your Own Layout.xml! 240*320 phones Rate Topic: ****- 2 Votes

#251 User is offline   jock Icon

  • I'm a Snow Leopard!
  • Icon
  • Group: Moderators
  • Posts: 4,521
  • Joined: 25-December 07
  • Gender:Male
  • Location:Sweden
  • Mobile:iPhone 3GS
  • Tutorials Submitted:1

Posted 13 December 2008 - 12:51 AM

View PostMr. Thunderbird, on 2008-12-12 16:48, said:

Probably, I will have a look at it.

@Jockep

Oh... :p



Do you use C++? :)
Programs: CodeClaw
Graphics: SE-Design
0

#252 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 13 December 2008 - 06:08 PM

View Postmarkross, on 2008-12-12 22:30, said:

- posibility to set font size

Will be added in v0.7.

Quote

- work with softkeys

v0.7.

Quote

- set focus for labels and move it precisely using keyboard

Keyboard movement in v0.7; set focus I don't understand.

Quote

- most important for me, the ability to change background image (it should be easy to add)

Sure, it's code is already written in v0.6, just need to add a button for it. ;)

Quote

And i have question about labels, you set it to transparent?
Because i see weird effect when moving them.

Yes I did, in v0.6 there will be a function to disbale transparency so it moves more smooth.

Quote

And i found bug in log :p i using layout from external folder and the program displays:
>>saved C:\SE\#PROGRAMY\RELEASE\layout.xml

Indeed, it's not a bug. It generates a new layout.xml file in the application's startup folder instead of modifying the excisting one.

Quote

Do you use C++?

Nope, C# on .NET v2.0 framework. :)

Thanks for all your suggestions everybody! :)

This post has been edited by Mr. Thunderbird: 13 December 2008 - 06:09 PM

This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#253 User is offline   jock Icon

  • I'm a Snow Leopard!
  • Icon
  • Group: Moderators
  • Posts: 4,521
  • Joined: 25-December 07
  • Gender:Male
  • Location:Sweden
  • Mobile:iPhone 3GS
  • Tutorials Submitted:1

Posted 13 December 2008 - 07:49 PM

where did you learn it? :) any tip? all i know is vb :(
Programs: CodeClaw
Graphics: SE-Design
0

#254 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 13 December 2008 - 07:53 PM

How I learned it? I learned the basics of C++, then it was too console-focused, so I thought "I want to make UIs". Then I found C#, I learned how the basical context is (like each statement ends with ";" and such), else I used google to google stuff like "How to open file in C#" etc etc etc.. Yeah it took some time (been learning C# since August when I had time). :)

You can add me on msn and I can help you if needed :)
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#255 User is offline   markross Icon

  • Makes Se-nse
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 342
  • Joined: 25-March 08
  • Gender:Male
  • Location:Poland
  • Mobile:K800i

Posted 14 December 2008 - 11:26 AM

View PostMr. Thunderbird, on 2008-12-13 21:08, said:

Keyboard movement in v0.7; set focus I don't understand.

It's exactly what i mean :p
And about log. It don't create any new file in program folder but modify existing. So please check it.

@jockep
I also know vb :p It's good for small apps. Environment doesn't matter, most important is idea.
0

#256 User is offline   Freeride Icon

  • Makes Se-nse
  • PipPipPipPip
  • Group: Members
  • Posts: 274
  • Joined: 24-March 08
  • Gender:Male
  • Location:Slovakia - Kosice

Posted 14 December 2008 - 02:16 PM

how to remove battery and signal???

time & date moved to right >>> not to see it now
signal moved to left >>> not to see it now
Battery Moved to Right >>> pernament vieving :( pls help me with this....layout for w910....

This post has been edited by Freeride: 14 December 2008 - 02:18 PM

0

#257 User is offline   Corman Icon

  • Philosopher
  • Icon
  • Group: SE-NSE Awards '09
  • Posts: 7,000
  • Joined: 16-May 07
  • Gender:Male
  • Location:Apparently 268 miles from Boysie :D
  • Mobile:Linda has been browned :D
  • Tutorials Submitted:1

Posted 14 December 2008 - 02:18 PM

Place them out of the screen?
W595! - ♥ - Newbie FAQ (WIP)- Respect: Jamesbond22, juhu07, blacklizard, Hiron

My W810i Gfx: Walkman Twist - My W595 Gfx: Clarity - Clarity Radio
0

#258 User is offline   Freeride Icon

  • Makes Se-nse
  • PipPipPipPip
  • Group: Members
  • Posts: 274
  • Joined: 24-March 08
  • Gender:Male
  • Location:Slovakia - Kosice

Posted 14 December 2008 - 02:30 PM

yes

EDIT : pls help me with this layout or upload Modified layout no signal & no batery

This post has been edited by Freeride: 14 December 2008 - 03:26 PM

0

#259 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 14 December 2008 - 05:06 PM

View Postmarkross, on 2008-12-14 12:26, said:

It's exactly what i mean :p
And about log. It don't create any new file in program folder but modify existing. So please check it.


It does create a new layout.xml.

Quote

private void file_save_Click(object sender, EventArgs e)
{
if (File.Exists(LiO.FileName))
{
foreach (Panel x in pbPreview.Controls)
{
if (x.Name != "pbStatusBar")
{
int X = x.Location.X + x.Width, Y = x.Location.Y + x.Height - 24, Y2 = x.Location.Y - 24;
string new_values = x.Location.X.ToString() + "." + X.ToString() + "." + Y2.ToString() + "." + Y.ToString();
Fetch(vA.File, x.Name.Replace("pb", ""), true);
ReplacerX(x, vA.File, vA.Line, new_values);
vA.File = vA.File.Replace(vA.old_line, vA.new_line);
}
}
foreach (Panel x in pbStatusBar.Controls)
{
int X = x.Location.X + x.Width, Y = x.Location.Y + x.Height;
string new_values = x.Location.X.ToString() + "." + X.ToString() + "." + x.Location.Y.ToString() + "." + Y.ToString();
Fetch(vA.File, x.Name.Replace("pb", ""), true);
ReplacerX(x, vA.File, vA.Line, new_values);
vA.File = vA.File.Replace(vA.old_line, vA.new_line);
}
StreamWriter stw = new StreamWriter("layout.xml");
stw.Write(vA.File);
stw.Close();

Log(">>saved " + Application.StartupPath.ToString() + "\\layout.xml");
}
else
{
Log("Input file not found or corrupt.");
}
}

This post has been edited by Mr. Thunderbird: 14 December 2008 - 05:09 PM

This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#260 User is offline   markross Icon

  • Makes Se-nse
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 342
  • Joined: 25-March 08
  • Gender:Male
  • Location:Poland
  • Mobile:K800i

Posted 14 December 2008 - 08:51 PM

StreamWriter stw = new StreamWriter("layout.xml");

it doesn't point to app dir. I don't know C but i noticed that destination folder are set to folder where we opened layout. And why it was overwriting my lay? Because it was named "Layout.xml". When i change name (for example to lay.xml) program create second file next to opened.
Same when we press save log it goes to lay folder and msg box lie :p
Next. Clicking rmb at label make it stick to cursor (but only when mouse is over so it looks like bug).
Last problem... Program crash when we don't open lay and press "Generate"

Sorry for fatigue Your app, my bad habit ;P

This post has been edited by markross: 14 December 2008 - 08:51 PM

0

#261 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 14 December 2008 - 09:01 PM

View Postmarkross, on 2008-12-14 21:51, said:

Same when we press save log it goes to lay folder and msg box lie :p

Quote

private void log_save_Click(object sender, EventArgs e)
{
DateTime x = DateTime.Now;
StreamWriter swx = new StreamWriter("SELG_G3_-_" + x.Day + "_" + x.Month + "_" + x.Year + "_-_" + x.Hour + "_" + x.Minute + ".wtx");
swx.Write(xlog.Text);
swx.Close();
MessageBox.Show("log saved in: " + Application.StartupPath.ToString() + "\\SELG_G3_-_" + x.Day + "_" + x.Month + "_" + x.Year + "_-_" + x.Hour + "_" + x.Minute + ".wtx", "xLog", MessageBoxButtons.OK, MessageBoxIcon.Information);
}


Quote

it doesn't point to app dir. I don't know C but i noticed that destination folder are set to folder where we opened layout. And why it was overwriting my lay? Because it was named "Layout.xml". When i change name (for example to lay.xml) program create second file next to opened.

It automatically points to appdir when creating a streamreader/writer w/e object.
:lol: indeed your file was modified then, if it's name was layout.xml :)

Quote

Next. Clicking rmb at label make it stick to cursor (but only when mouse is over so it looks like bug).

Yes it's a bug. Thank you for reporting it; will be fixed. Seems like when grabbing mouse clicks it uses a generic "MouseX,MouseY" values. But when releasing it uses ONLY left mousebutton, funny you found it actually :lol:

Quote

if (e.Button == MouseButtons.Left)
{
vA.DragOn = false;
}


Quote

Last problem... Program crash when we don't open lay and press "Generate"


Try to look at my previous code snip, about the saving new layout.. That bug is already fixed ;) (codesnip from v0.6)
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#262 User is offline   Freeride Icon

  • Makes Se-nse
  • PipPipPipPip
  • Group: Members
  • Posts: 274
  • Joined: 24-March 08
  • Gender:Male
  • Location:Slovakia - Kosice

Posted 14 December 2008 - 09:11 PM

hey Guys please help me with my layout please :(

This post has been edited by Freeride: 14 December 2008 - 09:19 PM

0

#263 User is offline   DaDih* Icon

  • The Most Important Things
  • Icon
  • Group: VIP
  • Posts: 2,107
  • Joined: 27-April 08
  • Gender:Male
  • Location:Somewhere I Belong
  • Mobile:W580i Ultimate Edition™
  • Tutorials Submitted:5

Posted 16 December 2008 - 09:34 PM

Freeride with layout generator set what you need for out of screen and this will be disapear.
If you want change the values to 0 and disapear too.
0

#264 User is offline   jagehopmey Icon

  • n00b
  • Group: Members
  • Posts: 1
  • Joined: 28-September 08

Posted 17 December 2008 - 12:58 AM

Hey. I'm just wondering how I can get the date to move down a line or two.


<attr value="121"/> <attr value="236"/> <attr value="5"/> <attr value="32"/> <attr value="5"/> <!-- Time -->
<attr value="118"/> <attr value="234"/> <attr value="15"/> <attr value="39"/> <attr value="5"/> <!-- Date -->


Basically I have these 2 lines, and the date is overlapping with the Time. I just want to move the date down one or two lines so that its not overlapping.
0

#265 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 17 December 2008 - 07:15 AM

View Postjagehopmey, on 2008-12-17 02:58, said:

<attr value="121"/> <attr value="236"/> <attr value="5"/> <attr value="32"/> <attr value="5"/> <!-- Time -->
<attr value="118"/> <attr value="234"/> <attr value="33"/> <attr value="57"/> <attr value="5"/> <!-- Date -->

That should do the job.
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

#266 User is offline   jock Icon

  • I'm a Snow Leopard!
  • Icon
  • Group: Moderators
  • Posts: 4,521
  • Joined: 25-December 07
  • Gender:Male
  • Location:Sweden
  • Mobile:iPhone 3GS
  • Tutorials Submitted:1

Posted 18 December 2008 - 12:23 AM

Attached File  SE_THM_Maker_Preview.png (228.97K)
Number of downloads: 187

now thunder! here is my project :p
Programs: CodeClaw
Graphics: SE-Design
0

#267 User is offline   claser0058 Icon

  • No Se-nse
  • PipPip
  • Group: Members
  • Posts: 92
  • Joined: 13-February 08
  • Location:@Borneo Island
  • Mobile:K750@W800>>W900>>K810 R8BA024

Posted 18 December 2008 - 01:51 AM

View Postjockep, on 2008-12-18 08:23, said:

Attachment SE_THM_M..._Preview.png

now thunder! here is my project :p


:good: job jockep waiting you project...........
sorry for my english
0

#268 User is offline   jock Icon

  • I'm a Snow Leopard!
  • Icon
  • Group: Moderators
  • Posts: 4,521
  • Joined: 25-December 07
  • Gender:Male
  • Location:Sweden
  • Mobile:iPhone 3GS
  • Tutorials Submitted:1

Posted 18 December 2008 - 02:02 AM

Thanx :)
Programs: CodeClaw
Graphics: SE-Design
0

#269 User is offline   SnowiffiC Icon

  • Feel your SE-NSEs!
  • Icon
  • Group: Super Moderators
  • Posts: 6,168
  • Joined: 03-June 07
  • Gender:Male
  • Location:El' Denmark'O!
  • Mobile:iPhone 3G
  • Tutorials Submitted:-1

Posted 18 December 2008 - 09:03 AM

Nice! Less work for me :)
This is centered,

This is not,
This is right,

Snowiffic is hot.
0

SE-NSE

#270 User is offline   Freeride Icon

  • Makes Se-nse
  • PipPipPipPip
  • Group: Members
  • Posts: 274
  • Joined: 24-March 08
  • Gender:Male
  • Location:Slovakia - Kosice

Posted 18 December 2008 - 11:24 AM

View PostDaDih*, on 2008-12-16 22:34, said:

Freeride with layout generator set what you need for out of screen and this will be disapear.
If you want change the values to 0 and disapear too.



I moved away from the battery display but she moved there still is only charging icon: (
0

  • (19 Pages)
  • +
  • « First
  • 12
  • 13
  • 14
  • 15
  • 16
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users