|
|
@ -168,7 +168,7 @@ Unique ID are implicitly built from the hash of multiple elements that identify
|
|
|
|
- Unique ID are often derived from a string label and at minimum scoped within their host window:
|
|
|
|
- Unique ID are often derived from a string label and at minimum scoped within their host window:
|
|
|
|
```c
|
|
|
|
```c
|
|
|
|
Begin("MyWindow");
|
|
|
|
Begin("MyWindow");
|
|
|
|
Button("OK"); // Label = "OK", ID = hash of ("MyWindow" "OK")
|
|
|
|
Button("OK"); // Label = "OK", ID = hash of ("MyWindow", "OK")
|
|
|
|
Button("Cancel"); // Label = "Cancel", ID = hash of ("MyWindow", "Cancel")
|
|
|
|
Button("Cancel"); // Label = "Cancel", ID = hash of ("MyWindow", "Cancel")
|
|
|
|
End();
|
|
|
|
End();
|
|
|
|
```
|
|
|
|
```
|
|
|
|